summaryrefslogtreecommitdiff
path: root/kerncompat.h
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2007-12-05 10:41:38 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-12-05 10:41:38 -0500
commit07a4f1b81df6cd9b9e09773f680fc098faed310c (patch)
tree3543dcbdbe4fd1c153f468d2976bcebc34b72ae7 /kerncompat.h
parent1c2b38fe25fe6496d51d41aee7a5a1eb2e2694d8 (diff)
Update btrfs-progs to better match the kernel
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 86860127..3681dd88 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -18,9 +18,9 @@
#ifndef __KERNCOMPAT
#define __KERNCOMPAT
-
#include <stdio.h>
#include <stdlib.h>
+#include <errno.h>
#include <string.h>
#include <endian.h>
#include <byteswap.h>
@@ -124,10 +124,6 @@ static inline int test_bit(int nr, const volatile unsigned long *addr)
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
-
-#define ENOMEM 5
-#define EEXIST 6
-
#ifdef __CHECKER__
#define __CHECK_ENDIAN__
#define __bitwise __bitwise__