Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

init/version.c: define version_string only if CONFIG_KALLSYMS is not defined

int Version_* is only used with ksymoops, which is only needed (according
to README and Documentation/Changes) if CONFIG_KALLSYMS is NOT defined.
Therefore this patch defines version_string only if CONFIG_KALLSYMS is not
defined.

Signed-off-by: Daniel Guilak <daniel@danielguilak.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Daniel Guilak and committed by
Linus Torvalds
197dcffc 277e2c69

+2
+2
init/version.c
··· 13 13 #include <linux/utsrelease.h> 14 14 #include <linux/version.h> 15 15 16 + #ifndef CONFIG_KALLSYMS 16 17 #define version(a) Version_ ## a 17 18 #define version_string(a) version(a) 18 19 19 20 extern int version_string(LINUX_VERSION_CODE); 20 21 int version_string(LINUX_VERSION_CODE); 22 + #endif 21 23 22 24 struct uts_namespace init_uts_ns = { 23 25 .kref = {