Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Pirko and committed by
David S. Miller
265ecd4f c6c08614

-21
-2
include/net/genetlink.h
··· 75 75 struct module *module; 76 76 }; 77 77 78 - struct nlattr **genl_family_attrbuf(const struct genl_family *family); 79 - 80 78 /** 81 79 * struct genl_info - receiving information 82 80 * @snd_seq: sending sequence number
-19
net/netlink/genetlink.c
··· 1164 1164 1165 1165 subsys_initcall(genl_init); 1166 1166 1167 - /** 1168 - * genl_family_attrbuf - return family's attrbuf 1169 - * @family: the family 1170 - * 1171 - * Return the family's attrbuf, while validating that it's 1172 - * actually valid to access it. 1173 - * 1174 - * You cannot use this function with a family that has parallel_ops 1175 - * and you can only use it within (pre/post) doit/dumpit callbacks. 1176 - */ 1177 - struct nlattr **genl_family_attrbuf(const struct genl_family *family) 1178 - { 1179 - if (!WARN_ON(family->parallel_ops)) 1180 - lockdep_assert_held(&genl_mutex); 1181 - 1182 - return family->attrbuf; 1183 - } 1184 - EXPORT_SYMBOL(genl_family_attrbuf); 1185 - 1186 1167 static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group, 1187 1168 gfp_t flags) 1188 1169 {