Received: by 10.223.185.116 with SMTP id b49csp3632307wrg; Mon, 19 Feb 2018 03:27:44 -0800 (PST) X-Google-Smtp-Source: AH8x227dzcYjjAWUuSgMu8YgZvinSyhgfEA5aEp3oCGKhbFplR2YPUIPO5kJfF6G21u1V3m15T9t X-Received: by 2002:a17:902:5322:: with SMTP id b31-v6mr2593362pli.61.1519039664582; Mon, 19 Feb 2018 03:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519039664; cv=none; d=google.com; s=arc-20160816; b=nMw908BXh5BL3z2c/DeXwbbZGXNwqfe1QxaNggqvd0h1fxpbll5vq14ifleqahvJ2Z b8kD7Glm0Wx9w4zX391ZhdqtCYaeZwhkD32STe7KpLKgK6emvtFDTq+P1DqUZUgO8dqS cik3uZdMumVxmhcyMVGzM86xv24ewFM3WZU8/jWSuj2VdKyLn+EYFsUKfNpm5MhV7ns/ /SlDeWQ8hnk5cPI6YckilDnhityi4D7KYzU7UR7I77nhGBj0Iz0J4Ocpx3XvIhrS7TUk lHOdofUuF1+fNRKJdSLt0Xcze6xmusPCCKKjItQUzVGrw+bNpJ4sur7IYjOHepXsuP+o VXag== 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:date:from:dkim-signature:arc-authentication-results; bh=LkDycOnUBQDGkHMmEFxFl5xmB140EdwDgZZCA2rXK3w=; b=XdoTN6trw3MnwBPGiIGs653CpVleW7ucLNOpYPE6k3/diA6ORwJYeAinS/tzU+D04x rcvf804sSQKWTpQn2KyAjQRusoZHRe5oKT8kug/m7NQxjmHtZMLnw7qf2oeCFApDfSis ln8sRuGzW+vQDmJJZoy11nb6XqZyNJnY9FNCOeWhAtztvj/qz2BakzYzHjBUX35pyRcP puq60sI+v6qD8NFBRu4ZEn3Cud6x27zrj8pzfm7zK2J+QSBrh5Bo0d1qp3RWKQxOHtcG AKn6KDuKJmhmvInP/V0Q020mcgFTYCVmK15hkBghVtagFX6SdSbdx60H/Y6pBV+f1oim cuwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lHCRebEH; 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 e89-v6si656531plb.461.2018.02.19.03.27.30; Mon, 19 Feb 2018 03:27:44 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lHCRebEH; 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 S1752623AbeBSL0u (ORCPT + 99 others); Mon, 19 Feb 2018 06:26:50 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:42651 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752519AbeBSL0t (ORCPT ); Mon, 19 Feb 2018 06:26:49 -0500 Received: by mail-wr0-f196.google.com with SMTP id k9so9242089wre.9 for ; Mon, 19 Feb 2018 03:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LkDycOnUBQDGkHMmEFxFl5xmB140EdwDgZZCA2rXK3w=; b=lHCRebEHZt70R5QcQfLtbWnYxlsIXLcLRdQAzpODkRbkE6gPLqQLdT6SXp2AddCGqX F/jxaVa/k4ZnSDvq7XuSTX/AsiAKxHqddLTCQLcpSkKYcV06wpHacT+BakWsWab2/+I1 bYqEIwXHsCqMvnq5UIFxyLbUSXLj17kei7EKk1v+yAkSJDhNQsyDX2H7C9IPQDtFZtTh YwYbHp1MX6n8XV0/YIS/Cfd9tK0AP9NAOMr4Lm8ntQaM7kyWcPcLcHuaB7SaQq1lGWB0 1QG+dlHM9F6HRjeHDALeE9kZpSOLPA6681O86+NkcMbLT3dDoRlXs9FiVCxakoZjxdJr Jhsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=LkDycOnUBQDGkHMmEFxFl5xmB140EdwDgZZCA2rXK3w=; b=LIlh4mW449aah5h7IH8p1j41cEiEmpgqR1iQNMhjdBLYFqyr6h+ZHZvSiXxgY6jAjt wsGgH7DODOIXwckP4gahce7LMHZNCAnXicdHWu8h/cWYqrr3UTtQlL3KSko2Nmj5cSmC zEgQ1C6QKdBuLgQ3HRCZ3+ztd2YIuHwSydG78MEzrEOE3HNvAlKJpkuOYt/ctcFeIJC3 AH5gz3pTj1Hax5zwDGU42PLEX/xmwcomiAphf2+qXBmt2INpg7UrC7MufiNFFbVd+fy4 /p/gxXUpjJOGiwukKAcanlJenWludws0mVRDeUoa27mkeD//ZCZWi4XxMY8hIRLypR61 UO6A== X-Gm-Message-State: APf1xPCOpPi1/EVDwbYqXXMaNohb6E7WTrGr8qABwYrmuiyAYsD3bnOK MEPxn/QWcZAAN+mfQ9BoRCTHZm8j X-Received: by 10.223.165.145 with SMTP id g17mr796839wrc.169.1519039608049; Mon, 19 Feb 2018 03:26:48 -0800 (PST) Received: from wintermute (HSI-KBW-46-223-65-99.hsi.kabel-badenwuerttemberg.de. [46.223.65.99]) by smtp.gmail.com with ESMTPSA id 5sm23297578wre.35.2018.02.19.03.26.46 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Feb 2018 03:26:47 -0800 (PST) From: Jan Glauber X-Google-Original-From: Jan Glauber Date: Mon, 19 Feb 2018 12:26:45 +0100 To: Will Deacon Cc: John Garry , Bhupesh Sharma , bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: Fix compilation error while accessing MPIDR_HWID_BITMASK from .S files Message-ID: <20180219111747.GA25218@wintermute> 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: <20180219110238.GA30394@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, I just hit the same issue with 4.16-rc2. The patch makes it compilable again. --Jan On Mon, Feb 19, 2018 at 11:02:39AM +0000, 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? > > Cheers, > > Will > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel