[CIFS] Neaten cERROR and cFYI macros, reduce text space
authorJoe Perches <joe@perches.com>
Wed, 21 Apr 2010 03:50:45 +0000 (03:50 +0000)
committerSteve French <sfrench@us.ibm.com>
Wed, 21 Apr 2010 03:50:45 +0000 (03:50 +0000)
commitb6b38f704a8193daba520493ebdaf7e819962fc8
treec38f4557b51b33573e36817888afa2accf3da9ca
parent315e995c63a15cb4d4efdbfd70fe2db191917f7a
[CIFS] Neaten cERROR and cFYI macros, reduce text space

Neaten cERROR and cFYI macros, reduce text space
~2.5K

Convert '__FILE__ ": " fmt' to '"%s: " fmt', __FILE__' to save text space
Surround macros with do {} while
Add parentheses to macros
Make statement expression macro from macro with assign
Remove now unnecessary parentheses from cFYI and cERROR uses

defconfig with CIFS support old
$ size fs/cifs/built-in.o
   text    data     bss     dec     hex filename
 156012    1760     148  157920   268e0 fs/cifs/built-in.o

defconfig with CIFS support old
$ size fs/cifs/built-in.o
   text    data     bss     dec     hex filename
 153508    1760     148  155416   25f18 fs/cifs/built-in.o

allyesconfig old:
$ size fs/cifs/built-in.o
   text    data     bss     dec     hex filename
 309138    3864   74824  387826   5eaf2 fs/cifs/built-in.o

allyesconfig new
$ size fs/cifs/built-in.o
   text    data     bss     dec     hex filename
 305655    3864   74824  384343   5dd57 fs/cifs/built-in.o

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
25 files changed:
fs/cifs/asn1.c
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h
fs/cifs/cifs_dfs_ref.c
fs/cifs/cifs_spnego.c
fs/cifs/cifs_unicode.c
fs/cifs/cifsacl.c
fs/cifs/cifsencrypt.c
fs/cifs/cifsfs.c
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/dns_resolve.c
fs/cifs/export.c
fs/cifs/file.c
fs/cifs/inode.c
fs/cifs/ioctl.c
fs/cifs/link.c
fs/cifs/misc.c
fs/cifs/netmisc.c
fs/cifs/readdir.c
fs/cifs/sess.c
fs/cifs/transport.c
fs/cifs/xattr.c