Received: by 10.223.185.116 with SMTP id b49csp3619681wrg; Mon, 19 Feb 2018 03:13:51 -0800 (PST) X-Google-Smtp-Source: AH8x225RcvdRHsci5ruWmeim+McmnWRA6AWqYKSotoKnSP1bqsIBBS9tz3vKwFXxBydlcD7C2Wxo X-Received: by 10.98.64.146 with SMTP id f18mr3115205pfd.30.1519038831344; Mon, 19 Feb 2018 03:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519038831; cv=none; d=google.com; s=arc-20160816; b=sbZGAfTcGQqdUt6zd+UM5lPdxrF6W6ZC1yXYmDLqiyS5GsVdZ+P1MK5iZbsmmrCCug DnwsVaX6aIFHiPYWvDvo8Xc7o6z7T9tK4t5ksReqg+9PQKLW4o7DZs9MlN8n+VsPDHsq fbzdryPYEY3ia0D5RWxPam08OnYtOOk61GhEvkH+tQj5P60ID6ccjptBoUEZ2i/484gL C0OSrirZpU2t3+qI0+pVop2ZwsGKVwYBZ0opKgILZhWCI8qjyICRiwnK0hpFeZxS10rh NHt6MMLttI+BFEnzbtM2XMEP9u9laYs3ddKgSE0BSG1EuqRlSuqyk1PGIbUBs04pbrcq LzgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=xh8tCFoK6Mir/+LVDh+9t4SCNGW7BCLAr1Fm+/klrlw=; b=xuF5KD9DgXB4s0ORhyJQHRDsY8hU+746nXf7wZZQAYSmrCp63GfvWhJN5jWvmEGvqo zahyLhV3qRrqHrp7KEyZVGlcc5/iWshP7SYMTlUs4tw58lpcPJRTJQYB97fTIOtVx0xh 9qAfo5XXiBjp4voyomi9hh/uPItr4EHl66c9zLXAYybIuQLeZS2kMUoYYYUYo380ei/D BBuaezt1qZSxNHp+Mj/ZLU9Uf/TNYHApmZwwMb1FHbJKNHi0yfS27c+I8z4NbT18pdLv R4U6mBXxw4B0sLHlAckb48eUqadqmSnN/waKRJwihNNHAlR6dnNBbL64BZV6ejajviC9 senQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m62si10438666pga.507.2018.02.19.03.13.36; Mon, 19 Feb 2018 03:13:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbeBSLM5 (ORCPT + 99 others); Mon, 19 Feb 2018 06:12:57 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:56709 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752486AbeBSLM4 (ORCPT ); Mon, 19 Feb 2018 06:12:56 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BAAA7A1F88C02; Mon, 19 Feb 2018 19:12:42 +0800 (CST) Received: from [127.0.0.1] (10.202.227.238) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Mon, 19 Feb 2018 19:12:38 +0800 Subject: Re: [PATCH] arm64: Fix compilation error while accessing MPIDR_HWID_BITMASK from .S files To: Will Deacon References: <1519022394-11326-1-git-send-email-bhsharma@redhat.com> <36bd758c-dd49-edef-cc1a-20f5b43f5011@huawei.com> <20180219110238.GA30394@arm.com> CC: Bhupesh Sharma , , , From: John Garry Message-ID: Date: Mon, 19 Feb 2018 11:12:32 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20180219110238.GA30394@arm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2018 11:02, Will Deacon wrote: > Hi John, > > On Mon, Feb 19, 2018 at 10:19:35AM +0000, John Garry wrote: >> On 19/02/2018 06:39, Bhupesh Sharma wrote: >>> Since commit e1a50de37860b3a93a9d643b09638db5aff47650 (arm64: cputype: >>> Silence Sparse warnings), compilation of arm64 architecture is broken >>> with the following error messages: >>> >>> AR arch/arm64/kernel/built-in.o >>> arch/arm64/kernel/head.S: Assembler messages: >>> arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' >>> arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' >>> arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' >>> arch/arm64/kernel/head.S:677: Error: junk at end of line, first >>> unrecognized character is `L' >>> arch/arm64/kernel/head.S:677: Error: unexpected characters following >>> instruction at operand 2 -- `movz x1,:abs_g1_s:0xff00ffffffUL' >>> arch/arm64/kernel/head.S:677: Error: unexpected characters following >>> instruction at operand 2 -- `movk x1,:abs_g0_nc:0xff00ffffffUL' >>> >>> This patch fixes the same by using the UL() macro correctly for >>> assigning the MPIDR_HWID_BITMASK macro value. >>> >>> Signed-off-by: Bhupesh Sharma >>> --- >>> arch/arm64/include/asm/cputype.h | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h >>> index eda8c5f629fc..350c76a1d15b 100644 >>> --- a/arch/arm64/include/asm/cputype.h >>> +++ b/arch/arm64/include/asm/cputype.h >>> @@ -20,7 +20,7 @@ >>> >>> #define MPIDR_UP_BITMASK (0x1 << 30) >>> #define MPIDR_MT_BITMASK (0x1 << 24) >>> -#define MPIDR_HWID_BITMASK 0xff00ffffffUL >>> +#define MPIDR_HWID_BITMASK UL(0xff00ffffff) >> >> Works for me. >> >> FYI, I am using (old) gcc-linaro-4.8-2015.06-x86_64_aarch64. > > Just to confirm: are you saying that this patch fixes the build for you, > or that mainline builds for you and the patch is not needed? > Ah, what I said was ambigious. I am saying that linux-next (20180219) is broken for me for the same reason and this patch fixes it. I didn't spot the kernelci message Arnd mentioned, so I just wanted to mention the toolchain I used. Cheers, John > Cheers, > > Will > > . >