Patchwork wan: pci200syn needs capability.h

login
register
mail settings
Submitter Randy Dunlap
Date Oct. 13, 2009, 5 p.m.
Message ID <20091013100016.3c9bfad7.randy.dunlap@oracle.com>
Download mbox | patch
Permalink /patch/35882/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Randy Dunlap - Oct. 13, 2009, 5 p.m.
From: Randy Dunlap <randy.dunlap@oracle.com>

Driver is missing header file capability.h:

drivers/net/wan/pci200syn.c:212: error: implicit declaration of function 'capable'
drivers/net/wan/pci200syn.c:212: error: 'CAP_NET_ADMIN' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/net/wan/pci200syn.c |    1 +
 1 file changed, 1 insertion(+)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Krzysztof Halasa - Oct. 13, 2009, 5:19 p.m.
Randy Dunlap <randy.dunlap@oracle.com> writes:

> Driver is missing header file capability.h:
>
> drivers/net/wan/pci200syn.c:212: error: implicit declaration of function 'capable'
> drivers/net/wan/pci200syn.c:212: error: 'CAP_NET_ADMIN' undeclared (first use in this function)

Thanks, but I think a patch for a bunch of WAN drivers has been already
posted.

Patch

--- linux-next-20091012.orig/drivers/net/wan/pci200syn.c
+++ linux-next-20091012/drivers/net/wan/pci200syn.c
@@ -18,6 +18,7 @@ 
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/types.h>
+#include <linux/capability.h>
 #include <linux/fcntl.h>
 #include <linux/in.h>
 #include <linux/string.h>