diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-22 16:18:09 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-22 16:18:09 +0200 |
commit | 3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5 (patch) | |
tree | 67c476b8aa52a2f5d17dc9b94da360e10d373bd5 /include/linux/kernel.h | |
parent | edaac8e3167501cda336231d00611bf59c164346 (diff) | |
download | linux-3.10-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.tar.gz linux-3.10-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.tar.bz2 linux-3.10-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.zip |
printk: Remove ratelimit.h from kernel.h
Decouple kernel.h from ratelimit.h: the global declaration of
printk's ratelimit_state is not needed, and it leads to messy
circular dependencies due to ratelimit.h's (new) adding of a
spinlock_types.h include.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David S. Miller <davem@davemloft.net>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 2b5b1e0899a..3305f33201b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -15,7 +15,6 @@ #include <linux/bitops.h> #include <linux/log2.h> #include <linux/typecheck.h> -#include <linux/ratelimit.h> #include <linux/dynamic_debug.h> #include <asm/byteorder.h> #include <asm/bug.h> @@ -241,7 +240,6 @@ asmlinkage int vprintk(const char *fmt, va_list args) asmlinkage int printk(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))) __cold; -extern struct ratelimit_state printk_ratelimit_state; extern int printk_ratelimit(void); extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, unsigned int interval_msec); |