mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
![David S. Miller](/assets/img/avatar_default.png)
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>
8 lines
181 B
C
8 lines
181 B
C
#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 */
|