1
0

270-batman-adv-Let-packet.h-include-its-headers-directly.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From: Sven Eckelmann <sven.eckelmann@openmesh.com>
  2. Date: Thu, 21 Dec 2017 10:17:38 +0100
  3. Subject: [PATCH] batman-adv: Let packet.h include its headers directly
  4. The headers used by packet.h should also be included by it directly. main.h
  5. is currently dealing with it in batman-adv, but this will no longer work
  6. when this header is moved to include/uapi/linux/.
  7. Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
  8. Signed-off-by: David S. Miller <davem@davemloft.net>
  9. ---
  10. --- a/net/batman-adv/main.h
  11. +++ b/net/batman-adv/main.h
  12. @@ -184,10 +184,8 @@ enum batadv_uev_type {
  13. /* Kernel headers */
  14. -#include <linux/bitops.h> /* for packet.h */
  15. #include <linux/compiler.h>
  16. #include <linux/etherdevice.h>
  17. -#include <linux/if_ether.h> /* for packet.h */
  18. #include <linux/if_vlan.h>
  19. #include <linux/jiffies.h>
  20. #include <linux/percpu.h>
  21. --- a/net/batman-adv/packet.h
  22. +++ b/net/batman-adv/packet.h
  23. @@ -19,6 +19,8 @@
  24. #define _NET_BATMAN_ADV_PACKET_H_
  25. #include <asm/byteorder.h>
  26. +#include <linux/bitops.h>
  27. +#include <linux/if_ether.h>
  28. #include <linux/types.h>
  29. #define batadv_tp_is_error(n) ((u8)(n) > 127 ? 1 : 0)