diff options
author | Joe Perches <joe@perches.com> | 2013-09-20 14:23:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-20 14:49:33 -0400 |
commit | ff2b94d2c3d075d0f2fde330e3b5a73053c426c7 (patch) | |
tree | 1325d64684fc2cf059c6c271cefc5aff67914767 /include/net/genetlink.h | |
parent | 8aae218f58f44471c6715e695da5ed9f54dd4491 (diff) |
genetlink.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>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r-- | include/net/genetlink.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 8e0b6c856a13..9b787b62cf16 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h | |||
@@ -122,7 +122,7 @@ struct genl_ops { | |||
122 | struct list_head ops_list; | 122 | struct list_head ops_list; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | extern int __genl_register_family(struct genl_family *family); | 125 | int __genl_register_family(struct genl_family *family); |
126 | 126 | ||
127 | static inline int genl_register_family(struct genl_family *family) | 127 | static inline int genl_register_family(struct genl_family *family) |
128 | { | 128 | { |
@@ -130,8 +130,8 @@ static inline int genl_register_family(struct genl_family *family) | |||
130 | return __genl_register_family(family); | 130 | return __genl_register_family(family); |
131 | } | 131 | } |
132 | 132 | ||
133 | extern int __genl_register_family_with_ops(struct genl_family *family, | 133 | int __genl_register_family_with_ops(struct genl_family *family, |
134 | struct genl_ops *ops, size_t n_ops); | 134 | struct genl_ops *ops, size_t n_ops); |
135 | 135 | ||
136 | static inline int genl_register_family_with_ops(struct genl_family *family, | 136 | static inline int genl_register_family_with_ops(struct genl_family *family, |
137 | struct genl_ops *ops, size_t n_ops) | 137 | struct genl_ops *ops, size_t n_ops) |
@@ -140,18 +140,18 @@ static inline int genl_register_family_with_ops(struct genl_family *family, | |||
140 | return __genl_register_family_with_ops(family, ops, n_ops); | 140 | return __genl_register_family_with_ops(family, ops, n_ops); |
141 | } | 141 | } |
142 | 142 | ||
143 | extern int genl_unregister_family(struct genl_family *family); | 143 | int genl_unregister_family(struct genl_family *family); |
144 | extern int genl_register_ops(struct genl_family *, struct genl_ops *ops); | 144 | int genl_register_ops(struct genl_family *, struct genl_ops *ops); |
145 | extern int genl_unregister_ops(struct genl_family *, struct genl_ops *ops); | 145 | int genl_unregister_ops(struct genl_family *, struct genl_ops *ops); |
146 | extern int genl_register_mc_group(struct genl_family *family, | 146 | int genl_register_mc_group(struct genl_family *family, |
147 | struct genl_multicast_group *grp); | 147 | struct genl_multicast_group *grp); |
148 | extern void genl_unregister_mc_group(struct genl_family *family, | 148 | void genl_unregister_mc_group(struct genl_family *family, |
149 | struct genl_multicast_group *grp); | 149 | struct genl_multicast_group *grp); |
150 | extern void genl_notify(struct sk_buff *skb, struct net *net, u32 portid, | 150 | void genl_notify(struct sk_buff *skb, struct net *net, u32 portid, |
151 | u32 group, struct nlmsghdr *nlh, gfp_t flags); | 151 | u32 group, struct nlmsghdr *nlh, gfp_t flags); |
152 | 152 | ||
153 | void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, | 153 | void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, |
154 | struct genl_family *family, int flags, u8 cmd); | 154 | struct genl_family *family, int flags, u8 cmd); |
155 | 155 | ||
156 | /** | 156 | /** |
157 | * genlmsg_nlhdr - Obtain netlink header from user specified header | 157 | * genlmsg_nlhdr - Obtain netlink header from user specified header |