diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 6e4406e12c6b..cff58e288a22 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -255,6 +255,7 @@ extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, | |||
255 | } \ | 255 | } \ |
256 | }) | 256 | }) |
257 | 257 | ||
258 | void log_buf_kexec_setup(void); | ||
258 | #else | 259 | #else |
259 | static inline int vprintk(const char *s, va_list args) | 260 | static inline int vprintk(const char *s, va_list args) |
260 | __attribute__ ((format (printf, 1, 0))); | 261 | __attribute__ ((format (printf, 1, 0))); |
@@ -270,6 +271,9 @@ static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ | |||
270 | /* No effect, but we still get type checking even in the !PRINTK case: */ | 271 | /* No effect, but we still get type checking even in the !PRINTK case: */ |
271 | #define printk_once(x...) printk(x) | 272 | #define printk_once(x...) printk(x) |
272 | 273 | ||
274 | static inline void log_buf_kexec_setup(void) | ||
275 | { | ||
276 | } | ||
273 | #endif | 277 | #endif |
274 | 278 | ||
275 | extern int printk_needs_cpu(int cpu); | 279 | extern int printk_needs_cpu(int cpu); |
@@ -370,6 +374,8 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
370 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) | 374 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) |
371 | #define pr_info(fmt, ...) \ | 375 | #define pr_info(fmt, ...) \ |
372 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | 376 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) |
377 | #define pr_cont(fmt, ...) \ | ||
378 | printk(KERN_CONT fmt, ##__VA_ARGS__) | ||
373 | 379 | ||
374 | /* If you are writing a driver, please use dev_dbg instead */ | 380 | /* If you are writing a driver, please use dev_dbg instead */ |
375 | #if defined(DEBUG) | 381 | #if defined(DEBUG) |
@@ -396,18 +402,6 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
396 | ((unsigned char *)&addr)[3] | 402 | ((unsigned char *)&addr)[3] |
397 | #define NIPQUAD_FMT "%u.%u.%u.%u" | 403 | #define NIPQUAD_FMT "%u.%u.%u.%u" |
398 | 404 | ||
399 | #if defined(__LITTLE_ENDIAN) | ||
400 | #define HIPQUAD(addr) \ | ||
401 | ((unsigned char *)&addr)[3], \ | ||
402 | ((unsigned char *)&addr)[2], \ | ||
403 | ((unsigned char *)&addr)[1], \ | ||
404 | ((unsigned char *)&addr)[0] | ||
405 | #elif defined(__BIG_ENDIAN) | ||
406 | #define HIPQUAD NIPQUAD | ||
407 | #else | ||
408 | #error "Please fix asm/byteorder.h" | ||
409 | #endif /* __LITTLE_ENDIAN */ | ||
410 | |||
411 | /* | 405 | /* |
412 | * min()/max()/clamp() macros that also do | 406 | * min()/max()/clamp() macros that also do |
413 | * strict type-checking.. See the | 407 | * strict type-checking.. See the |