]> git.baikalelectronics.ru Git - kernel.git/commitdiff
netlink: remove nl_set_extack_cookie_u32()
authorJakub Kicinski <kuba@kernel.org>
Wed, 26 Jan 2022 19:11:06 +0000 (11:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2022 13:53:27 +0000 (13:53 +0000)
Not used since v5.10.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h

index 1ec631838af9b51122dc35e9b06e159c8792b2b8..bda1c385cffbca2c3728d2692037a655e3995c9a 100644 (file)
@@ -135,15 +135,6 @@ static inline void nl_set_extack_cookie_u64(struct netlink_ext_ack *extack,
        extack->cookie_len = sizeof(cookie);
 }
 
-static inline void nl_set_extack_cookie_u32(struct netlink_ext_ack *extack,
-                                           u32 cookie)
-{
-       if (!extack)
-               return;
-       memcpy(extack->cookie, &cookie, sizeof(cookie));
-       extack->cookie_len = sizeof(cookie);
-}
-
 void netlink_kernel_release(struct sock *sk);
 int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
 int netlink_change_ngroups(struct sock *sk, unsigned int groups);