Received: by 10.223.185.116 with SMTP id b49csp3575923wrg; Mon, 19 Feb 2018 02:20:52 -0800 (PST) X-Google-Smtp-Source: AH8x226dwzYYQRyAExwp7Lrvw+mSl0Qv8uLCSTIH0DfvuYWfnd9FOz9oZ9bDnzzI8RaiqBjOUXdm X-Received: by 10.98.90.132 with SMTP id o126mr13980059pfb.239.1519035652740; Mon, 19 Feb 2018 02:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519035652; cv=none; d=google.com; s=arc-20160816; b=aIjyoRwpnmbvA0+qSHpe4HEkDL3+hYg2+LVNsHOYDYY09B/AeZ6813kILPPev7hpRZ P0IXEOV05UhNyiiw8JXEQgoBqbkfYcRC5dMP58AQKu2d/JmuTCerZ/QVhbhJdTNo4r2i Ck8pWkrC+Mb9Ly1RKMiMxDgp6ymouCxeYSig8odAcGfpiW053/v77qyPNDgbOxHcGynL 115B9jHA2QjhRy0KfzlQQq+yCwuuL+jnVO5RL+jnvqOEAF7piZm++7v+3ihK1Eu8a/bp 6+jhLxR2sPxDOjNZpZiV9zcV9ww/RiYCaYCyCff8appH/4+DJ0oTp0TpZVrbrlncxCH5 wRiw== 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=yb65fNDCk6PRWs9MfGLgxJG4N+LmpcCjcjGLeeY8LSI=; b=Skh1wTHCdx2ziJnT44odqN6I6u9VQkn9HhDil4FW5E8N3oEbONmd9g/TEAP4cU4etJ /lIPzCPHBRL5538Uvv5hF54M1lLXmsdOiJr4utbVM5ZKezQpaITzzA4aF1MpNtB58tT9 uuQJ2Bo6EJ0ce2r9ZTY98tr4MzwNZ0BZgYa6xV4ebuStW4cmkhUlk8Gflwcgw6pMB3s+ kHzGUoOK4xaJlUc8mifB4YRdX8JgCNAGzzbpDOquW0CK1R18HeVc18uaY8I06ub7YS6B XrTZdnPq3TrrTHLwFtLcsXClVknjgt6qTFsp9KMLWevxySmJZANdR7iFBc3by/sicuR8 /Sfg== 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 z11si1024762pgr.170.2018.02.19.02.20.38; Mon, 19 Feb 2018 02:20: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 S1752533AbeBSKUA (ORCPT + 99 others); Mon, 19 Feb 2018 05:20:00 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:45053 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752507AbeBSKT7 (ORCPT ); Mon, 19 Feb 2018 05:19:59 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6FE544FE09831; Mon, 19 Feb 2018 18:19:45 +0800 (CST) Received: from [127.0.0.1] (10.202.227.238) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Mon, 19 Feb 2018 18:19:41 +0800 Subject: Re: [PATCH] arm64: Fix compilation error while accessing MPIDR_HWID_BITMASK from .S files To: Bhupesh Sharma , , References: <1519022394-11326-1-git-send-email-bhsharma@redhat.com> CC: From: John Garry Message-ID: <36bd758c-dd49-edef-cc1a-20f5b43f5011@huawei.com> Date: Mon, 19 Feb 2018 10:19:35 +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: <1519022394-11326-1-git-send-email-bhsharma@redhat.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 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. Thanks, John > > #define MPIDR_LEVEL_BITS_SHIFT 3 > #define MPIDR_LEVEL_BITS (1 << MPIDR_LEVEL_BITS_SHIFT) >