浏览代码

net-sysfs: fix missing <linux/of_net.h>

The of_find_net_device_by_node() function is defined in
<linux/of_net.h> but not included in the .c file that
implements it. Fix the following warning by including the
header:

net/core/net-sysfs.c:1494:19: warning: symbol 'of_find_net_device_by_node' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ben Dooks 9 年之前
父节点
当前提交
88832a22d6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/core/net-sysfs.c

+ 1 - 0
net/core/net-sysfs.c

@@ -24,6 +24,7 @@
 #include <linux/jiffies.h>
 #include <linux/jiffies.h>
 #include <linux/pm_runtime.h>
 #include <linux/pm_runtime.h>
 #include <linux/of.h>
 #include <linux/of.h>
+#include <linux/of_net.h>
 
 
 #include "net-sysfs.h"
 #include "net-sysfs.h"