Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1805549pxb; Sat, 23 Jan 2021 06:14:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvLd9VkjU5bPwFUWYk9QLap3W+ANDRKlOJ3/G0e4No/Blrf3g69vZH2uzMVdMvzzbaHp0N X-Received: by 2002:a17:906:aad1:: with SMTP id kt17mr411826ejb.116.1611411287026; Sat, 23 Jan 2021 06:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611411287; cv=none; d=google.com; s=arc-20160816; b=kMd1QTapi++0QjNQiykedIsAD26FeE9JzPrHfYNt8tlacDTLGqS/1Z9gR2+1TbOqrg Ox5UWMS2GWOba87YarvOJ+VrmY3d/uFg1aHy+1me0pNfD2kSGWbifYqAatfLU7JTs4gQ iPtFSIcc2SGf8LTDrZwNYkYvrNj2tVSPqLQTMS6Wlyjv4pR04O1LKgkGrl35okTas4Y2 6s0pd8ZsJVe6Vb8kfvpOAK13zG+T/MWMZnT2o6F108Cot0dda5LNCGSz24G72Da/ldLL ypgPMXrppjMWFY3QBUO8M76wlsW29Qg2huSKW4H36P6YneFmEm6Cs8GavrBQHEpeDiNw pEhw== 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=/IPBoE39nC4u8WI1g/Zi18TfD4Xm+m44LJhEtNBYup4=; b=hDUuuMhVpktxZv2lWaImQpZaMhQs2LQSNh3Ymv/oSSG0Hb9/O1S55I6imjdS8LfRQ2 89q7v5NZk3CMPk9G0nRH5RN/0kuaHcF73DlRLGOMtvSughMCjq5jM4Rp2DErD8wfioiB QhxuahxeM80qQRp+LrdGleY3wYM8Ts6fr+b6B5uDz86YMgaOV7ii9CnkIsA/1Wcl/8Fw jhtIWJtYPY9FZLhMVRPcvjQhZp8THZfrIWrfFjVgERbr1uqy3vPDTiHQ7vV974G2Zb3E BJWV7JbK6ALGWl8D4QsMRbZDNanKIxj0cEK1N+3Pl1RTS6I7qqTshGUbR5O1AOrx/Yx6 /UBA== 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 n13si4771804eds.172.2021.01.23.06.14.23; Sat, 23 Jan 2021 06:14:47 -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 S1726061AbhAWONQ (ORCPT + 99 others); Sat, 23 Jan 2021 09:13:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:34028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbhAWONP (ORCPT ); Sat, 23 Jan 2021 09:13:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E9F7822B51; Sat, 23 Jan 2021 14:12:31 +0000 (UTC) Date: Sat, 23 Jan 2021 14:12:29 +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 15/21] arm64: Add an aliasing facility for the idreg override Message-ID: References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-16-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210118094533.2874082-16-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 09:45:27AM +0000, Marc Zyngier wrote: > diff --git a/arch/arm64/kernel/idreg-override.c b/arch/arm64/kernel/idreg-override.c > index 75d9845f489b..16bc8b3b93ae 100644 > --- a/arch/arm64/kernel/idreg-override.c > +++ b/arch/arm64/kernel/idreg-override.c > @@ -37,6 +37,12 @@ static const struct reg_desc * const regs[] __initdata = { > &mmfr1, > }; > > +static const struct { > + const char * const alias; > + const char * const feature; > +} aliases[] __initdata = { > +}; As before, do we need the second 'const' for alias and feature? The aliases array is already a const. Otherwise, Reviewed-by: Catalin Marinas