Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbbL1Inm (ORCPT ); Mon, 28 Dec 2015 03:43:42 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:33263 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbbL1Inj (ORCPT ); Mon, 28 Dec 2015 03:43:39 -0500 From: Bamvor Jian Zhang To: ynorov@caviumnetworks.com, arnd@arndb.de, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, broonie@kernel.org, jan.dakinevich@gmail.com, ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com, apinski@cavium.com, Andrew.Pinski@caviumnetworks.com, bamvor.zhangjian@linaro.org Subject: > diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile Date: Mon, 28 Dec 2015 16:43:06 +0800 Message-Id: <1451292190-15024-1-git-send-email-bamvor.zhangjian@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> References: <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2254 Lines: 50 I feel we need something like this to avoid the failure of compiling when build with ARM64_ILP32(which will select COMPAT) and ARMV8_DEPRECATED (which depends on the opcodes.o). >From f8b8ffdb449491ecf8ba465238bbdb4625a74ac0 Mon Sep 17 00:00:00 2001 From: Bamvor Jian Zhang Date: Mon, 28 Dec 2015 12:57:46 +0800 Subject: [PATCH] arm64: compat: fix wrong dependency of ARMV8_DEPRECATED When compile with ARM64_ILP32, ARMV8_DEPRECATED will be selected due to the dependency of COMPAT. It leads to the following error: LD init/built-in.o arch/arm64/kernel/built-in.o: In function `cp15barrier_handler': /home/bamvor/works/source/kernel/linux_ilp32/arch/arm64/kernel/armv8_deprecated.c:467: undefined reference to `arm_check_condition' /home/bamvor/works/source/kernel/linux_ilp32/arch/arm64/kernel/armv8_deprecated.c:467: undefined reference to `arm_check_condition' arch/arm64/kernel/built-in.o: In function `swp_handler': /home/bamvor/works/source/kernel/linux_ilp32/arch/arm64/kernel/armv8_deprecated.c:386: undefined reference to `arm_check_condition' /home/bamvor/works/source/kernel/linux_ilp32/arch/arm64/kernel/armv8_deprecated.c:386: undefined reference to `arm_check_condition' Makefile:927: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 This patch fix this by updating the dependency from COMPAT to AARCH32_EL0. Signed-off-by: Bamvor Jian Zhang --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index deec37a..e52fd03 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -509,7 +509,7 @@ config FORCE_MAX_ZONEORDER menuconfig ARMV8_DEPRECATED bool "Emulate deprecated/obsolete ARMv8 instructions" - depends on COMPAT + depends on AARCH32_EL0 help Legacy software support may require certain instructions that have been deprecated or obsoleted in the architecture. -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/