Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FF06C433EF for ; Tue, 14 Dec 2021 09:33:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232489AbhLNJdm (ORCPT ); Tue, 14 Dec 2021 04:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232504AbhLNJdX (ORCPT ); Tue, 14 Dec 2021 04:33:23 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D5F9C061370 for ; Tue, 14 Dec 2021 01:33:23 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mx4BQ-0008JT-1c; Tue, 14 Dec 2021 10:33:16 +0100 Message-ID: <2ce149d33f2e22b86d1bb1c6e114835a5e00b5d5.camel@pengutronix.de> Subject: Re: [PATCH] irqchip/irq-imx-gpcv2: mark imx_gpcv2_instance with __ro_after_init From: Lucas Stach To: "Peng Fan (OSS)" , tglx@linutronix.de, maz@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: Peng Fan , linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 14 Dec 2021 10:33:14 +0100 In-Reply-To: <20211214084711.1357325-1-peng.fan@oss.nxp.com> References: <20211214084711.1357325-1-peng.fan@oss.nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, dem 14.12.2021 um 16:47 +0800 schrieb Peng Fan (OSS): > From: Peng Fan > > imx_gpcv2_instance will not be updated after init, so mark it with > __ro_after_init. > > Signed-off-by: Peng Fan Reviewed-by: Lucas Stach > --- > drivers/irqchip/irq-imx-gpcv2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c > index 5b5a365dbd5e..b9c22f764b4d 100644 > --- a/drivers/irqchip/irq-imx-gpcv2.c > +++ b/drivers/irqchip/irq-imx-gpcv2.c > @@ -26,7 +26,7 @@ struct gpcv2_irqchip_data { > u32 cpu2wakeup; > }; > > -static struct gpcv2_irqchip_data *imx_gpcv2_instance; > +static struct gpcv2_irqchip_data *imx_gpcv2_instance __ro_after_init; > > static void __iomem *gpcv2_idx_to_reg(struct gpcv2_irqchip_data *cd, int i) > {