aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDaniel Guilak <guilak@linux.vnet.ibm.com>2008-07-25 04:45:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 13:53:29 -0400
commit197dcffc8ba0ea943fee86e28e99cd9575799772 (patch)
treec16027ddd94da37e0af991908639912ee174d65c /init
parent277e2c695907a70b316a31769cd891dc4d43b7f3 (diff)
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>
Diffstat (limited to 'init')
-rw-r--r--init/version.c2
1 files changed, 2 insertions, 0 deletions
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 @@
13#include <linux/utsrelease.h> 13#include <linux/utsrelease.h>
14#include <linux/version.h> 14#include <linux/version.h>
15 15
16#ifndef CONFIG_KALLSYMS
16#define version(a) Version_ ## a 17#define version(a) Version_ ## a
17#define version_string(a) version(a) 18#define version_string(a) version(a)
18 19
19extern int version_string(LINUX_VERSION_CODE); 20extern int version_string(LINUX_VERSION_CODE);
20int version_string(LINUX_VERSION_CODE); 21int version_string(LINUX_VERSION_CODE);
22#endif
21 23
22struct uts_namespace init_uts_ns = { 24struct uts_namespace init_uts_ns = {
23 .kref = { 25 .kref = {