Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] [PATCH] drbd: Fix build on bigendian
@ 2011-09-06 12:04 Michal Marek
  2011-09-06 17:16 ` Lars Ellenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Marek @ 2011-09-06 12:04 UTC (permalink / raw)
  To: drbd-dev

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@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Drbd-dev] [PATCH] drbd: Fix build on bigendian
  2011-09-06 12:04 [Drbd-dev] [PATCH] drbd: Fix build on bigendian Michal Marek
@ 2011-09-06 17:16 ` Lars Ellenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2011-09-06 17:16 UTC (permalink / raw)
  To: Michal Marek; +Cc: drbd-dev

On Tue, Sep 06, 2011 at 02:04:12PM +0200, Michal Marek wrote:
> Remove the superfluous <asm-generic/bitops/le.h> include and fix the
> have_find_next_zero_bit_le test ('NULL' undeclared).

Thanks, but...

Hm. That may help you get it working there.
But it will likely break for other still supported kernel versions.

We probably need to figure out a different fix.

> Signed-off-by: Michal Marek <mmarek@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
> 
> _______________________________________________
> drbd-dev mailing list
> drbd-dev@lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-dev

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-06 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 12:04 [Drbd-dev] [PATCH] drbd: Fix build on bigendian Michal Marek
2011-09-06 17:16 ` Lars Ellenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox