diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-12-05 14:10:28 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-02-18 22:14:39 +0100 |
commit | 467aebfdc8593c11bc29c24d92bb8ed41009f31f (patch) | |
tree | 9e2a63bdcdd865854706f75ab438ce372ada2d1b | |
parent | 6fb3580fa43faf7643f0460ad0cd288253c7983c (diff) |
header: fix genl_notify() on kernel 4.4
Upstream commit: 7a6e8b70a956a722f90d551e920c1096a9455b54
The change of the parameters of genl_notify() is in kernel 4.4. This
backport should not be applied for kernel 4.4 and newer kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/net/genetlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/net/genetlink.h b/backport/backport-include/net/genetlink.h index 6c6d3e46..2e0bb3ec 100644 --- a/backport/backport-include/net/genetlink.h +++ b/backport/backport-include/net/genetlink.h @@ -146,10 +146,12 @@ backport_genlmsg_multicast_allns(struct genl_family *family, #define __genl_const #else /* < 3.13 */ #define __genl_const const +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) #define genl_notify(_fam, _skb, _info, _group, _flags) \ genl_notify(_fam, _skb, genl_info_net(_info), \ genl_info_snd_portid(_info), \ _group, _info->nlhdr, _flags) +#endif /* < 4.4 */ #endif /* < 3.13 */ #endif /* __BACKPORT_NET_GENETLINK_H */ |