Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rashika Kheria and committed by
David S. Miller
f56b8bf6 0a59f3a9

+2 -2
+2
include/net/dn_route.h
··· 20 20 struct sock *sk, int flags); 21 21 int dn_cache_dump(struct sk_buff *skb, struct netlink_callback *cb); 22 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 26 /* Masks for flags field */ 25 27 #define DN_RT_F_PID 0x07 /* Mask for packet type */
-2
net/decnet/af_decnet.c
··· 2104 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 2107 static struct packet_type dn_dix_packet_type __read_mostly = { 2110 2108 .type = cpu_to_be16(ETH_P_DNA_RT), 2111 2109 .func = dn_route_rcv,