diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-02-09 11:50:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-09 20:32:49 -0500 |
commit | f56b8bf6e445b22bb6207dbcf30b2c7f5ddfdf96 (patch) | |
tree | 7b42f17bd1817db4ebbd03b909574071c59daf0b | |
parent | 0a59f3a9fd7e2801a445682465ea0522ea497183 (diff) |
net: Move prototype declaration to appropriate header file from decnet/af_decnet.c
Move prototype declaration of functions to header file include/net/dn_route.h
from net/decnet/af_decnet.c because it is used by more than one file.
This eliminates the following warning in net/decnet/dn_route.c:
net/decnet/dn_route.c:629:5: warning: no previous prototype for ‘dn_route_rcv’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/dn_route.h | 2 | ||||
-rw-r--r-- | net/decnet/af_decnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/dn_route.h b/include/net/dn_route.h index b409ad6b8d7a..55df9939bca2 100644 --- a/include/net/dn_route.h +++ b/include/net/dn_route.h | |||
@@ -20,6 +20,8 @@ int dn_route_output_sock(struct dst_entry __rcu **pprt, struct flowidn *, | |||
20 | struct sock *sk, int flags); | 20 | struct sock *sk, int flags); |
21 | int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); | 21 | int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); |
22 | void dn_rt_cache_flush(int delay); | 22 | void dn_rt_cache_flush(int delay); |
23 | int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, | ||
24 | struct packet_type *pt, struct net_device *orig_dev); | ||
23 | 25 | ||
24 | /* Masks for flags field */ | 26 | /* Masks for flags field */ |
25 | #define DN_RT_F_PID 0x07 /* Mask for packet type */ | 27 | #define DN_RT_F_PID 0x07 /* Mask for packet type */ |
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 2954dcbca832..24d9193240e3 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
@@ -2104,8 +2104,6 @@ static struct notifier_block dn_dev_notifier = { | |||
2104 | .notifier_call = dn_device_event, | 2104 | .notifier_call = dn_device_event, |
2105 | }; | 2105 | }; |
2106 | 2106 | ||
2107 | extern int dn_route_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *); | ||
2108 | |||
2109 | static struct packet_type dn_dix_packet_type __read_mostly = { | 2107 | static struct packet_type dn_dix_packet_type __read_mostly = { |
2110 | .type = cpu_to_be16(ETH_P_DNA_RT), | 2108 | .type = cpu_to_be16(ETH_P_DNA_RT), |
2111 | .func = dn_route_rcv, | 2109 | .func = dn_route_rcv, |