aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/aggregation.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-06-26 00:28:24 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-08 12:17:32 -0700
commit62c2072003074f3e7fdc1bfb07f4362215b49937 (patch)
tree33dbaa7591f7b26a9ea1f762224285bd9b6a47f2 /drivers/staging/batman-adv/aggregation.h
parentStaging: batman-adv: Add sysfs abi documentation about bonding (diff)
downloadlinux-dev-62c2072003074f3e7fdc1bfb07f4362215b49937.tar.xz
linux-dev-62c2072003074f3e7fdc1bfb07f4362215b49937.zip
Staging: batman-adv: Add include guards to all header files
We include different header files indirectly to the same source file. This creates weird compiler errors from time to time. Include guards should prefend that functions/variables/... gets redefined by itself. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/aggregation.h')
-rw-r--r--drivers/staging/batman-adv/aggregation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/aggregation.h b/drivers/staging/batman-adv/aggregation.h
index 84401ca24c35..71a91b3da913 100644
--- a/drivers/staging/batman-adv/aggregation.h
+++ b/drivers/staging/batman-adv/aggregation.h
@@ -19,6 +19,9 @@
*
*/
+#ifndef _NET_BATMAN_ADV_AGGREGATION_H_
+#define _NET_BATMAN_ADV_AGGREGATION_H_
+
#include "main.h"
/* is there another aggregated packet here? */
@@ -36,3 +39,5 @@ void add_bat_packet_to_list(struct bat_priv *bat_priv,
unsigned long send_time);
void receive_aggr_bat_packet(struct ethhdr *ethhdr, unsigned char *packet_buff,
int packet_len, struct batman_if *if_incoming);
+
+#endif /* _NET_BATMAN_ADV_AGGREGATION_H_ */