netevent/netlink.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>
This commit is contained in:
Joe Perches 2013-09-21 10:22:50 -07:00 committed by David S. Miller
parent 70a3926f49
commit 4f69053b72
2 changed files with 27 additions and 40 deletions

View File

@ -26,8 +26,8 @@ enum netevent_notif_type {
NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */ NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
}; };
extern int register_netevent_notifier(struct notifier_block *nb); int register_netevent_notifier(struct notifier_block *nb);
extern int unregister_netevent_notifier(struct notifier_block *nb); int unregister_netevent_notifier(struct notifier_block *nb);
extern int call_netevent_notifiers(unsigned long val, void *v); int call_netevent_notifiers(unsigned long val, void *v);
#endif #endif

View File

@ -225,44 +225,31 @@ struct nl_info {
u32 portid; u32 portid;
}; };
extern int netlink_rcv_skb(struct sk_buff *skb, int netlink_rcv_skb(struct sk_buff *skb,
int (*cb)(struct sk_buff *, int (*cb)(struct sk_buff *, struct nlmsghdr *));
struct nlmsghdr *)); int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
extern int nlmsg_notify(struct sock *sk, struct sk_buff *skb, unsigned int group, int report, gfp_t flags);
u32 portid, unsigned int group, int report,
gfp_t flags);
extern int nla_validate(const struct nlattr *head, int nla_validate(const struct nlattr *head, int len, int maxtype,
int len, int maxtype, const struct nla_policy *policy);
const struct nla_policy *policy); int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
extern int nla_parse(struct nlattr **tb, int maxtype, int len, const struct nla_policy *policy);
const struct nlattr *head, int len, int nla_policy_len(const struct nla_policy *, int);
const struct nla_policy *policy); struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
extern int nla_policy_len(const struct nla_policy *, int); size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
extern struct nlattr * nla_find(const struct nlattr *head, int nla_memcpy(void *dest, const struct nlattr *src, int count);
int len, int attrtype); int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
extern size_t nla_strlcpy(char *dst, const struct nlattr *nla, int nla_strcmp(const struct nlattr *nla, const char *str);
size_t dstsize); struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
extern int nla_memcpy(void *dest, const struct nlattr *src, int count); void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
extern int nla_memcmp(const struct nlattr *nla, const void *data, struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
size_t size); void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
extern int nla_strcmp(const struct nlattr *nla, const char *str); void __nla_put(struct sk_buff *skb, int attrtype, int attrlen,
extern struct nlattr * __nla_reserve(struct sk_buff *skb, int attrtype, const void *data);
int attrlen); void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
extern void * __nla_reserve_nohdr(struct sk_buff *skb, int attrlen); int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
extern struct nlattr * nla_reserve(struct sk_buff *skb, int attrtype, int nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data);
int attrlen); int nla_append(struct sk_buff *skb, int attrlen, const void *data);
extern void * nla_reserve_nohdr(struct sk_buff *skb, int attrlen);
extern void __nla_put(struct sk_buff *skb, int attrtype,
int attrlen, const void *data);
extern void __nla_put_nohdr(struct sk_buff *skb, int attrlen,
const void *data);
extern int nla_put(struct sk_buff *skb, int attrtype,
int attrlen, const void *data);
extern int nla_put_nohdr(struct sk_buff *skb, int attrlen,
const void *data);
extern int nla_append(struct sk_buff *skb, int attrlen,
const void *data);
/************************************************************************** /**************************************************************************
* Netlink Messages * Netlink Messages