Re: [PATCH v2 2/2] Driver for the Atmel USBA on-chip UDC

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <20070926174741.9C78C235378@adsl-69-226-248-13.dsl.pltn13.pacbell.net>
Remove some sparse warnings ... as generated by 

	make C=1 drivers/usb/gdget/atmel_usba_udc.o

Signed-off-by: David Brownell <[email protected]>
---
 drivers/usb/gadget/atmel_usba_udc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

--- a/drivers/usb/gadget/atmel_usba_udc.c	2007-09-26 10:11:29.000000000 -0700
+++ b/drivers/usb/gadget/atmel_usba_udc.c	2007-09-26 10:22:10.000000000 -0700
@@ -696,7 +696,7 @@ static int usba_ep_disable(struct usb_ep
 }
 
 static struct usb_request *
-usba_ep_alloc_request(struct usb_ep *_ep, unsigned gfp_flags)
+usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags)
 {
 	struct usba_request *req;
 
@@ -974,7 +974,7 @@ static void usba_ep_fifo_flush(struct us
 	usba_writel(udc, EPT_RST, 1 << ep->index);
 }
 
-struct usb_ep_ops usba_ep_ops = {
+static struct usb_ep_ops usba_ep_ops = {
 	.enable		= usba_ep_enable,
 	.disable	= usba_ep_disable,
 	.alloc_request	= usba_ep_alloc_request,
@@ -993,7 +993,7 @@ static int usba_udc_get_frame(struct usb
 	return USBA_BFEXT(FRAME_NUMBER, usba_readl(udc, FNUM));
 }
 
-struct usb_gadget_ops usba_udc_ops = {
+static struct usb_gadget_ops usba_udc_ops = {
 	.get_frame	= usba_udc_get_frame,
 };
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.