Skip to content

Commit

Permalink
net: genetlink: remove unused genl_family_attrbuf()
Browse files Browse the repository at this point in the history
genl_family_attrbuf() function is no longer used by anyone, so remove it.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Oct 6, 2019
1 parent c6c0861 commit 265ecd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ struct genl_family {
struct module *module;
};

struct nlattr **genl_family_attrbuf(const struct genl_family *family);

/**
* struct genl_info - receiving information
* @snd_seq: sending sequence number
Expand Down
19 changes: 0 additions & 19 deletions net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,25 +1164,6 @@ static int __init genl_init(void)

subsys_initcall(genl_init);

/**
* genl_family_attrbuf - return family's attrbuf
* @family: the family
*
* Return the family's attrbuf, while validating that it's
* actually valid to access it.
*
* You cannot use this function with a family that has parallel_ops
* and you can only use it within (pre/post) doit/dumpit callbacks.
*/
struct nlattr **genl_family_attrbuf(const struct genl_family *family)
{
if (!WARN_ON(family->parallel_ops))
lockdep_assert_held(&genl_mutex);

return family->attrbuf;
}
EXPORT_SYMBOL(genl_family_attrbuf);

static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group,
gfp_t flags)
{
Expand Down

0 comments on commit 265ecd4

Please sign in to comment.