From 07ce7005fc81289eb4c7dde7d601be08c977b92c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 21 Jan 2015 17:49:26 +0100 Subject: btrfs-progs: unify header file inclusion protections There are missing ifdefs or defines with very generic names. Signed-off-by: David Sterba --- kerncompat.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kerncompat.h') diff --git a/kerncompat.h b/kerncompat.h index 314ea023..5d928565 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -16,8 +16,8 @@ * Boston, MA 021110-1307, USA. */ -#ifndef __KERNCOMPAT -#define __KERNCOMPAT +#ifndef __KERNCOMPAT_H__ +#define __KERNCOMPAT_H__ #include #include @@ -351,7 +351,6 @@ struct __una_u64 { __le64 x; } __attribute__((__packed__)); #define put_unaligned_le32(val,p) (((struct __una_u32 *)(p))->x = cpu_to_le32(val)) #define get_unaligned_le64(p) le64_to_cpu(((const struct __una_u64 *)(p))->x) #define put_unaligned_le64(val,p) (((struct __una_u64 *)(p))->x = cpu_to_le64(val)) -#endif #ifndef true #define true 1 @@ -361,3 +360,5 @@ struct __una_u64 { __le64 x; } __attribute__((__packed__)); #ifndef noinline #define noinline #endif + +#endif -- cgit v1.2.3