diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-10-24 16:08:48 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-10-24 16:08:48 +0200 |
commit | 0d4503988a997e6414d1bf074c9a6fc62a7b339c (patch) | |
tree | 2f27a861a2e015103ed42776beb7b96a634cdc9e /backport/backport-include/net/genetlink.h | |
parent | 60f18ada41ef32e0554b4c7056d3868bcaa515be (diff) |
backports: fix the extack backport
I neglected to take into account that the spatch will also
be applied to the backport-4.12.c file itself, fix that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/net/genetlink.h')
-rw-r--r-- | backport/backport-include/net/genetlink.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backport/backport-include/net/genetlink.h b/backport/backport-include/net/genetlink.h index 65a4a4b2..f620b99d 100644 --- a/backport/backport-include/net/genetlink.h +++ b/backport/backport-include/net/genetlink.h @@ -3,6 +3,17 @@ #include_next <net/genetlink.h> #include <linux/version.h> +static inline void __bp_genl_info_userhdr_set(struct genl_info *info, + void *userhdr) +{ + info->userhdr = userhdr; +} + +static inline void *__bp_genl_info_userhdr(struct genl_info *info) +{ + return info->userhdr; +} + #if LINUX_VERSION_IS_LESS(4,12,0) #define GENL_SET_ERR_MSG(info, msg) do { } while (0) |