[Drbd-dev] [PATCH] drbd: Fix build on bigendian

Michal Marek mmarek at suse.cz
Tue Sep 6 14:04:12 CEST 2011


Remove the superfluous <asm-generic/bitops/le.h> include and fix the
have_find_next_zero_bit_le test ('NULL' undeclared).

Signed-off-by: Michal Marek <mmarek at suse.cz>
---
 drbd/compat/tests/have_find_next_zero_bit_le.c |    2 +-
 drbd/drbd_bitmap.c                             |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drbd/compat/tests/have_find_next_zero_bit_le.c b/drbd/compat/tests/have_find_next_zero_bit_le.c
index 901e4b3..4338511 100644
--- a/drbd/compat/tests/have_find_next_zero_bit_le.c
+++ b/drbd/compat/tests/have_find_next_zero_bit_le.c
@@ -1,5 +1,5 @@
+#include <linux/stddef.h>
 #include <linux/bitops.h>
-#include <asm-generic/bitops/le.h>
 
 unsigned long func(void)
 {
diff --git a/drbd/drbd_bitmap.c b/drbd/drbd_bitmap.c
index 342aa08..4d4587e 100644
--- a/drbd/drbd_bitmap.c
+++ b/drbd/drbd_bitmap.c
@@ -30,8 +30,6 @@
 #include <linux/dynamic_debug.h>
 #include <asm/kmap_types.h>
 
-#include <asm-generic/bitops/le.h>
-
 #include "drbd_int.h"
 
 /* See the ifdefs and comments inside that header file.
-- 
1.7.6



More information about the drbd-dev mailing list