Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753453AbbL2NPy (ORCPT ); Tue, 29 Dec 2015 08:15:54 -0500 Received: from mail-by2on0090.outbound.protection.outlook.com ([207.46.100.90]:52526 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752156AbbL2NPw (ORCPT ); Tue, 29 Dec 2015 08:15:52 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Tue, 29 Dec 2015 16:12:49 +0300 From: Yury Norov To: "Zhangjian (Bamvor)" CC: Bamvor Jian Zhang , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v6 04/20] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead Message-ID: <20151229131249.GA22925@yury-N73SV> References: <1450215766-14765-5-git-send-email-ynorov@caviumnetworks.com> <1451292190-15024-1-git-send-email-bamvor.zhangjian@linaro.org> <5680FA5B.9040803@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5680FA5B.9040803@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: HE1PR01CA0026.eurprd01.prod.exchangelabs.com (25.163.2.164) To BY2PR07MB614.namprd07.prod.outlook.com (10.141.222.146) X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;2:DWMW6EQ6etENIZZyIvM1A9wGgCVxjlgexkxm0VFv+/KnUd0Db/pLiswiqyFnx+N+w7G3JQwsYxBePSPwDP5LBW67XGRrjkhBiKgcZp0T1DK0wMZBwdl3Ye63yut5/rzei74gQz2MZ41VD8EeMdlBQA==;3:YP7aiB6ea19GQh1xXyO5ov2zEP7RglB4s6I/7gMU+LtnoczIbtXI919GrM5jHexfEVvyhnzWD5C+ofILilLEGJjF+D0hgQx1Qq59puZ2W7pBY26K5uWIC/2D23IjMIX1;25:+dZddTOWA3SiVrbRRcIlZNbeVnwOsIIzWhGLkXUb2jmNOkoRMhlTVAttK6j3Q2yz7sU5lo3xjzsmZ6V+kxU2Dzqaqm6aH5ZmxOJa0mIEz713T4mRUd4aEUCz3r5d4j5iaejD1/EhoP/8BMIGHxb+6ilwVw/C4v5zCqs90R/DklolUdhXUsEcHq0VQzNW2PkEYNFK95RWuS2AuSwvyzvyBNStTnXVJldju2aubkgJsA3cjNEQLJBknMjLS5zmP1JOOkGr5oc1QCobvwCoPTpYqw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB614; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;20:aUW+UuZqHwLbunxxpQArVVkHRd7mGkeELlWgExpYHAiKJlbxEY2xjpGsnwWzL39ZAr4XB9bjRmFGDXwGGebRuhySyAy7nW2tvEZ8Z1iAFYwmO6SyIPpA4Jaa76rHFwT8IH6oc0+hhJKfEVYoIQer5a/yzbir/YMCcOZp+GRzXj2UKsdfj42JSoxPj2WlZiKYbeyP2D8DuU51A/GmXN4WGKV5HAMwfiv7LyQPx2UPl9qcPOauk3a8R8x7ZmHJX+g6ZLA4C0zI44QVUJgoRLuP8BSazC5wtUFCRLCL7Boz5J2bbiSmK4tYo5cD+Oo6TYLUn0xagQMYlfrKSQJTBhg140h9pmhfV+/Y4DJjqzg6C1uUr6WF+X3bbFrSqkInJZR01F5DNft5KnXhaYKJNWpc4bWlC/Vi52xpvwMY0cJHw7afE+Euldvup+DrLANp3iP7nM2A+Fy6EWgNgYJn28lcbDpHSezmVzieV20HwZrxko+o23NZCu32S5mWoAVWuzXVpYTWL6ho+8g/6jM93uaQrPvyXd4BFp3+OIcd32ewCymyZL90IhgZ4Zx6Tz8sE0MZyy/F20cmfBza/zzgb0VooYvfMQD3QkH3dQZ+uMdCXoM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001);SRVR:BY2PR07MB614;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB614; X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;4:MXUtaY6xUSRaCmltttvr7zqzxcp2uX0CKTDh7NjuJjT6XtUTrf9a6wmp69rF1VavHaVSnjCnO1qjJE1gtqFLE+h/H0kEtpeCPcMRg2oIVtxXYBzzRTkpQylhr+9vu110qv/QEX48YrFSx1BRcxrhxcWuWTgmKWMF0jGK0AfHoy1VfJv0Zfz3Advg7J/gFLpxwwQTSe41FsM9b62bmlXmYz+hLQPCxS55JPZNn9a0EfTLnM8sJSnAZgDOyVpptO2E3WUg1T13ACfKnnv0NF5yPXaiY+vkbhtFHUGUAetFj56hBHrbBSGRfKtZ8CURHdyiLaOf7FrcQZZBgW6Y2x7nQQEN7GbnANMjtgZiMR+hilRfH2yMRx0ynXBaOev9eoXp X-Forefront-PRVS: 0805EC9467 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(199003)(189002)(24454002)(479174004)(3846002)(76506005)(33656002)(76176999)(101416001)(586003)(40100003)(50986999)(6116002)(77096005)(47776003)(19580395003)(2950100001)(50466002)(23726003)(33716001)(42186005)(1096002)(97756001)(5004730100002)(66066001)(1076002)(19580405001)(46406003)(4001350100001)(106356001)(81156007)(92566002)(54356999)(105586002)(5001960100002)(87976001)(189998001)(122386002)(110136002)(97736004)(83506001)(5008740100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR07MB614;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB614;23:3FHBaLsn8KiB1BigtaKZGOPdjmhtkdnwDcJLzu//Lu?= =?us-ascii?Q?G2zRfJFByrxQCGD/8OFvDHupDs7U7GsA7XGLy6OEgzSXbNR0U+mAIqoals5B?= =?us-ascii?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1oNrK?= =?us-ascii?Q?13qcvUGM1QQMFjIG/YG5iBg4Obi+3OiPTOBnuIUqDfEJp5ujJ8s8IlK/2r6R?= =?us-ascii?Q?XxBd2BTSi+xvvKIIK+pM5Bgfe08aYAGJiAAZ4n0BIwNFy6WmJY6NsX+vqUx/?= =?us-ascii?Q?ImSaTg8C4HFZt1lJxtYLrqVeyrjHZf?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;5:+tpFEsOsz2F12P5xpQX7pMG2vDI/WyZ7EhyjqwZND+wbhl2QQRX+OlT6WoIR29Auv8M9LMSFk0XcsHFkeRv0LxidtukfRzCN1gGqJWyHhRre9Qbn+6WkR4v043w9qpV712iYzFIGLpjs03hE9T9HqQ==;24:60+9b1+VNPksA2vEmdvdPeQt/NTQDm+cH3Q3reXXNCW6pRT94bIHBr7jRUa0ek7SpQcoIlfGhjU6XFMzoDIAQVErMAbKdlgTtZWUXc/KuZo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2015 13:15:47.5056 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB614 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2679 Lines: 60 On Mon, Dec 28, 2015 at 05:01:15PM +0800, Zhangjian (Bamvor) wrote: > Fix the title. Hi, Could you re-send your patch, as previous version has wrong subject, and this - commented body. Or, I can just meld your change to patch #4. Yury. > > 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/