diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-27 19:41:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-27 19:41:33 +0200 |
commit | c5c177b4aca83338781e72be2e6dd1601c560cb3 (patch) | |
tree | b3640c3100d491d9c14fb677ced3a0e4dd780c6f /include/net | |
parent | net: Add linux/sysctl.h includes where needed. (diff) | |
download | linux-c5c177b4aca83338781e72be2e6dd1601c560cb3.tar.xz linux-c5c177b4aca83338781e72be2e6dd1601c560cb3.zip |
net: Kill ratelimit.h dependency in linux/net.h
Ingo Molnar noticed that we have this unnecessary ratelimit.h
dependency in linux/net.h, which hid compilation problems from
people doing builds only with CONFIG_NET enabled.
Move this stuff out to a seperate net/net_ratelimit.h file and
include that in the only two places where this thing is needed.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/net_ratelimit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/net_ratelimit.h b/include/net/net_ratelimit.h new file mode 100644 index 000000000000..7727b4247daf --- /dev/null +++ b/include/net/net_ratelimit.h @@ -0,0 +1,8 @@ +#ifndef _LINUX_NET_RATELIMIT_H +#define _LINUX_NET_RATELIMIT_H + +#include <linux/ratelimit.h> + +extern struct ratelimit_state net_ratelimit_state; + +#endif /* _LINUX_NET_RATELIMIT_H */ |