Re: [patch 2.6.23-rc1-git 5/6] file storage gadget cleanups

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, 2 Aug 2007, David Brownell wrote:

> Clean up the file storage gadget, using newer APIs and conventions:
> 
>  - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal
> 
>  - Remove many now-needless #includes
> 
>  - Use the DEBUG (from Kconfig+Makefile) and VERBOSE_DEBUG conventions.
> 
>  - Remove some "sparse" warnings (it still dislikes the __user annotations)
> 
> This gave only a minor object code shrinkage.

I'd rather expect to see a minor increase in object code size, since a
few data structures and lines of code are now compiled in that
previously would have been #ifdef'ed out.  Why do you think the code
size shrank?

> Signed-off-by: David Brownell <[email protected]>
> Cc: Alan Stern <[email protected]>
> ---
>  drivers/usb/gadget/file_storage.c |  118 ++++++++++++++------------------------
>  1 file changed, 45 insertions(+), 73 deletions(-)
> 
> --- g26.orig/drivers/usb/gadget/file_storage.c	2007-08-01 23:16:10.000000000 -0700
> +++ g26/drivers/usb/gadget/file_storage.c	2007-08-01 23:29:00.000000000 -0700
> @@ -289,57 +275,51 @@ MODULE_LICENSE("Dual BSD/GPL");
>  
>  /*-------------------------------------------------------------------------*/
>  
> -#define xprintk(f,level,fmt,args...) \
> -	dev_printk(level , &(f)->gadget->dev , fmt , ## args)
>  #define yprintk(l,level,fmt,args...) \
>  	dev_printk(level , &(l)->dev , fmt , ## args)

Is there any particular reason you expanded xprintk inline but not
yprintk?

Despite these questions, ACK.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[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.