Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1766755rwb; Sat, 19 Nov 2022 03:13:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ttEyuBZbQCrd/N6ADtSkAtoCU5GadGDqLeBQwh5EhSEjYBEQtWdxWxYgfvZAKjS966QjW X-Received: by 2002:a17:902:dac2:b0:189:7d5:26ea with SMTP id q2-20020a170902dac200b0018907d526eamr3391350plx.145.1668856403507; Sat, 19 Nov 2022 03:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668856403; cv=none; d=google.com; s=arc-20160816; b=X6U2+SiyotxkJaMlX5iDJCF+xYG+rXKk7/PLTjR/yDLwyd0F7GDA7tsCW1vLtjG7L5 FiJ4bf4ICc6zpm32h6cRoPZebYlVl3fxxhtP1S/g72BmS1rr5NiJify+ej8cjat4m46z NaCvE41liTpTePynp3hl6kEtDkV/AXzyR7hZLNJ9QDeYT3u6oaep6BBLs8t2OzfwO7QA zhL7V80f44fBYkAMYnlEPEXtBat401OVLbCgmSDie5u370bfoeBoYtnn2yQrYzzvExMz 7bXJ/zLpXk8tFGi2J4wMjmG6T0EseC3HqIrTgdyJf1+twZPUh+QtchXPUz71jP1c40Rk lwOw== 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:feedback-id :dkim-signature:dkim-signature; bh=CIwr77lYrjEiDjN+lfmJBa8qTpOY2sqozIVlYRnXdhU=; b=rczwcX7WAD1Pi2J5BRzNeuqysllpenZxsttyqHwR18K1GyR/KU8znOg1cAcDsDaHfW Bvp/iRNAExJaE2nsFtZRo4HyaXqBBvCGC9hFnBZyR5S6R8UvbnkXjhN/9T2P3VkAGvra Y2AkxgArXW6/3maChKGahNLhxaxRf4bPYXCeVTfLR4WiU1GxbO8YKgwP6t/pliEQV3SL 1PM42g7i39Q/dNXZKJUWHzsqewoe1S8YTxAqxWPl5ynSI8bc3B8RqMBwhko97r9T+mAa r6LF3XyI8LuRTv+jMRMurkHek+dheNk4ZD5VqcOSBTNkG/sdIHs25ygAZK4zBxCxj0Jg jX0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.com header.s=fm1 header.b="Hmk/n8p3"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lNwUjvTW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a1709027e0800b001865eac3459si5433764plm.460.2022.11.19.03.13.11; Sat, 19 Nov 2022 03:13:23 -0800 (PST) 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; dkim=pass header.i=@fastmail.com header.s=fm1 header.b="Hmk/n8p3"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lNwUjvTW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbiKSKzW (ORCPT + 91 others); Sat, 19 Nov 2022 05:55:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiKSKzV (ORCPT ); Sat, 19 Nov 2022 05:55:21 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A934920B2; Sat, 19 Nov 2022 02:55:20 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1ED415C0112; Sat, 19 Nov 2022 05:55:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 19 Nov 2022 05:55:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1668855318; x=1668941718; bh=CIwr77lYrj EiDjN+lfmJBa8qTpOY2sqozIVlYRnXdhU=; b=Hmk/n8p3OvZWDV2jFpZZq2IZbG uVhTVcq1s+BL0vWBjOBJ9SoJ+74Xq2YeZAR4wGmsYj+UOSnFisapOunmqqYUIH7G k7EWWJDtLZWT66MaGKcTeVRvKZXBGc+s/ORIyn60H2ksXqBIfT81yHud0KtC7LcI tJzerUVlEoNx76CKuOvehncGS7gPDuO/L5ozWtJjNtnfi6MpSGFxOpKhYV2RqKVX mKaw6qipy7aCNSpEkPb6l0DNpye7QTcmA3mSoTS8yugKAGpLCqQI/RSDntOy/sMM x95HxmIi/D7b6MTtPloNvBh5NpxJWi2GiDJwxq36/9o+Jsyg9jlfBgwpNmRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1668855318; x=1668941718; bh=CIwr77lYrjEiDjN+lfmJBa8qTpOY 2sqozIVlYRnXdhU=; b=lNwUjvTWpmRNUVzK2Y2i31Wapj29V0azTxZPkj3TH3Xj IeNLDBlOhvo6AHPaLoWMuzMvo0qPuAurb2ieg0AdXbTIfGnOMKZDthY6utk12jEO Oz4m+gkvLTQ3OY+64JJUK0ZD6TJEAhauSK8yYb3JwI2iopARxKQ8RhwOB96rwUhR PUueNyRQmva5OmAIFnPqUVEWeIRV4IObYqBbw3bNs7wPtngTi5Kr+3M8UxSNZW9o sGoz7zalfjBudGyDfVm/zuxlD/X44DpA/bWxp4Bg8dUO1S2DfLFW78dT1Cr/B7SJ Dlf+xdxHQw58iq+ITrPpqzAToJ3XgeWImi0kL6YtgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrhedvgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttdejnecuhfhrohhmpeffrghfnhgr ucfjihhrshgthhhfvghlugcuoegurghfnhgrsehfrghsthhmrghilhdrtghomheqnecugg ftrfgrthhtvghrnhepvdehtdeludekgeevleefuedvudejieetheekvdfhteekffdujefh fedtudehvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepuggrfhhnrgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0e894699:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 19 Nov 2022 05:55:15 -0500 (EST) Date: Sat, 19 Nov 2022 12:55:10 +0200 From: Dafna Hirschfeld To: Colin Ian King Cc: Mauro Carvalho Chehab , Heiko Stuebner , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: rkisp1: make const arrays ae_wnd_num and hist_wnd_num static Message-ID: <20221119105510.26n7jk6tc4anu3f3@guri> References: <20221102155117.144570-1-colin.i.king@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20221102155117.144570-1-colin.i.king@gmail.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 02.11.2022 15:51, Colin Ian King wrote: >Don't populate the const arrays on the stack, instead make them >static. Also makes the object code smaller. > >Signed-off-by: Colin Ian King Reviewed-by: Dafna Hirschfeld >--- > drivers/media/platform/rockchip/rkisp1/rkisp1-params.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c >index d8731ebbf479..3482f7d707b7 100644 >--- a/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c >+++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c >@@ -715,7 +715,7 @@ static void rkisp1_aec_config_v12(struct rkisp1_params *params, > u32 exp_ctrl; > u32 block_hsize, block_vsize; > u32 wnd_num_idx = 1; >- const u32 ae_wnd_num[] = { 5, 9, 15, 15 }; >+ static const u32 ae_wnd_num[] = { 5, 9, 15, 15 }; > > /* avoid to override the old enable value */ > exp_ctrl = rkisp1_read(params->rkisp1, RKISP1_CIF_ISP_EXP_CTRL); >@@ -822,7 +822,7 @@ static void rkisp1_hst_config_v12(struct rkisp1_params *params, > u32 block_hsize, block_vsize; > u32 wnd_num_idx, hist_weight_num, hist_ctrl, value; > u8 weight15x15[RKISP1_CIF_ISP_HIST_WEIGHT_REG_SIZE_V12]; >- const u32 hist_wnd_num[] = { 5, 9, 15, 15 }; >+ static const u32 hist_wnd_num[] = { 5, 9, 15, 15 }; > > /* now we just support 9x9 window */ > wnd_num_idx = 1; >-- >2.37.3 >