lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 14 Sep 2007 20:52:08 +0100
From:	Denys Vlasenko <vda.linux@...glemail.com>
To:	Al Viro <viro@....linux.org.uk>
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] add consts where appropriate in fs/nls/*

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@...glemail.com>
--
vda

Download attachment "constify_fs_nls.diff.bz2" of type "application/x-bzip2" (31616 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ