History

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.

James Hogan committed 13 years ago

Commit cbdbf2a1 parent 3c46f3d1 file · +7 −0Browse files

Unified · Split

include/linux/kernel.h+7−0
@@ -701,6 +701,13 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } · 700 unmodified lines
701#define COMPACTION_BUILD 0701#define COMPACTION_BUILD 0
702#endif702#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_RECORD712#ifdef CONFIG_FTRACE_MCOUNT_RECORD
706# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD713# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD