Received: by 10.223.185.116 with SMTP id b49csp3412572wrg; Sun, 18 Feb 2018 22:41:04 -0800 (PST) X-Google-Smtp-Source: AH8x226uqyUf2Q983DsKZf6WOE+caWKLfbZ0rseFuJoTsc0FK+fTEcR5RGkJ0AReRa65miwg15FY X-Received: by 2002:a17:902:aa98:: with SMTP id d24-v6mr3448842plr.369.1519022464435; Sun, 18 Feb 2018 22:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519022464; cv=none; d=google.com; s=arc-20160816; b=YuNqmAr6r6UUC1ekvOW9Sqhr6UkEIjeA9HHcc8h5hIaA7W5kjcBMfB/HkUBhTg/ku2 qGUGwI6x5jurMxXO0MIvtsVQMlZLIZA0FwA/X7PaviJ3TRX80sRRsUKyPKOnfoMH8M5K f9WD1xgFv9+8fzaWXlZgqxUyskWYKgY985LXf+keqJ52q7Q9+rfDKZjLtM86mnIHm6ar seSXcOKBR23HIxqKO++TsYa43pKD6mdwW3yOFrC1wC9VxbMQ5GrqERC9hiVayfxtlHTq azuZwpxCPWAyGuJui9KEgHdGSjmmDo/6DZZ+U697wNnfrOLSRGcZL8YHgMgdjEatbGI0 iV3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QRLzp+WZwAxYQbWmMyAB5ws7OjNkdzoa0AzQmn5l+I0=; b=RP4fxQQcjkNKejNnyA/UFMcTLR8DWLWAM/tcEdoj1jy/1opA3yu8C48azsufWDmoPA KSyGeV36sDpSBZPBujJg6AlQ12UzC0/Ls7jbSWu5A5r5wXY19pmGTWOQTuKVjWI0DJKX ThpJh+Z6UriKF/Ncn0u4qEiczas19O7ZQ8wnI6K19LWXJ+BAdCky2fAdXrpUBprUppQT yaJzbbM6ZQSy7gr2685Cn06mWX6wIl5v0qClkSWnmBvJNYb/nzsuADDhSE9l6HWteg0x +PvNS2RLX/iuCu7CfH2A2+sgcIz28x8WE/S8fvsLM3d847aFJRwB3fRqZJlwvwk3JW6G rVoA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9-v6si5543970plt.544.2018.02.18.22.40.49; Sun, 18 Feb 2018 22:41:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751406AbeBSGkO (ORCPT + 99 others); Mon, 19 Feb 2018 01:40:14 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:42735 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbeBSGkN (ORCPT ); Mon, 19 Feb 2018 01:40:13 -0500 Received: by mail-io0-f194.google.com with SMTP id u84so10216346iod.9 for ; Sun, 18 Feb 2018 22:40:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QRLzp+WZwAxYQbWmMyAB5ws7OjNkdzoa0AzQmn5l+I0=; b=AOXrIcwldxtxlHuubsnfmnQ++gSeIaGEKHEvPe8g/NAudMM4bUTwtNU6m26t6InZzM 3AFou18mu8M4RolbqsTakEozec2Yx+nuVsB+3nlVaYjTC7IFLCGqALZVrifSmJxVjOYG kD2BeVTzlURVaNucOmHMsHnaIYTy/D2a6nG7aZotTY499IANtLko7TwFi8zIbSRM5VJ0 75DEOh8ptHRTepsNRVxgqmz5ocqMRTW7GOwGfbGSYSsbFKuwQMR3QcjouxUrDLBVgEGg 4hKLdOe2cjUuSYEMU3VueKA9kfMKJyQEfwJJZDK+NRFxlTQp6Cze+fmZ1aCzM+YOJu7Y sOMA== X-Gm-Message-State: APf1xPASUsuxMaQjN41ix1ZO/se8+fC/rOPnAhfzpoJ+jOaOjMnPFiXz CvzeZy7Lf+Bb8V1y3qHZNaOzyA== X-Received: by 10.107.184.10 with SMTP id i10mr18939850iof.283.1519022412775; Sun, 18 Feb 2018 22:40:12 -0800 (PST) Received: from localhost ([182.69.224.220]) by smtp.gmail.com with ESMTPSA id e123sm6461065ioe.65.2018.02.18.22.40.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 22:40:11 -0800 (PST) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: bhsharma@redhat.com, bhupesh.linux@gmail.com Subject: [PATCH] arm64: Fix compilation error while accessing MPIDR_HWID_BITMASK from .S files Date: Mon, 19 Feb 2018 12:09:54 +0530 Message-Id: <1519022394-11326-1-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) #define MPIDR_LEVEL_BITS_SHIFT 3 #define MPIDR_LEVEL_BITS (1 << MPIDR_LEVEL_BITS_SHIFT) -- 2.7.4