diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-10-05 21:04:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-06 16:44:47 +0300 |
commit | 265ecd4fa3f0ca43909f8b2cc0e519966f21b167 (patch) | |
tree | ab9f78670e24d12c287b9a0219c4e6ed18067fa5 /net/netlink/genetlink.c | |
parent | c6c08614eb32d250612c9d2940e48951fb4ba325 (diff) | |
download | linux-265ecd4fa3f0ca43909f8b2cc0e519966f21b167.tar.xz |
net: genetlink: remove unused genl_family_attrbuf()
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>
Diffstat (limited to 'net/netlink/genetlink.c')
-rw-r--r-- | net/netlink/genetlink.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 8059118ee5a1..1b5046436765 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -1164,25 +1164,6 @@ problem: 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) { |