Skip to content

Commit

Permalink
linux/kernel.h: define SYMBOL_PREFIX
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Mike Frysinger <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
James Hogan authored and rustyrussell committed Dec 3, 2012
1 parent 3c46f3d commit cbdbf2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,13 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { }
#define COMPACTION_BUILD 0
#endif

/* This helps us to avoid #ifdef CONFIG_SYMBOL_PREFIX */
#ifdef CONFIG_SYMBOL_PREFIX
#define SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX
#else
#define SYMBOL_PREFIX ""
#endif

/* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD
Expand Down

0 comments on commit cbdbf2a

Please sign in to comment.