Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5986986yba; Wed, 1 May 2019 04:02:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPg2ZZAthHkSniRInsliK+7Y3AcEcIdYhOs5groS5U78g5Pt9oTHu6yTJmTbLm7xjejksd X-Received: by 2002:aa7:928b:: with SMTP id j11mr21364042pfa.200.1556708545532; Wed, 01 May 2019 04:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556708545; cv=none; d=google.com; s=arc-20160816; b=wayQSCPMsiPm8jIgqy+OTJlJlpMFDlYqjJuG5sLHR6t2eqabIh3/qO4GuY60d9f4nt Ef4a2jyjpDzGkpvAC6eaEbHZQwNfF6hG5MK35Fx0hfD8xAdblLrROvS2kfp2rBm3XAeS XqkKnbIbewvJY8PPjBlb2ssIhwUiPSRG5ieFalEM0wrprtlJrTnfI8CaUbIYk1G6C5ju QuyHNCj4EYL/pDDPmELqHzWuv6qRBlWO8QT0u+jryouXCq11IQQRQLOMAOSOiPpVlQK+ MpAHZjT+sykcPZHRsAYhdmHI4vjIaSO4GON7Ipcp+rkl94wfxh1XaWHEo/+Z7YOXR9OG AOxw== 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; bh=SN5nZGyWmbHBRRVqwkibzau5/qKJsQF6E2bpUfvdkPY=; b=Grz+eR4tVJQqsD8eak9Oel62oajahcnAKwGSB0F2/8iXIgRfuLXz2mYDVTfvd15qc/ eW8VnM7QUBM6V6N56zNaRepSPbhU21SXKf9/K3KMgXorf2TewnidZyzErXoIrqu0BOyA FlibqxC3otI62fcz5td6Ur0k9hyTlQzyi6stsFwDJjPRsP3qMuuQDd28twpRU0eeoL38 a0b+ov1ImwSWCBEyq1VPMx+uGqz0JMsFiqXpiwyluXkL67pN13UdkrWw4LMgwDmGYrOn kF6cul/VLZ+cxSd2eK8D/xh3KGkNykD0wzRMBKlvfJoUNmjJGzcfvxgFDgeiP6S8yzVq hapw== 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 e7si31076541pgi.288.2019.05.01.04.02.08; Wed, 01 May 2019 04:02:25 -0700 (PDT) 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 S1726213AbfEALBT (ORCPT + 99 others); Wed, 1 May 2019 07:01:19 -0400 Received: from foss.arm.com ([217.140.101.70]:58034 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfEALBT (ORCPT ); Wed, 1 May 2019 07:01:19 -0400 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 7534580D; Wed, 1 May 2019 04:01:18 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B9E603F719; Wed, 1 May 2019 04:01:16 -0700 (PDT) Date: Wed, 1 May 2019 12:01:14 +0100 From: Mark Rutland To: Arun KS Cc: Catalin Marinas , Will Deacon , James Morse , Jun Yao , Steve Capper , Vladimir Murzin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: arm64: Fix size of __early_cpu_boot_status Message-ID: <20190501110113.GD11740@lakrids.cambridge.arm.com> References: <1556620535-10060-1-git-send-email-arunks@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556620535-10060-1-git-send-email-arunks@codeaurora.org> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 04:05:04PM +0530, Arun KS wrote: > __early_cpu_boot_status is of type long. Use quad > assembler directive to allocate proper size. > > Signed-off-by: Arun KS > --- > arch/arm64/kernel/head.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S > index eecf792..115f332 100644 > --- a/arch/arm64/kernel/head.S > +++ b/arch/arm64/kernel/head.S > @@ -684,7 +684,7 @@ ENTRY(__boot_cpu_mode) > * with MMU turned off. > */ > ENTRY(__early_cpu_boot_status) > - .long 0 > + .quad 0 This is the last element in .mmuoff.data.write, which is padded to 2K, so luckily we don't clobber anything else (and don't need a backport). For consistency with __boot_cpu_mode, we could instead change the c declaration to int, and fix up the calls to update_early_cpu_boot_status, to use a w register, but either way: Acked-by: Mark Rutland Mark. > > .popsection > > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel