* [PATCH] add consts where appropriate in fs/nls/*
@ 2007-09-14 19:52 Denys Vlasenko
0 siblings, 0 replies; only message in thread
From: Denys Vlasenko @ 2007-09-14 19:52 UTC (permalink / raw)
To: Al Viro; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
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
[-- Attachment #2: constify_fs_nls.diff.bz2 --]
[-- Type: application/x-bzip2, Size: 31616 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-14 19:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 19:52 [PATCH] add consts where appropriate in fs/nls/* Denys Vlasenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox