net-sysfs: fix missing <linux/of_net.h>
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 7 Jun 2016 18:27:51 +0000 (19:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jun 2016 07:37:58 +0000 (00:37 -0700)
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>
net/core/net-sysfs.c

index 2b3f76fe65f49f8018c63aa44b345262fb40cde7..7a0b616557abb6570dbc86a0a7cf04a50a83214b 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/jiffies.h>
 #include <linux/pm_runtime.h>
 #include <linux/of.h>
+#include <linux/of_net.h>
 
 #include "net-sysfs.h"