summaryrefslogtreecommitdiff
path: root/drivers/staging/batman-adv/bitarray.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/bitarray.h
parent7809cea94f4094918df062bd84b327dc4119d304 (diff)
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/bitarray.h')
-rw-r--r--drivers/staging/batman-adv/bitarray.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/bitarray.h b/drivers/staging/batman-adv/bitarray.h
index dad13bf473d0..01897d6962d0 100644
--- a/drivers/staging/batman-adv/bitarray.h
+++ b/drivers/staging/batman-adv/bitarray.h
@@ -19,6 +19,8 @@
*
*/
+#ifndef _NET_BATMAN_ADV_BITARRAY_H_
+#define _NET_BATMAN_ADV_BITARRAY_H_
/* you should choose something big, if you don't want to waste cpu */
#define TYPE_OF_WORD unsigned long
@@ -40,3 +42,5 @@ char bit_get_packet(TYPE_OF_WORD *seq_bits, int32_t seq_num_diff,
/* count the hamming weight, how many good packets did we receive? */
int bit_packet_count(TYPE_OF_WORD *seq_bits);
+
+#endif /* _NET_BATMAN_ADV_BITARRAY_H_ */