diff options
-rw-r--r-- | include/linux/can/core.h | 1 | ||||
-rw-r--r-- | net/can/af_can.c | 9 | ||||
-rw-r--r-- | net/can/bcm.c | 2 | ||||
-rw-r--r-- | net/can/raw.c | 2 |
4 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/can/core.h b/include/linux/can/core.h index 6099bc18bd0c..f8284a94a13d 100644 --- a/include/linux/can/core.h +++ b/include/linux/can/core.h | |||
@@ -57,6 +57,5 @@ extern void can_rx_unregister(struct net *net, struct net_device *dev, | |||
57 | void *data); | 57 | void *data); |
58 | 58 | ||
59 | extern int can_send(struct sk_buff *skb, int loop); | 59 | extern int can_send(struct sk_buff *skb, int loop); |
60 | extern int can_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); | ||
61 | 60 | ||
62 | #endif /* !_CAN_CORE_H */ | 61 | #endif /* !_CAN_CORE_H */ |
diff --git a/net/can/af_can.c b/net/can/af_can.c index 80281ef2ccbd..9c86de2da45e 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c | |||
@@ -87,15 +87,6 @@ static atomic_t skbcounter = ATOMIC_INIT(0); | |||
87 | * af_can socket functions | 87 | * af_can socket functions |
88 | */ | 88 | */ |
89 | 89 | ||
90 | int can_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | ||
91 | { | ||
92 | switch (cmd) { | ||
93 | default: | ||
94 | return -ENOIOCTLCMD; | ||
95 | } | ||
96 | } | ||
97 | EXPORT_SYMBOL(can_ioctl); | ||
98 | |||
99 | static void can_sock_destruct(struct sock *sk) | 90 | static void can_sock_destruct(struct sock *sk) |
100 | { | 91 | { |
101 | skb_queue_purge(&sk->sk_receive_queue); | 92 | skb_queue_purge(&sk->sk_receive_queue); |
diff --git a/net/can/bcm.c b/net/can/bcm.c index a34ee52f19ea..1eecf4d3e8d2 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c | |||
@@ -1688,7 +1688,7 @@ static const struct proto_ops bcm_ops = { | |||
1688 | .accept = sock_no_accept, | 1688 | .accept = sock_no_accept, |
1689 | .getname = sock_no_getname, | 1689 | .getname = sock_no_getname, |
1690 | .poll = datagram_poll, | 1690 | .poll = datagram_poll, |
1691 | .ioctl = can_ioctl, /* use can_ioctl() from af_can.c */ | 1691 | .ioctl = sock_no_ioctl, |
1692 | .gettstamp = sock_gettstamp, | 1692 | .gettstamp = sock_gettstamp, |
1693 | .listen = sock_no_listen, | 1693 | .listen = sock_no_listen, |
1694 | .shutdown = sock_no_shutdown, | 1694 | .shutdown = sock_no_shutdown, |
diff --git a/net/can/raw.c b/net/can/raw.c index afcbff063a67..bbbe3dd0abe9 100644 --- a/net/can/raw.c +++ b/net/can/raw.c | |||
@@ -845,7 +845,7 @@ static const struct proto_ops raw_ops = { | |||
845 | .accept = sock_no_accept, | 845 | .accept = sock_no_accept, |
846 | .getname = raw_getname, | 846 | .getname = raw_getname, |
847 | .poll = datagram_poll, | 847 | .poll = datagram_poll, |
848 | .ioctl = can_ioctl, /* use can_ioctl() from af_can.c */ | 848 | .ioctl = sock_no_ioctl, |
849 | .gettstamp = sock_gettstamp, | 849 | .gettstamp = sock_gettstamp, |
850 | .listen = sock_no_listen, | 850 | .listen = sock_no_listen, |
851 | .shutdown = sock_no_shutdown, | 851 | .shutdown = sock_no_shutdown, |