]> git.baikalelectronics.ru Git - kernel.git/commit
net: Kill ratelimit.h dependency in linux/net.h
authorDavid S. Miller <davem@davemloft.net>
Fri, 27 May 2011 17:41:33 +0000 (13:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 May 2011 17:41:33 +0000 (13:41 -0400)
commit5a5dac7e971e31ab85446428d1a9cc7cc8fce2c8
treeb3640c3100d491d9c14fb677ced3a0e4dd780c6f
parentd0aa49e316b43070ac3f991ad0a73cbdb1584b7e
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>
include/linux/net.h
include/net/net_ratelimit.h [new file with mode: 0644]
net/core/sysctl_net_core.c
net/core/utils.c