diff options
author | Sven Eckelmann <sven.eckelmann@gmx.de> | 2010-06-25 18:28:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-08 15:17:32 -0400 |
commit | 62c2072003074f3e7fdc1bfb07f4362215b49937 (patch) | |
tree | 33dbaa7591f7b26a9ea1f762224285bd9b6a47f2 /drivers/staging/batman-adv/bat_debugfs.h | |
parent | 7809cea94f4094918df062bd84b327dc4119d304 (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/bat_debugfs.h')
-rw-r--r-- | drivers/staging/batman-adv/bat_debugfs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/batman-adv/bat_debugfs.h b/drivers/staging/batman-adv/bat_debugfs.h index 5cdd3327d98..72df532b7d5 100644 --- a/drivers/staging/batman-adv/bat_debugfs.h +++ b/drivers/staging/batman-adv/bat_debugfs.h | |||
@@ -20,8 +20,8 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | 22 | ||
23 | #ifndef BAT_DEBUGFS_H | 23 | #ifndef _NET_BATMAN_ADV_DEBUGFS_H_ |
24 | #define BAT_DEBUGFS_H | 24 | #define _NET_BATMAN_ADV_DEBUGFS_H_ |
25 | 25 | ||
26 | #define DEBUGFS_BAT_SUBDIR "batman_adv" | 26 | #define DEBUGFS_BAT_SUBDIR "batman_adv" |
27 | 27 | ||
@@ -30,4 +30,4 @@ void debugfs_destroy(void); | |||
30 | int debugfs_add_meshif(struct net_device *dev); | 30 | int debugfs_add_meshif(struct net_device *dev); |
31 | void debugfs_del_meshif(struct net_device *dev); | 31 | void debugfs_del_meshif(struct net_device *dev); |
32 | 32 | ||
33 | #endif | 33 | #endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */ |