[CRIU] [PATCH 6/8] asm: drop unused macros from the generic implementation of bit operations

Alexander Kartashov alekskartashov at parallels.com
Mon Mar 10 01:51:26 PDT 2014


Macros dropped by this patch were copied from the x86 implementation
of bit operations when the ARM implementation was derived.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 include/asm-generic/bitops.h |    9 ---------
 1 file changed, 9 deletions(-)

diff --git a/include/asm-generic/bitops.h b/include/asm-generic/bitops.h
index 6620ef3..d0facf8 100644
--- a/include/asm-generic/bitops.h
+++ b/include/asm-generic/bitops.h
@@ -9,15 +9,6 @@
 #define DECLARE_BITMAP(name, bits)		\
 	unsigned long name[BITS_TO_LONGS(bits)]
 
-#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
-/* Technically wrong, but this avoids compilation errors on some gcc
-   versions. */
-#define BITOP_ADDR(x) "=m" (*(volatile long *) (x))
-#else
-#define BITOP_ADDR(x) "+m" (*(volatile long *) (x))
-#endif
-
-#define ADDR				BITOP_ADDR(addr)
 
 static inline void set_bit(int nr, volatile unsigned long *addr) {
 	addr += nr / BITS_PER_LONG;
-- 
1.7.9.5



More information about the CRIU mailing list