From: Daniel Guilak Date: Fri, 25 Jul 2008 08:45:50 +0000 (-0700) Subject: init/version.c: define version_string only if CONFIG_KALLSYMS is not defined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=197dcffc8ba0ea943fee86e28e99cd9575799772;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/version.c b/init/version.c index 041fd822ce24..52a8b98642b8 100644 --- a/init/version.c +++ b/init/version.c @@ -13,11 +13,13 @@ #include #include +#ifndef CONFIG_KALLSYMS #define version(a) Version_ ## a #define version_string(a) version(a) extern int version_string(LINUX_VERSION_CODE); int version_string(LINUX_VERSION_CODE); +#endif struct uts_namespace init_uts_ns = { .kref = {