Skip to contentSkip to conversation

MN10300: Fix endianess of ext2 bitops

PATCH New David Howells 1 participant 1 message Sep 23, 2010 Bitops API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MN10300: Fix endianess of ext2 bitops

From: Mark Salter <[email protected]>

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

---

 arch/mn10300/include/asm/bitops.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/mn10300/include/asm/bitops.h +2 -2
index 942093b..6208ea6 100644
@@ -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>