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

net: Move prototype declaration to header file include/net/dn.h from net/decnet/af_decnet.c

Move prototype declaration of functions to header file include/net/dn.h
from net/decnet/af_decnet.c because they are used by more than one file.

This eliminates the following warning in net/decnet/af_decnet.c:
net/decnet/sysctl_net_decnet.c:354:6: warning: no previous prototype for ‘dn_register_sysctl’ [-Wmissing-prototypes]
net/decnet/sysctl_net_decnet.c:359:6: warning: no previous prototype for ‘dn_unregister_sysctl’ [-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
ab3301bd f56b8bf6

+2 -3
+2
include/net/dn.h
··· 200 200 } 201 201 202 202 unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu); 203 + void dn_register_sysctl(void); 204 + void dn_unregister_sysctl(void); 203 205 204 206 #define DN_MENUVER_ACC 0x01 205 207 #define DN_MENUVER_USR 0x02
-3
net/decnet/af_decnet.c
··· 2351 2351 .sendpage = sock_no_sendpage, 2352 2352 }; 2353 2353 2354 - void dn_register_sysctl(void); 2355 - void dn_unregister_sysctl(void); 2356 - 2357 2354 MODULE_DESCRIPTION("The Linux DECnet Network Protocol"); 2358 2355 MODULE_AUTHOR("Linux DECnet Project Team"); 2359 2356 MODULE_LICENSE("GPL");