[PATCH] add consts where appropriate in fs/nls/*

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Al Viro <viro@...>
Cc: <linux-kernel@...>
Date: Friday, September 14, 2007 - 3:52 pm

Hi Alexander,

Attached patch adds const modifiers to a few struct nls_table's
member pointers in include/linux/nls.h and adds a lot
of const's in fs/nls/*.c files.

Resulting changes as visible by size:

   text    data     bss     dec     hex filename
 113612  481216    2368  597196   91ccc nls.org/built-in.o
 593548    3296     288  597132   91c8c nls/built-in.o

Apparently compiler managed to optimize code a bit better
because of const-ness.

No other changes are made.

Patch is compile-tested with .config with all in-tree filesystems
selected.

Please send it Linuswards.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
--
vda
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] add consts where appropriate in fs/nls/*, Denys Vlasenko, (Fri Sep 14, 3:52 pm)