Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1776240pxb; Sat, 23 Jan 2021 05:26:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfcSbr9kMY0khbruggqRhv6vQWbvQMxi3ZDg0iBdGGEAO4rMjSDLnPFqfdPj8xQ+BUGa93 X-Received: by 2002:a05:6402:784:: with SMTP id d4mr217428edy.20.1611408369271; Sat, 23 Jan 2021 05:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611408369; cv=none; d=google.com; s=arc-20160816; b=uoEHaatOomUc60KlXh2s9xZlajsWGagfTnxajd2wJX6jy8kAKQ4MoDKCl8M/AINW0n L3T47A3bspWuxzYct7EfumdaNpiUs46PBGwohHhAwmE5aOsqX8sn0dBdY9HmDlsR4hb/ UUCOCiNMqtIzTzxZAd0VFcjoRGv0iQaqloouqRMw+92d7WiOsei0QPlt6LhMyR83inUl UXZyQDxzectzJFfSDp1lB+uBAS+qmuhSxV2NqH17mBR3poXGqgJ360I+2098Xn3HDpSD 49mM9BB618TI6olN0hkkmAzF8gDuKXkUUkj8EWtN1XOmdAsqwj5T69v/3b+BWEqSd2L6 5JmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9U2T+p/5pQjFOBl1L3NS1oopm5AxUzWbAN/mP3tagRc=; b=TrAFm0y56gEw4+7tuYvj85ZjgEIbCDBxo6HSh7fHj8QrFyG8ekwLNlP51dXrbDoQHt AcO5bXTeROflMz1uumhSK+rlfphQl97hnMnsp5mEbPjYCMcvvX9UKQ6wZdB6ei8xz/N9 TPDSeptgTyoO7x3kiEuqhOhgN32ZnVueJSEINNU7Som+w59N4ukPJbOemoVWUnVoo0lk EDNf+H2JhoI8aqYK42eJa9iwxUTQea2ngPxdfSSfc3ozTnyTr79ctVVzNJJ4bonsb4wq aGs/3c3Djvk2fEFHNISavpkVwZ5LLIOlT5V9f0Dec/pPe/jg8rLRueqIeub740BDpcU3 9IwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg13si4410148ejc.126.2021.01.23.05.25.43; Sat, 23 Jan 2021 05:26:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725765AbhAWNYU (ORCPT + 99 others); Sat, 23 Jan 2021 08:24:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:52170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725274AbhAWNYT (ORCPT ); Sat, 23 Jan 2021 08:24:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AB7E23159; Sat, 23 Jan 2021 13:23:35 +0000 (UTC) Date: Sat, 23 Jan 2021 13:23:33 +0000 From: Catalin Marinas To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Will Deacon , Mark Rutland , David Brazdil , Alexandru Elisei , Ard Biesheuvel , Jing Zhang , Ajay Patil , Prasad Sodagudi , Srinivas Ramana , James Morse , Julien Thierry , Suzuki K Poulose , kernel-team@android.com Subject: Re: [PATCH v4 12/21] arm64: cpufeature: Add an early command-line cpufeature override facility Message-ID: References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-13-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210118094533.2874082-13-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 09:45:24AM +0000, Marc Zyngier wrote: > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S > index d74e5f84042e..b3c4dd04f74b 100644 > --- a/arch/arm64/kernel/head.S > +++ b/arch/arm64/kernel/head.S > @@ -435,6 +435,7 @@ SYM_FUNC_START_LOCAL(__primary_switched) > > mov x0, x21 // pass FDT address in x0 > bl early_fdt_map // Try mapping the FDT early > + bl init_shadow_regs > bl switch_to_vhe > #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) > bl kasan_early_init [...] > +void __init init_shadow_regs(void) Do we need an asmlinkage here? And a declaration somewhere to silence sparse (we did this for entry-common.c function even if the .S files don't consume the prototypes). -- Catalin