Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp914831rwl; Fri, 24 Mar 2023 03:55:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aqR/tK0bFhJv96o7wI2rUCXa//R7AkoX8y42m0MHdQrvz2m994p2cu9xxb+tybrUCqvW1y X-Received: by 2002:a17:906:4356:b0:93d:1bfd:8fa with SMTP id z22-20020a170906435600b0093d1bfd08famr2071037ejm.36.1679655339218; Fri, 24 Mar 2023 03:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679655339; cv=none; d=google.com; s=arc-20160816; b=I39/hactkPdYEI0F9aMIu2fmaWBdlrg1xfoN8o5rWHTLgg0Sxg+a4bhg16v0qHFhmR sy1HYwA8bg19z2LtIyjKwU6axsBXFnATMZqXOeCgSCM5C97o8kRyCE/3whtgzP1CVVGP RzwFnKvssl8FAkwRz5Afv5z+j7SvIVlpZu2dMWvgT1heHROXmt9r9yKJ7E92SxsWBVES MhrXlL/49bT9C6qIRTC9dmReq3fgYE3A0IDaaHVQWt8CDgtTotmR45oGUZygj6MpsnW3 uffWXmcKfYZuKU0NhjohuJZh7K3sPI3lBPC5rDMbLrUrma8TLlPSsl9I61HpffDYjuTN riRg== 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=ZxQav3X1Z/SHZU+Nt21OyR6GSd/6vSvM/7KSJXuQJYM=; b=mCBcjh047IynJ2Ad3V6jR5TshjE8Pqw9RzrvBZ6IF46UVF8aSO0tAlcYu8vQz3ajhW Ftn+TjPgWaW+0lzthNJfu6Cqi26ZWHdGlSTRtY7guVZwUML9YVAvtgleiG7FhfT9x7Py VVGcvfgpWEkwL6jaVBbcWOqula0qBrVqtZsPgekLHcC5KbgYa9qyyjG+p2h86TXoe5fI QiwEXrAAWcs+P8k44+MO7xJEc+RqGbtpH9dPHmLDPrZ7Si2uRovhTk6aD7+UaSW6WO+g y/PCigUiJVYziuFR4k8i5Pyt8Ct3isx83svU14E5apkwqsIF/9wytykOTLiyojYcqQmb RynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=b6u838Ce; 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 h11-20020a170906584b00b008d70b974e03si18895126ejs.379.2023.03.24.03.55.12; Fri, 24 Mar 2023 03:55:39 -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=b6u838Ce; 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 S231649AbjCXKhu (ORCPT + 99 others); Fri, 24 Mar 2023 06:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjCXKht (ORCPT ); Fri, 24 Mar 2023 06:37:49 -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 0449323677; Fri, 24 Mar 2023 03:37:49 -0700 (PDT) Received: from ideasonboard.com (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F40ACAFD; Fri, 24 Mar 2023 11:37:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679654267; bh=vuEBulVH+5BCa9CjmVtqtw6+G2FVlT7nzmxs65AfPC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b6u838Ce+B4XGhEQ5WjJv8ZJljxFspho/ikGBR1ihloudFKQ0oTihy1fvfZgDaAZA lVO9f03PkSoXL4Uo/ISYLLnYMgAFFY60vONZDgY6BrDSHYm+Fk/EVtaklq1UgaB1hV qTKB6EoM0sqPXe/bp3GoKT7vuVBfCrKzknjkPUZo= Date: Fri, 24 Mar 2023 11:37:44 +0100 From: Jacopo Mondi To: Laurent Pinchart 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: <20230324103744.ww67j3di73xg4ois@uno.localdomain> References: <20221117084217.3892680-1-paul.elder@ideasonboard.com> <20221117084217.3892680-3-paul.elder@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Hello the change seems trivial, do we need an explicit ack from Dafna ? 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: > Hi Dafna, > > 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