浏览代码

sysctl: fix sparse warning: Should it be static?

Impact: Include header file.

Fix this sparse warning:
  net/core/sysctl_net_core.c:123:32: warning: symbol 'net_core_path' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Hannes Eder 16 年之前
父节点
当前提交
63d819caeb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/sysctl_net_core.c

+ 1 - 0
net/core/sysctl_net_core.c

@@ -11,6 +11,7 @@
 #include <linux/socket.h>
 #include <linux/socket.h>
 #include <linux/netdevice.h>
 #include <linux/netdevice.h>
 #include <linux/init.h>
 #include <linux/init.h>
+#include <net/ip.h>
 #include <net/sock.h>
 #include <net/sock.h>
 
 
 static struct ctl_table net_core_table[] = {
 static struct ctl_table net_core_table[] = {