summaryrefslogtreecommitdiff
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2022-01-27 13:53:27 +0000
committerDavid S. Miller <davem@davemloft.net>2022-01-27 13:53:27 +0000
commit2fbafb828ec716ef35e877b17a927f3af70c91c6 (patch)
treeba1685f1164cc2cb4dc417a9649cd66d8e6eb728 /include/linux/netlink.h
parentd9f393f468aa939b53cc81b43169953ce37d7cdb (diff)
parent5e4eca5d929a168085140fe93b1e8cef841008d5 (diff)
Merge branch 'static-inlines'
Jakub Kicinski says: ==================== net: get rid of unused static inlines I noticed a couple of unused static inline functions reviewing net/sched patches so I run a grep thru all of include/ and net/ to catch other cases. This set removes the cases which look like obvious dead code. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index 1ec631838af9..bda1c385cffb 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -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);