Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1358827pxb; Wed, 30 Mar 2022 01:19:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbWTU90p/gSg7sj21IRGKhBquaatyG4DCpqWAViHFgE0tyOF97Rp57gJAr1hhW/5I3V4UX X-Received: by 2002:a17:907:6e20:b0:6e1:4979:bcf3 with SMTP id sd32-20020a1709076e2000b006e14979bcf3mr5688204ejc.69.1648628352716; Wed, 30 Mar 2022 01:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648628352; cv=none; d=google.com; s=arc-20160816; b=BhTGIdprYtewpCBF8Y+cgmr0OLh1oaCR6b7/gdU99IxSSaHKZ48h56WwHjcSoMo4lG s2M05Q5Ural+Ad1DU6r91HYFbBn3iDLBN55DzFWQ0sdQ45lVzD8knh7HEHHkk9FKzK+h gkHuXbPgjkC4YMdOHLsID8+BHf0qThQUj7SPFy8Wb8B7puobR0g8tfyn1rcUa9ih34Ll hQ1B/+WGT7r3EfJokhoSy2SP3N2V3TGdXXqXD/S7472tXS5M3CJjON3d2SR4rmn9iCOh PE2+Ck/GaV3vheczz8hOw0fJDuA9mVcIm+8RRveVVSBqyv0anS6MboY0vD2j8zUbT4li LtWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=28e+CZNGK/B7nhWInnyzwRtMXHzsXm963QVVrUuxq6Q=; b=G1k+Eu94JlMANFneJEgIAMBUCHaf2KS64VQ9eKrtGndcpOJovho1v/PRt2Mxb+7il1 pj/e69304l3ZqGrSNlpjCuSvSW20rt3f6bH6x5Uh+tBex+d2fiYj+kL2Z31giooO7gCM EYufMCUzMo28Ywh4ApjbOuSLWC5p9isrThucYhNYa8jZyG4BEbPZ4KXIdmNbs4CEQqS7 5HXXiF2jj2CFI3tkm0JcewuihqF8wfxdFRXg6u9zYgGsxCekHfKSFX+0Gh9fV7M1tk+C PB1Encn4uciJV610CTCUt8XfqQ51wL5mfAP6hfKA9VPUsPpK4qTP5fpzTqlhtbgDFmyK 4+QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170906141000b006df76385beasi19469796ejc.138.2022.03.30.01.18.46; Wed, 30 Mar 2022 01:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239957AbiC2QyH convert rfc822-to-8bit (ORCPT + 99 others); Tue, 29 Mar 2022 12:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239954AbiC2QyF (ORCPT ); Tue, 29 Mar 2022 12:54:05 -0400 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 DFE3D6211F for ; Tue, 29 Mar 2022 09:52:21 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZF4r-0007Lb-Sp; Tue, 29 Mar 2022 18:52:17 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nZF4n-003pBv-MD; Tue, 29 Mar 2022 18:52:16 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1nZF4p-000Azy-LY; Tue, 29 Mar 2022 18:52:15 +0200 Message-ID: Subject: Re: [PATCH] drm/imx: make static read-only array channel_offsets const From: Philipp Zabel To: Colin Ian King , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 29 Mar 2022 18:52:15 +0200 In-Reply-To: <20220123223417.6244-1-colin.i.king@gmail.com> References: <20220123223417.6244-1-colin.i.king@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On So, 2022-01-23 at 22:34 +0000, Colin Ian King wrote: > The static array channel_offsets is read-only so it make sense to > make > it const. > > Signed-off-by: Colin Ian King > --- >  drivers/gpu/ipu-v3/ipu-dc.c | 5 +++-- >  1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/ipu-v3/ipu-dc.c b/drivers/gpu/ipu-v3/ipu- > dc.c > index ca96b235491a..b038a6d7307b 100644 > --- a/drivers/gpu/ipu-v3/ipu-dc.c > +++ b/drivers/gpu/ipu-v3/ipu-dc.c > @@ -344,8 +344,9 @@ int ipu_dc_init(struct ipu_soc *ipu, struct > device *dev, >                 unsigned long base, unsigned long template_base) >  { >         struct ipu_dc_priv *priv; > -       static int channel_offsets[] = { 0, 0x1c, 0x38, 0x54, 0x58, > 0x5c, > -               0x78, 0, 0x94, 0xb4}; > +       static const int channel_offsets[] = { > +               0, 0x1c, 0x38, 0x54, 0x58, 0x5c, 0x78, 0, 0x94, 0xb4 > +       }; >         int i; >   >         priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); Thank you, applied to imx-drm/next. regards Philipp