aboutsummaryrefslogtreecommitdiffstats
path: root/kerncompat.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-21 17:49:26 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-21 17:49:26 +0100
commit07ce7005fc81289eb4c7dde7d601be08c977b92c (patch)
treeed9be80ea3b023b552e281aa5425e4675ed32892 /kerncompat.h
parent39568fa417ceee3133a8cadae0bd1527adf61221 (diff)
downloadbtrfs-progs-07ce7005fc81289eb4c7dde7d601be08c977b92c.tar.gz
btrfs-progs-07ce7005fc81289eb4c7dde7d601be08c977b92c.tar.xz
btrfs-progs-07ce7005fc81289eb4c7dde7d601be08c977b92c.zip
btrfs-progs: unify header file inclusion protections
There are missing ifdefs or defines with very generic names. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 314ea02..5d92856 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 <stdio.h>
#include <stdlib.h>
@@ -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