diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-10 03:57:37 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-17 02:36:19 -0400 |
commit | 3588fa621c4c9462a9c56f24b18ded329dc7622a (patch) | |
tree | de2577e020ee1fb4301c2c00259820cd76296970 /include/linux/kernel.h | |
parent | ff86d4722124c300c40b85b6eb8ef2d410ab303c (diff) |
fixes for 32 bit builds/non x86 archs
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index dc778f1c..b6afea43 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -111,17 +111,11 @@ #define cpu_relax() do {} while (0) #define cpu_relax_lowlatency() do {} while (0) -__printf(1, 2) -static inline void panic(const char *fmt, ...) -{ - va_list args; - - va_start(args, fmt); - vprintf(fmt, args); - va_end(args); - - BUG(); -} +#define panic(fmt, ...) \ +do { \ + printf(fmt, ##__VA_ARGS__); \ + BUG(); \ +} while (0) unsigned long simple_strtoul(const char *,char **,unsigned int); long simple_strtol(const char *,char **,unsigned int); |