diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-26 15:00:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-26 15:00:31 -0400 |
commit | 86e4ca66e81bba0f8640f1fa19b8b8f72cbd0561 (patch) | |
tree | c0192a77bea66f9e58b62a17f9ddd8ce0fb64233 /net/core | |
parent | 90e62474fd08e16ba5309886c801243b0eb782f3 (diff) |
bug.h: Move ratelimit warn interfaces to ratelimit.h
As reported by Ingo Molnar, we still have configuration combinations
where use of the WARN_RATELIMIT interfaces break the build because
dependencies don't get met.
Instead of going down the long road of trying to make it so that
ratelimit.h can get included by kernel.h or asm-generic/bug.h,
just move the interface into ratelimit.h and make users have
to include that.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 0e3622f1dcb1..36f975fa87cb 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -38,6 +38,7 @@ #include <asm/unaligned.h> #include <linux/filter.h> #include <linux/reciprocal_div.h> +#include <linux/ratelimit.h> /* No hurry in this branch */ static void *__load_pointer(const struct sk_buff *skb, int k, unsigned int size) |