diff options
author | James Hogan <james.hogan@imgtec.com> | 2012-11-23 07:08:15 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-12-02 21:35:54 -0500 |
commit | cbdbf2abb7844548a7d7a6a2ae7af6b6fbcea401 (patch) | |
tree | 45206a552bc43fac75fa476cb29c22a87a58c85f | |
parent | 3c46f3d6406b1d0c53575774b2d1fd013cd7f76f (diff) |
linux/kernel.h: define SYMBOL_PREFIX
Define SYMBOL_PREFIX to be the same as CONFIG_SYMBOL_PREFIX if set by
the architecture, or "" otherwise. This avoids the need for ugly #ifdefs
whenever symbols are referenced in asm blocks.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Joe Perches <joe@perches.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r-- | include/linux/kernel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a123b13b70f..7d8dfc7392f 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -701,6 +701,13 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } | |||
701 | #define COMPACTION_BUILD 0 | 701 | #define COMPACTION_BUILD 0 |
702 | #endif | 702 | #endif |
703 | 703 | ||
704 | /* This helps us to avoid #ifdef CONFIG_SYMBOL_PREFIX */ | ||
705 | #ifdef CONFIG_SYMBOL_PREFIX | ||
706 | #define SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX | ||
707 | #else | ||
708 | #define SYMBOL_PREFIX "" | ||
709 | #endif | ||
710 | |||
704 | /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */ | 711 | /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */ |
705 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 712 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
706 | # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD | 713 | # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD |