Skip to content

Commit

Permalink
batman-adv: Let packet.h include its headers directly
Browse files Browse the repository at this point in the history
The headers used by packet.h should also be included by it directly. main.h
is currently dealing with it in batman-adv, but this will no longer work
when this header is moved to include/uapi/linux/.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sven Eckelmann authored and David S. Miller committed Dec 21, 2017
1 parent a0e2e75 commit 4e58452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/batman-adv/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ enum batadv_uev_type {

/* Kernel headers */

#include <linux/bitops.h> /* for packet.h */
#include <linux/compiler.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h> /* for packet.h */
#include <linux/if_vlan.h>
#include <linux/jiffies.h>
#include <linux/percpu.h>
Expand Down
2 changes: 2 additions & 0 deletions net/batman-adv/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#define _NET_BATMAN_ADV_PACKET_H_

#include <asm/byteorder.h>
#include <linux/bitops.h>
#include <linux/if_ether.h>
#include <linux/types.h>

/**
Expand Down

0 comments on commit 4e58452

Please sign in to comment.