Skip to content

Commit

Permalink
init/version.c: define version_string only if CONFIG_KALLSYMS is not …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Daniel Guilak authored and torvalds committed Jul 25, 2008
1 parent 277e2c6 commit 197dcff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
#include <linux/utsrelease.h>
#include <linux/version.h>

#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 = {
Expand Down

0 comments on commit 197dcff

Please sign in to comment.