aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/genetlink.h
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2015-09-22 18:56:43 +0200
committerDavid S. Miller <davem@davemloft.net>2015-09-24 12:25:23 -0700
commit92c14d9b5ee86fd6cf136c01b6a87353522aebdd (patch)
tree06a095b1c2f948b3a045e12406b0ca8020c20bf5 /include/net/genetlink.h
parentnet/ethoc: support big-endian register layout (diff)
downloadwireguard-linux-92c14d9b5ee86fd6cf136c01b6a87353522aebdd.tar.xz
wireguard-linux-92c14d9b5ee86fd6cf136c01b6a87353522aebdd.zip
genetlink: simplify genl_notify
The genl_notify function has too many arguments for no real reason - all callers use genl_info to get them anyway. Just pass the genl_info down to genl_notify. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/genetlink.h')
-rw-r--r--include/net/genetlink.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index a9af1cc8c1bc..1b6b6dcb018d 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -183,9 +183,8 @@ _genl_register_family_with_ops_grps(struct genl_family *family,
(grps), ARRAY_SIZE(grps))
int genl_unregister_family(struct genl_family *family);
-void genl_notify(struct genl_family *family,
- struct sk_buff *skb, struct net *net, u32 portid,
- u32 group, struct nlmsghdr *nlh, gfp_t flags);
+void genl_notify(struct genl_family *family, struct sk_buff *skb,
+ struct genl_info *info, u32 group, gfp_t flags);
struct sk_buff *genlmsg_new_unicast(size_t payload, struct genl_info *info,
gfp_t flags);