Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Michal Marek <mmarek@suse.cz>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] [PATCH] drbd: Fix build on bigendian
Date: Tue,  6 Sep 2011 14:04:12 +0200	[thread overview]
Message-ID: <1315310652-19078-1-git-send-email-mmarek@suse.cz> (raw)

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


             reply	other threads:[~2011-09-06 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 12:04 Michal Marek [this message]
2011-09-06 17:16 ` [Drbd-dev] [PATCH] drbd: Fix build on bigendian Lars Ellenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1315310652-19078-1-git-send-email-mmarek@suse.cz \
    --to=mmarek@suse.cz \
    --cc=drbd-dev@lists.linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox