1 --- a/backport-include/net/genetlink.h
2 +++ b/backport-include/net/genetlink.h
4 #include_next <net/genetlink.h>
5 #include <linux/version.h>
7 +#if LINUX_VERSION_IS_LESS(4,12,0)
8 static inline void __bp_genl_info_userhdr_set(struct genl_info *info,
11 @@ -14,7 +15,6 @@ static inline void *__bp_genl_info_userh
15 -#if LINUX_VERSION_IS_LESS(4,12,0)
16 #define GENL_SET_ERR_MSG(info, msg) NL_SET_ERR_MSG(genl_info_extack(info), msg)
18 static inline int genl_err_attr(struct genl_info *info, int err,
19 @@ -44,11 +44,13 @@ static inline struct netlink_ext_ack *ge
23 +#if LINUX_VERSION_IS_LESS(6,6,0)
24 /* this gets put in place of info->userhdr, since we use that above */
25 static inline void *genl_info_userhdr(struct genl_info *info)
27 return (u8 *)info->genlhdr + GENL_HDRLEN;
31 #if LINUX_VERSION_IS_LESS(4,10,0)
32 #define __genl_ro_after_init