bpf-headers: fix use of netlink.h header
[openwrt/openwrt.git] / package / kernel / bpf-headers / patches / 101-linux-netlink-drop-NL_SET_ERR_MSG-for-kernel-modules.patch
1 From 7ed95633bff19950069c348b94c9c13164a57a2a Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Wed, 18 Jan 2023 20:20:39 +0100
4 Subject: [PATCH] linux/netlink: drop NL_SET_ERR_MSG for kernel modules
5
6 We don't need NL_SET_ERR_MSG_MOD for bpf modules and we can drop it to
7 solve missing KBUILD_MODNAME define.
8
9 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 ---
11 include/linux/netlink.h | 3 ---
12 1 file changed, 3 deletions(-)
13
14 diff --git a/include/linux/netlink.h b/include/linux/netlink.h
15 index 61b1c7f..93561fb 100644
16 --- a/include/linux/netlink.h
17 +++ b/include/linux/netlink.h
18 @@ -98,9 +98,6 @@ struct netlink_ext_ack {
19 __extack->_msg = __msg; \
20 } while (0)
21
22 -#define NL_SET_ERR_MSG_MOD(extack, msg) \
23 - NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg)
24 -
25 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \
26 if ((extack)) { \
27 (extack)->bad_attr = (attr); \
28 --
29 2.38.1
30