net: genetlink: remove unused genl_family_attrbuf()
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 18:04:41 +0000 (20:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:44:47 +0000 (15:44 +0200)
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>
include/net/genetlink.h
net/netlink/genetlink.c

index 922dcc9348b17263f478eb8a37708ef681483e56..74950663bb00d2be53d3cfb82bcb23ffc35e5324 100644 (file)
@@ -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
index 8059118ee5a10d991e85bf00783f77107c8e7c9a..1b5046436765313ebadcbc1ffb879c505c9c423a 100644 (file)
@@ -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)
 {