diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/pppox.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/pppox.c')
-rw-r--r-- | drivers/net/pppox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/pppox.c b/drivers/net/pppox.c index 4f6d33fbc673..d4191ef9cad1 100644 --- a/drivers/net/pppox.c +++ b/drivers/net/pppox.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/string.h> | 22 | #include <linux/string.h> |
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/slab.h> | ||
26 | #include <linux/errno.h> | 25 | #include <linux/errno.h> |
27 | #include <linux/netdevice.h> | 26 | #include <linux/netdevice.h> |
28 | #include <linux/net.h> | 27 | #include <linux/net.h> |
@@ -104,7 +103,8 @@ int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
104 | 103 | ||
105 | EXPORT_SYMBOL(pppox_ioctl); | 104 | EXPORT_SYMBOL(pppox_ioctl); |
106 | 105 | ||
107 | static int pppox_create(struct net *net, struct socket *sock, int protocol) | 106 | static int pppox_create(struct net *net, struct socket *sock, int protocol, |
107 | int kern) | ||
108 | { | 108 | { |
109 | int rc = -EPROTOTYPE; | 109 | int rc = -EPROTOTYPE; |
110 | 110 | ||
@@ -125,7 +125,7 @@ out: | |||
125 | return rc; | 125 | return rc; |
126 | } | 126 | } |
127 | 127 | ||
128 | static struct net_proto_family pppox_proto_family = { | 128 | static const struct net_proto_family pppox_proto_family = { |
129 | .family = PF_PPPOX, | 129 | .family = PF_PPPOX, |
130 | .create = pppox_create, | 130 | .create = pppox_create, |
131 | .owner = THIS_MODULE, | 131 | .owner = THIS_MODULE, |