diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 343df9ef2412..914918abfdd1 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <linux/log2.h> | 16 | #include <linux/log2.h> |
| 17 | #include <linux/typecheck.h> | 17 | #include <linux/typecheck.h> |
| 18 | #include <linux/ratelimit.h> | 18 | #include <linux/ratelimit.h> |
| 19 | #include <linux/dynamic_printk.h> | 19 | #include <linux/dynamic_debug.h> |
| 20 | #include <asm/byteorder.h> | 20 | #include <asm/byteorder.h> |
| 21 | #include <asm/bug.h> | 21 | #include <asm/bug.h> |
| 22 | 22 | ||
| @@ -358,9 +358,10 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
| 358 | #if defined(DEBUG) | 358 | #if defined(DEBUG) |
| 359 | #define pr_debug(fmt, ...) \ | 359 | #define pr_debug(fmt, ...) \ |
| 360 | printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | 360 | printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) |
| 361 | #elif defined(CONFIG_DYNAMIC_PRINTK_DEBUG) | 361 | #elif defined(CONFIG_DYNAMIC_DEBUG) |
| 362 | /* dynamic_pr_debug() uses pr_fmt() internally so we don't need it here */ | ||
| 362 | #define pr_debug(fmt, ...) do { \ | 363 | #define pr_debug(fmt, ...) do { \ |
| 363 | dynamic_pr_debug(pr_fmt(fmt), ##__VA_ARGS__); \ | 364 | dynamic_pr_debug(fmt, ##__VA_ARGS__); \ |
| 364 | } while (0) | 365 | } while (0) |
| 365 | #else | 366 | #else |
| 366 | #define pr_debug(fmt, ...) \ | 367 | #define pr_debug(fmt, ...) \ |
| @@ -480,7 +481,8 @@ static inline char *pack_hex_byte(char *buf, u8 byte) | |||
| 480 | /* | 481 | /* |
| 481 | * swap - swap value of @a and @b | 482 | * swap - swap value of @a and @b |
| 482 | */ | 483 | */ |
| 483 | #define swap(a, b) ({ typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; }) | 484 | #define swap(a, b) \ |
| 485 | do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) | ||
| 484 | 486 | ||
| 485 | /** | 487 | /** |
| 486 | * container_of - cast a member of a structure out to the containing structure | 488 | * container_of - cast a member of a structure out to the containing structure |
