[CRIU] [RFC 07/11] Remove ARM AT_VECTOR_SIZE from x86 header

Christopher Covington cov at codeaurora.org
Fri Feb 7 09:04:41 PST 2014


Perhaps left over from when a single types.h was being used for
multiple architectures, remove the ARM definition of
AT_VECTOR_SIZE from the x86 types.h header. Also remove the
CONFIG_ARM definition since it unused.
---
 Makefile                     | 2 +-
 arch/x86/include/asm/types.h | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 480c6d0..8049374 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ endif
 ifeq ($(shell echo $(ARCH) | sed -e 's/arm.*/arm/'),arm)
 	ARMV         := $(shell echo $(ARCH) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
 	SRCARCH      := arm
-	DEFINES      := -DCONFIG_ARM -DCONFIG_ARMV$(ARMV)
+	DEFINES      := -DCONFIG_ARMV$(ARMV)
 
 	ifeq ($(ARMV),6)
 		CFLAGS += -march=armv6
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index 97a1513..b0e5411 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -126,11 +126,7 @@ typedef u64 auxv_t;
 
 #define CORE_ENTRY__MARCH CORE_ENTRY__MARCH__X86_64
 
-#if defined(CONFIG_X86_64)
-# define AT_VECTOR_SIZE 44
-#elif defined(CONFIG_ARM)
-# define AT_VECTOR_SIZE 22             /* Not needed at moment */
-#endif
+#define AT_VECTOR_SIZE 44
 
 #define CORE_THREAD_ARCH_INFO(core) core->thread_info
 
-- 
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by the Linux Foundation.



More information about the CRIU mailing list