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 /net/core | |
parent | edaac8e3167501cda336231d00611bf59c164346 (diff) | |
download | talos-obmc-linux-3fff4c42bd0a89869a0eb1e7874cc06ffa4aa0f5.tar.gz talos-obmc-linux-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 'net/core')
-rw-r--r-- | net/core/sysctl_net_core.c | 2 | ||||
-rw-r--r-- | net/core/utils.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 7db1de0497c6..887c03c4e3c6 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -10,7 +10,9 @@ #include <linux/module.h> #include <linux/socket.h> #include <linux/netdevice.h> +#include <linux/ratelimit.h> #include <linux/init.h> + #include <net/ip.h> #include <net/sock.h> diff --git a/net/core/utils.c b/net/core/utils.c index 83221aee7084..838250241d26 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -24,6 +24,8 @@ #include <linux/types.h> #include <linux/percpu.h> #include <linux/init.h> +#include <linux/ratelimit.h> + #include <net/sock.h> #include <asm/byteorder.h> |