020-header-fix-genl_notify-on-kernel-4.4.patch 1023 B

12345678910111213141516171819202122232425262728
  1. From 7a6e8b70a956a722f90d551e920c1096a9455b54 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <[email protected]>
  3. Date: Sat, 5 Dec 2015 14:10:28 +0100
  4. Subject: [PATCH 07/12] header: fix genl_notify() on kernel 4.4
  5. The change of the parameters of genl_notify() is in kernel 4.4. This
  6. backport should not be applied for kernel 4.4 and newer kernel versions.
  7. Signed-off-by: Hauke Mehrtens <[email protected]>
  8. ---
  9. backport/backport-include/net/genetlink.h | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. --- a/backport-include/net/genetlink.h
  12. +++ b/backport-include/net/genetlink.h
  13. @@ -146,10 +146,12 @@ backport_genlmsg_multicast_allns(struct
  14. #define __genl_const
  15. #else /* < 3.13 */
  16. #define __genl_const const
  17. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
  18. #define genl_notify(_fam, _skb, _info, _group, _flags) \
  19. genl_notify(_fam, _skb, genl_info_net(_info), \
  20. genl_info_snd_portid(_info), \
  21. _group, _info->nlhdr, _flags)
  22. +#endif /* < 4.4 */
  23. #endif /* < 3.13 */
  24. #endif /* __BACKPORT_NET_GENETLINK_H */