mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] MN10300: Fix endianess of ext2 bitops
@ 2010-09-23 15:40 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2010-09-23 15:40 UTC (permalink / raw)
  To: torvalds, akpm
  Cc: linux-linux-am33-list, linux-kernel, Mark Salter, David Howells

From: Mark Salter <msalter@redhat.com>

The MN10300 arch ext2 bitops assume a big-endian kernel, but the MN10300 arch
only runs in little-endian mode.

Reported-by: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
---

 arch/mn10300/include/asm/bitops.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/arch/mn10300/include/asm/bitops.h b/arch/mn10300/include/asm/bitops.h
index 942093b..6208ea6 100644
--- a/arch/mn10300/include/asm/bitops.h
+++ b/arch/mn10300/include/asm/bitops.h
@@ -229,9 +229,9 @@ int ffs(int x)
 #include <asm-generic/bitops/hweight.h>
 
 #define ext2_set_bit_atomic(lock, nr, addr) \
-	test_and_set_bit((nr) ^ 0x18, (addr))
+	test_and_set_bit((nr), (addr))
 #define ext2_clear_bit_atomic(lock, nr, addr) \
-	test_and_clear_bit((nr) ^ 0x18, (addr))
+	test_and_clear_bit((nr), (addr))
 
 #include <asm-generic/bitops/ext2-non-atomic.h>
 #include <asm-generic/bitops/minix-le.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-23 15:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-23 15:40 [PATCH] MN10300: Fix endianess of ext2 bitops David Howells

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

all inboxes | Powered by JetHome®