Skip to content

Commit 356c6fe

Browse files
wildea01ingomolnar
authored andcommitted
locking/atomics/arm64, arm64/bitops: Include <asm-generic/bitops/ext2-atomic-setbit.h>
<asm-generic/bitops/ext2-atomic-setbit.h> provides the ext2 atomic bitop definitions, so we don't need to define our own. Signed-off-by: Will Deacon <will.deacon@arm.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-arm-kernel@lists.infradead.org Cc: yamada.masahiro@socionext.com Link: https://lore.kernel.org/lkml/1529412794-17720-10-git-send-email-will.deacon@arm.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 7c8fc35 commit 356c6fe

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎arch/arm64/include/asm/bitops.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
#include <asm-generic/bitops/lock.h>
3939
#include <asm-generic/bitops/non-atomic.h>
4040
#include <asm-generic/bitops/le.h>
41-
42-
/*
43-
* Ext2 is defined to use little-endian byte ordering.
44-
*/
45-
#define ext2_set_bit_atomic(lock, nr, p) test_and_set_bit_le(nr, p)
46-
#define ext2_clear_bit_atomic(lock, nr, p) test_and_clear_bit_le(nr, p)
41+
#include <asm-generic/bitops/ext2-atomic-setbit.h>
4742

4843
#endif /* __ASM_BITOPS_H */

0 commit comments

Comments
 (0)