Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp866454rwl; Sat, 25 Mar 2023 12:32:38 -0700 (PDT) X-Google-Smtp-Source: AKy350YIbPPa42lx/vOYkqYVvsPd/q0/dDsK/C1n9w8iJmZj0YGfKr2tCHxJrzkHCus67HAOiDp0 X-Received: by 2002:a17:906:6a2a:b0:879:bff:55c with SMTP id qw42-20020a1709066a2a00b008790bff055cmr10207548ejc.1.1679772758052; Sat, 25 Mar 2023 12:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679772758; cv=none; d=google.com; s=arc-20160816; b=MaXJwU13R43lk3c/30FUmjDeq8OTja1RQKOfZ72zFtBYOqJSKrzPCwNVjgk77MHcXv P4g8XWU3D8a4ra6Cgcz4N7K1ybelnJpNVUdcaEM0G9ROlaUISjukLSkB+x1ClcapkTyi IoDFlrfFdrZT0x6/Hy97dg0LxMHGeBMhzZ96Z3wyeh5JTC2j4DiMpLRHa7DQ+fG4pKHY HSE+0FMifdY0F7OHgjNk5HbdneXftnIjcHHTFjGnJ4gShq30iQJmdPUhaMLdZW2R95/T WngZJyYtCd4KTUcEEyxUFa5Z22DQYiejRl1dmYxNTGD25sOGpfphi/w6OvT27Qf0mrfX A81w== 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:dkim-signature; bh=/hv+TcIXLsrq2P9XNUba60gSzzOxyq9p1RlXlaIvOYA=; b=pVE/JRlCPf9J+YtguZxbtsbaPPNECUGuei9mBHareeKxq5+L4XiCVOuGnjJKlVuu+9 NM/jDXaoJlMqvOYUylZsTzC0MR9jkJXi725/IkmcJV060odIflvXjx6v1+4fQndfGHNv DWzMGb0kzieMWeAMeLpf9FpXc9DyqxK3RruV0TLx3taC9+DfMdjcMemHcqcDbVrqTj5D Djr2TuN5tCrFuufxuVs7Pln6om2b+vJmsoqf+pEUKewWqMe9Tj6qz1njws7dRctpeiUd NDo0iQtKYCmYa2Lsmp8FoAiMuQ3YeDos7lP7gWu6WS6GjwKAer1CdME1tkRhyJsw5xrX K8mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=AWjPw8uO; 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 s4-20020a1709060c0400b0093349208719si18115547ejf.768.2023.03.25.12.32.13; Sat, 25 Mar 2023 12:32:38 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=AWjPw8uO; 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 S231410AbjCYTYz (ORCPT + 99 others); Sat, 25 Mar 2023 15:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjCYTYy (ORCPT ); Sat, 25 Mar 2023 15:24:54 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD2330C0; Sat, 25 Mar 2023 12:24:52 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1CE7789F; Sat, 25 Mar 2023 20:24:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679772290; bh=tG8wxnDoKhE6wm3AvyjW+76dHK/YLCiCysUyipc/yhU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AWjPw8uONxngtUjdrdiW6BYpT8VyfZWnbPubrTVOw9IaNipY+6kwvaZQdi6cA3m3L N+t3QDVjYdSwNg9ghdL9KU3VJWMY1bVV0wkl/yDaKc49CyXXfuKdPb+dXhC7QYjWsF Gth9J41F+BXyOopFAiqzTFz4mLlwj+piAmrgzCTA= Date: Sat, 25 Mar 2023 21:24:56 +0200 From: Laurent Pinchart To: Jacopo Mondi Cc: Dafna Hirschfeld , Paul Elder , linux-media@vger.kernel.org, Mauro Carvalho Chehab , Heiko Stuebner , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] media: rkisp1: Make local immutable array variables static const Message-ID: <20230325192456.GE9876@pendragon.ideasonboard.com> References: <20221117084217.3892680-1-paul.elder@ideasonboard.com> <20221117084217.3892680-3-paul.elder@ideasonboard.com> <20230324103744.ww67j3di73xg4ois@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230324103744.ww67j3di73xg4ois@uno.localdomain> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Hi Jacopo, On Fri, Mar 24, 2023 at 11:37:44AM +0100, Jacopo Mondi wrote: > Hello > the change seems trivial, do we need an explicit ack from Dafna ? An alternative patch has been merged in commit 4ee8191c7c9f ("media: rkisp1: make a few const arrays static"). > Dafna are you comfortable being listed as maintainer of this driver or > do you think you won't be able to dedicate time to it and need help ? > > Thanks > j > > On Fri, Jan 27, 2023 at 01:28:05AM +0200, Laurent Pinchart wrote: > > On Sun, Nov 20, 2022 at 12:28:01AM +0200, Laurent Pinchart wrote: > > > Hi Dafna, > > > > > > Are you fine with this patch, can I include it in my next pull request > > > along with the other ones from the series ? > > > > Ping. > > > > > On Thu, Nov 17, 2022 at 05:42:16PM +0900, Paul Elder wrote: > > > > From: Laurent Pinchart > > > > > > > > The max_widths and max_heights variables in rkisp1_try_fmt() are > > > > immutable and don't need to be allocated on the stack every time the > > > > function is called. Make them static. > > > > > > > > Signed-off-by: Laurent Pinchart > > > > Reviewed-by: Paul Elder > > > > --- > > > > .../media/platform/rockchip/rkisp1/rkisp1-capture.c | 12 ++++++++---- > > > > 1 file changed, 8 insertions(+), 4 deletions(-) > > > > > > > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > > index 7695ef134908..91e685fdbbe9 100644 > > > > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > > @@ -1150,13 +1150,17 @@ static void rkisp1_try_fmt(const struct rkisp1_capture *cap, > > > > const struct rkisp1_capture_fmt_cfg **fmt_cfg, > > > > const struct v4l2_format_info **fmt_info) > > > > { > > > > + static const unsigned int max_widths[] = { > > > > + RKISP1_RSZ_MP_SRC_MAX_WIDTH, > > > > + RKISP1_RSZ_SP_SRC_MAX_WIDTH, > > > > + }; > > > > + static const unsigned int max_heights[] = { > > > > + RKISP1_RSZ_MP_SRC_MAX_HEIGHT, > > > > + RKISP1_RSZ_SP_SRC_MAX_HEIGHT, > > > > + }; > > > > const struct rkisp1_capture_config *config = cap->config; > > > > const struct rkisp1_capture_fmt_cfg *fmt; > > > > const struct v4l2_format_info *info; > > > > - const unsigned int max_widths[] = { RKISP1_RSZ_MP_SRC_MAX_WIDTH, > > > > - RKISP1_RSZ_SP_SRC_MAX_WIDTH }; > > > > - const unsigned int max_heights[] = { RKISP1_RSZ_MP_SRC_MAX_HEIGHT, > > > > - RKISP1_RSZ_SP_SRC_MAX_HEIGHT}; > > > > > > > > fmt = rkisp1_find_fmt_cfg(cap, pixm->pixelformat); > > > > if (!fmt) { -- Regards, Laurent Pinchart