Displaying 1 result from an estimated 1 matches for "dff5eb8".
Did you mean:
c5f5eb8
2012 Sep 12
3
[RFC][PATCH] Btrfs-progs: Fix compiler warnings on PPC64.
...let PPC64 know to use unsigned long long instead.
+ */
+#define __KERNEL__
#include <asm/types.h>
typedef __u32 u32;
typedef __u64 u64;
typedef __u16 u16;
typedef __u8 u8;
+#undef __KERNEL__
#else
typedef unsigned int u32;
typedef unsigned int __u32;
diff --git a/mkfs.c b/mkfs.c
index dff5eb8..1c88804 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -18,6 +18,7 @@
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
+#define __KERNEL__
#ifndef __CHECKER__
#include <sys/ioctl.h>
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a mess...