]> git.baikalelectronics.ru Git - kernel.git/commit
lib/glob.c: add CONFIG_GLOB_SELFTEST
authorGeorge Spelvin <linux@horizon.com>
Wed, 6 Aug 2014 23:09:25 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:25 +0000 (18:01 -0700)
commit8a0dbd14405a82800e68c07a54da296b09395f26
tree03df2ac3a2557e1565943d36cda6fe1d1e28539a
parent3e4cf052274c9d0583d0aecdf6df62a047ebcaef
lib/glob.c: add CONFIG_GLOB_SELFTEST

This was useful during development, and is retained for future
regression testing.

GCC appears to have no way to place string literals in a particular
section; adding __initconst to a char pointer leaves the string itself
in the default string section, where it will not be thrown away after
module load.

Thus all string constants are kept in explicitly declared and named
arrays.  Sorry this makes printk a bit harder to read.  At least the
tests are more compact.

Signed-off-by: George Spelvin <linux@horizon.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/Kconfig
lib/glob.c