From: George Spelvin Date: Wed, 6 Aug 2014 23:09:25 +0000 (-0700) Subject: lib/glob.c: add CONFIG_GLOB_SELFTEST X-Git-Tag: omap-for-v3.17/fixes-against-rc2~137^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f9be8248d9802730185f98f4db41285dc00283c;p=pandora-kernel.git 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 Cc: Randy Dunlap Cc: Tejun Heo Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed