diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index cd6d02cf854d..53839ba265ec 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -20,6 +20,9 @@ | |||
| 20 | extern const char linux_banner[]; | 20 | extern const char linux_banner[]; |
| 21 | extern const char linux_proc_banner[]; | 21 | extern const char linux_proc_banner[]; |
| 22 | 22 | ||
| 23 | #define USHORT_MAX ((u16)(~0U)) | ||
| 24 | #define SHORT_MAX ((s16)(USHORT_MAX>>1)) | ||
| 25 | #define SHORT_MIN (-SHORT_MAX - 1) | ||
| 23 | #define INT_MAX ((int)(~0U>>1)) | 26 | #define INT_MAX ((int)(~0U>>1)) |
| 24 | #define INT_MIN (-INT_MAX - 1) | 27 | #define INT_MIN (-INT_MAX - 1) |
| 25 | #define UINT_MAX (~0U) | 28 | #define UINT_MAX (~0U) |
| @@ -188,6 +191,7 @@ extern int log_buf_copy(char *dest, int idx, int len); | |||
| 188 | extern int printk_ratelimit_jiffies; | 191 | extern int printk_ratelimit_jiffies; |
| 189 | extern int printk_ratelimit_burst; | 192 | extern int printk_ratelimit_burst; |
| 190 | extern int printk_ratelimit(void); | 193 | extern int printk_ratelimit(void); |
| 194 | extern int __ratelimit(int ratelimit_jiffies, int ratelimit_burst); | ||
| 191 | extern int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst); | 195 | extern int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst); |
| 192 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, | 196 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, |
| 193 | unsigned int interval_msec); | 197 | unsigned int interval_msec); |
| @@ -255,6 +259,7 @@ extern enum system_states { | |||
| 255 | #define TAINT_USER (1<<6) | 259 | #define TAINT_USER (1<<6) |
| 256 | #define TAINT_DIE (1<<7) | 260 | #define TAINT_DIE (1<<7) |
| 257 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) | 261 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) |
| 262 | #define TAINT_WARN (1<<9) | ||
| 258 | 263 | ||
| 259 | extern void dump_stack(void) __cold; | 264 | extern void dump_stack(void) __cold; |
| 260 | 265 | ||
