Skip to content

Commit 265ecd4

Browse files
jpirkodavem330
authored andcommitted
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>
1 parent c6c0861 commit 265ecd4

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

‎include/net/genetlink.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ struct genl_family {
7575
struct module *module;
7676
};
7777

78-
struct nlattr **genl_family_attrbuf(const struct genl_family *family);
79-
8078
/**
8179
* struct genl_info - receiving information
8280
* @snd_seq: sending sequence number

‎net/netlink/genetlink.c‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,25 +1164,6 @@ static int __init genl_init(void)
11641164

11651165
subsys_initcall(genl_init);
11661166

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-
11861167
static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group,
11871168
gfp_t flags)
11881169
{

0 commit comments

Comments
 (0)