101-linux-netlink-drop-NL_SET_ERR_MSG-for-kernel-modules.patch 933 B

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