Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294AbbL1JBo (ORCPT ); Mon, 28 Dec 2015 04:01:44 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:43108 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbbL1JBm (ORCPT ); Mon, 28 Dec 2015 04:01:42 -0500 Subject: Re: [PATCH v6 04/20] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead To: Bamvor Jian Zhang , , , , , References: <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> <1451292190-15024-1-git-send-email-bamvor.zhangjian@linaro.org> CC: , , , , , , , , , , , , , , "Zhangjian (Bamvor)" , From: "Zhangjian (Bamvor)" Message-ID: <5680FA5B.9040803@huawei.com> Date: Mon, 28 Dec 2015 17:01:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1451292190-15024-1-git-send-email-bamvor.zhangjian@linaro.org> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.46.193.17] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.5680FA6A.004D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: cf02b84036dcd2e0530f0b851bb4af5e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2401 Lines: 52 Fix the title. On 16:43 2015/12/28, Bamvor Jian Zhang wrote: > 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. > -- 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/