Received: by 10.223.185.116 with SMTP id b49csp3624899wrg; Mon, 19 Feb 2018 03:19:52 -0800 (PST) X-Google-Smtp-Source: AH8x226/EOYvjj1X2LmJA/sNijC4mV06ETiRwNRBu6pVAOBhOiI0/anOW9FGHmCsllY+5Hu9gisA X-Received: by 2002:a17:902:aa88:: with SMTP id d8-v6mr13748128plr.171.1519039192525; Mon, 19 Feb 2018 03:19:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519039192; cv=none; d=google.com; s=arc-20160816; b=jdxUMwpH6yWUubr7K6QLPOkJ1IyWngzRk7iC6G+yCs6ouosNFBAL4efILHl0GjSjTi i3Y7qGd3bBWZqmTnvWOjtnAIqdw31JyolL9DVpw+iGBCJXZahp+6gpTVbZej/b811vKI jkk81poK82xJXGDCBDdJh597i9kx2/oP6KK/VmN8nlKgte34iYmNMkeX+QeDZ586vWBs 8u9XLjBg0l9NGygjJdTzCMtSOPdXd5cV5cu+Q3YN35edD8PjwGmZXjpIfqILxSBjOsua XR+3hMAS+3+zDf50lRBKJFsYQ1I+VCS3sHV+f1UrzaanprGKVNY1v1vdgyUaq/hc9Qcl oftA== 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=Jdm6eWjvQlm/o1hAeqwUQo13Hx4oCo1rh6jtomIhJk8=; b=XILu2FY63H9puo9AHY84VKQGCNFtuNCeL+GUJ6ZG/Wt9vZEEXOBsEJbOxmxfJfl49N utufg7DOFmRN+vfRliJIjvLyKQ+5ViQHiozIHYxLfsy6zMZl9mo7K70CvTWvhTzZz8SF bISgC5bsWD0T3UraUlzfHytg/UFhs8w73AQrFNo0n9JUA7lBEOArSZJelN7mQ9CgTxUC LY3fFll2RujvC1eUISvaJa5ZGdNMqsC4oeCvi0iqXZmlAnUlKyZj9uWs2j3SgBSh6kln o42lFNGMWWGfFOnPktD6akTchVwpPVjYuo72OI01ELiv9tFBYi0DeqAw44cDC1iu9OQF FM4g== 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 g7si9861902pfc.393.2018.02.19.03.19.37; Mon, 19 Feb 2018 03:19:52 -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 S1752561AbeBSLTA (ORCPT + 99 others); Mon, 19 Feb 2018 06:19:00 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57540 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752486AbeBSLS7 (ORCPT ); Mon, 19 Feb 2018 06:18:59 -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 49CDE1435; Mon, 19 Feb 2018 03:18:59 -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 1A7BB3F41F; Mon, 19 Feb 2018 03:18:59 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id F2BB11AE4D02; Mon, 19 Feb 2018 11:19:07 +0000 (GMT) Date: Mon, 19 Feb 2018 11:19:07 +0000 From: Will Deacon To: John Garry , catalin.marinas@arm.com 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: <20180219111907.GB30394@arm.com> References: <1519022394-11326-1-git-send-email-bhsharma@redhat.com> <36bd758c-dd49-edef-cc1a-20f5b43f5011@huawei.com> <20180219110238.GA30394@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Mon, Feb 19, 2018 at 11:12:32AM +0000, John Garry wrote: > 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. Thanks for the clarification; Catalin -- can you pick this up for -rc3 please? Will