diff mbox

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

Message ID 1465324071-7337-1-git-send-email-ben.dooks@codethink.co.uk
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Ben Dooks June 7, 2016, 6:27 p.m. UTC
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>
---
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
 net/core/net-sysfs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Miller June 8, 2016, 7:38 a.m. UTC | #1
From: Ben Dooks <ben.dooks@codethink.co.uk>
Date: Tue,  7 Jun 2016 19:27:51 +0100

> 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>

Applied, thanks.
diff mbox

Patch

diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 2b3f76f..7a0b616 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -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"