diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 482ad2d84a32..d4e98d13eff4 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -439,6 +439,17 @@ static inline char *hex_byte_pack(char *buf, u8 byte) | |||
439 | return buf; | 439 | return buf; |
440 | } | 440 | } |
441 | 441 | ||
442 | extern const char hex_asc_upper[]; | ||
443 | #define hex_asc_upper_lo(x) hex_asc_upper[((x) & 0x0f)] | ||
444 | #define hex_asc_upper_hi(x) hex_asc_upper[((x) & 0xf0) >> 4] | ||
445 | |||
446 | static inline char *hex_byte_pack_upper(char *buf, u8 byte) | ||
447 | { | ||
448 | *buf++ = hex_asc_upper_hi(byte); | ||
449 | *buf++ = hex_asc_upper_lo(byte); | ||
450 | return buf; | ||
451 | } | ||
452 | |||
442 | static inline char * __deprecated pack_hex_byte(char *buf, u8 byte) | 453 | static inline char * __deprecated pack_hex_byte(char *buf, u8 byte) |
443 | { | 454 | { |
444 | return hex_byte_pack(buf, byte); | 455 | return hex_byte_pack(buf, byte); |
@@ -490,7 +501,6 @@ void tracing_snapshot_alloc(void); | |||
490 | 501 | ||
491 | extern void tracing_start(void); | 502 | extern void tracing_start(void); |
492 | extern void tracing_stop(void); | 503 | extern void tracing_stop(void); |
493 | extern void ftrace_off_permanent(void); | ||
494 | 504 | ||
495 | static inline __printf(1, 2) | 505 | static inline __printf(1, 2) |
496 | void ____trace_printk_check_format(const char *fmt, ...) | 506 | void ____trace_printk_check_format(const char *fmt, ...) |
@@ -628,7 +638,6 @@ extern void ftrace_dump(enum ftrace_dump_mode oops_dump_mode); | |||
628 | #else | 638 | #else |
629 | static inline void tracing_start(void) { } | 639 | static inline void tracing_start(void) { } |
630 | static inline void tracing_stop(void) { } | 640 | static inline void tracing_stop(void) { } |
631 | static inline void ftrace_off_permanent(void) { } | ||
632 | static inline void trace_dump_stack(int skip) { } | 641 | static inline void trace_dump_stack(int skip) { } |
633 | 642 | ||
634 | static inline void tracing_on(void) { } | 643 | static inline void tracing_on(void) { } |