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

ndisc.h: Remove extern from function prototypes

There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
3cc818a2 a5be1eb6

+26 -35
+26 -35
include/net/ndisc.h
··· 110 110 111 111 #define NDISC_OPT_SPACE(len) (((len)+2+7)&~7) 112 112 113 - extern struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len, 114 - struct ndisc_options *ndopts); 113 + struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len, 114 + struct ndisc_options *ndopts); 115 115 116 116 /* 117 117 * Return the padding between the option length and the start of the ··· 189 189 return n; 190 190 } 191 191 192 - extern int ndisc_init(void); 193 - extern int ndisc_late_init(void); 192 + int ndisc_init(void); 193 + int ndisc_late_init(void); 194 194 195 - extern void ndisc_late_cleanup(void); 196 - extern void ndisc_cleanup(void); 195 + void ndisc_late_cleanup(void); 196 + void ndisc_cleanup(void); 197 197 198 - extern int ndisc_rcv(struct sk_buff *skb); 198 + int ndisc_rcv(struct sk_buff *skb); 199 199 200 - extern void ndisc_send_ns(struct net_device *dev, 201 - struct neighbour *neigh, 202 - const struct in6_addr *solicit, 203 - const struct in6_addr *daddr, 204 - const struct in6_addr *saddr); 200 + void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh, 201 + const struct in6_addr *solicit, 202 + const struct in6_addr *daddr, const struct in6_addr *saddr); 205 203 206 - extern void ndisc_send_rs(struct net_device *dev, 207 - const struct in6_addr *saddr, 208 - const struct in6_addr *daddr); 209 - extern void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, 210 - const struct in6_addr *daddr, 211 - const struct in6_addr *solicited_addr, 212 - bool router, bool solicited, bool override, 213 - bool inc_opt); 204 + void ndisc_send_rs(struct net_device *dev, 205 + const struct in6_addr *saddr, const struct in6_addr *daddr); 206 + void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, 207 + const struct in6_addr *daddr, 208 + const struct in6_addr *solicited_addr, 209 + bool router, bool solicited, bool override, bool inc_opt); 214 210 215 - extern void ndisc_send_redirect(struct sk_buff *skb, 216 - const struct in6_addr *target); 211 + void ndisc_send_redirect(struct sk_buff *skb, const struct in6_addr *target); 217 212 218 - extern int ndisc_mc_map(const struct in6_addr *addr, char *buf, 219 - struct net_device *dev, int dir); 213 + int ndisc_mc_map(const struct in6_addr *addr, char *buf, struct net_device *dev, 214 + int dir); 220 215 221 216 222 217 /* 223 218 * IGMP 224 219 */ 225 - extern int igmp6_init(void); 220 + int igmp6_init(void); 226 221 227 - extern void igmp6_cleanup(void); 222 + void igmp6_cleanup(void); 228 223 229 - extern int igmp6_event_query(struct sk_buff *skb); 224 + int igmp6_event_query(struct sk_buff *skb); 230 225 231 - extern int igmp6_event_report(struct sk_buff *skb); 226 + int igmp6_event_report(struct sk_buff *skb); 232 227 233 228 234 229 #ifdef CONFIG_SYSCTL 235 - extern int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, 236 - int write, 237 - void __user *buffer, 238 - size_t *lenp, 239 - loff_t *ppos); 230 + int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, 231 + void __user *buffer, size_t *lenp, loff_t *ppos); 240 232 int ndisc_ifinfo_sysctl_strategy(struct ctl_table *ctl, 241 233 void __user *oldval, size_t __user *oldlenp, 242 234 void __user *newval, size_t newlen); 243 235 #endif 244 236 245 - extern void inet6_ifinfo_notify(int event, 246 - struct inet6_dev *idev); 237 + void inet6_ifinfo_notify(int event, struct inet6_dev *idev); 247 238 248 239 #endif