Received: by 10.223.185.116 with SMTP id b49csp3609670wrg; Mon, 19 Feb 2018 03:03:28 -0800 (PST) X-Google-Smtp-Source: AH8x224ekRtZUI26TP3KfWeAX5qMER9jIEFiYfKBra+Nf4cf5h/7HD5J2I8L+UEY+GlM7j7lNQfY X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr13928278plb.342.1519038208441; Mon, 19 Feb 2018 03:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519038208; cv=none; d=google.com; s=arc-20160816; b=F6pHs9l+tVevyfr1TaKFQe/XvcDeX+tCqmK+IRAP6FWb25kWq6DA1VbhRiLWqCHanG 2/fAC3z59k6Df/eLIUzxjVVxJbKRizSVkwdqsZNtpfkJ+80IqJGYFAAtuWxGQmPrO5tG H8L57ufoLx1GjZZcQlNVsiIv7K9AwLfk3Dh556cK50sCXmFu60zC8fyKrKU0PT8EikqJ gXEbcWb8Swrv0HxgRVvjoXLFHnGkkhR6XOHyR680ZDQSgcH8l2Vu8VvsdeNCSSKh0+z7 LTh5vZdiSYKs9egCFa+tvsb4dgG9kuw1NwsJM+hqMX3vXlBmgUeQombuVwzJnh1hn9vC mxwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ANXlBzYz5+JbKP2NvtHK1WVSliX8GTVGOCHTHWJhEaA=; b=NR2Y0LpRjc7saNDTbx3QVizqpGBRQqD2BVXIB8z2rbXmrznvGdzXEE26ib36jvgnYM +9w+I3Fn6Gl8ndc12/R1hSJwkvhAK1ybq3/ztPiEwzrcSAWfppY5UxIYkSUqX5SenuWh z9Hs9WzkN8jBpfNyyhCYmKn3OFy2U4/p7pl8iKpyFL5EiaZJuSJJ3lG31bsOeFen2UWI Wsi9x09hzxEbRsexLgvnP1iEZhgZTDIwjFG7hrjnHOvFqqffLzAACaCs6FFDTjHfl409 DypEAuLe2I0/kvM6s0x2Xc86hqqbRP9HB7UtW/WHac+HT6ax1Ox4rqAiWG0cE84tOry+ UTZg== 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 i90-v6si7389212pli.157.2018.02.19.03.03.12; Mon, 19 Feb 2018 03:03:28 -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 S1752548AbeBSLCc (ORCPT + 99 others); Mon, 19 Feb 2018 06:02:32 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57398 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752486AbeBSLCb (ORCPT ); Mon, 19 Feb 2018 06:02:31 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C470C1435; Mon, 19 Feb 2018 03:02:30 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9217D3F41F; Mon, 19 Feb 2018 03:02:30 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 500FA1AE2E3B; Mon, 19 Feb 2018 11:02:39 +0000 (GMT) Date: Mon, 19 Feb 2018 11:02:39 +0000 From: Will Deacon To: John Garry Cc: Bhupesh Sharma , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: Re: [PATCH] arm64: Fix compilation error while accessing MPIDR_HWID_BITMASK from .S files Message-ID: <20180219110238.GA30394@arm.com> References: <1519022394-11326-1-git-send-email-bhsharma@redhat.com> <36bd758c-dd49-edef-cc1a-20f5b43f5011@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36bd758c-dd49-edef-cc1a-20f5b43f5011@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Cheers, Will