Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp553060rwr; Wed, 3 May 2023 02:44:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77PMlz3CGXjeGKk3+1Hvr9ng9dLOdwvrrUq30s9WlvhXZS49psgBYdi2lckfG5DWcwZJ02 X-Received: by 2002:a05:6a20:9c8b:b0:f5:b78b:1a0e with SMTP id mj11-20020a056a209c8b00b000f5b78b1a0emr20915546pzb.9.1683107042569; Wed, 03 May 2023 02:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683107042; cv=none; d=google.com; s=arc-20160816; b=y0q5kXrgH4nC3WS5tyl2SUhMr9R0oxXC3qnR5F+PS/rXXdaeYpNOr0+xWAFUmCev7F QBwQ7OJwBKmu5MoJmn+W6cQKWp1/brYuKKZ+reiVxlIm7baGGbjPmlPJNTY92P0T3P3W i+kj6hMW2yLvepY8jm4kvxsA3IR9rqA68SsjvUhegIf4sJ4qeq0SMAjMPHsJagC9yLNf zlzRo+Ol7SEU+/a578BDeHWA8GGhCxCUIHz79wY0Mp2zyruxUee8wQSvbUIGILsnX8/g wueJWUND0m0uNFIMImXTjlr49liCXlkM+EEfy95eWhMkUB6GqYTqJ8DvCav/03VYBh/B wNZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HBB9qpJkTYYA50YXDxfy8uIUZ0jceCXCGKDGT94/U+Q=; b=Y68oaJknT8De5ruWGv+6/eUWhFR7JpTnd9pR0MCWltP6rZheCAIRltsdolupXuQexP DvPd29okGROpKygvaK7zTlxGwF9V6DMGhnvRjC1Q9bv0q3HH65RCYaSp54OEM0yGcaCP 37FpDDsdLakSnTw0koPVLLH2X7n8Vvh0adP2ix8GgVp9rVKTmF57FAWfagXK93HPC1hM gqu/f+Uw+LxXY4oQY9jb0fKfjh8z5BhftNwGStGwrJgCkkY5RZPOn7b9W29yaZC1+iVx eOAdrPy4TqzRCZVUdtR67vMiWMO0ckVKOhB6w6fsB0sv83K37hGokmYvef0zqvm26IIt OZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KHG/5BA2"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a17090ab90200b002470ff0e67csi1093658pjr.149.2023.05.03.02.43.49; Wed, 03 May 2023 02:44:02 -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 header.i=@linaro.org header.s=google header.b="KHG/5BA2"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbjECJkG (ORCPT + 99 others); Wed, 3 May 2023 05:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjECJkD (ORCPT ); Wed, 3 May 2023 05:40:03 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 942B244A4 for ; Wed, 3 May 2023 02:40:00 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-30644c18072so223736f8f.2 for ; Wed, 03 May 2023 02:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683106799; x=1685698799; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HBB9qpJkTYYA50YXDxfy8uIUZ0jceCXCGKDGT94/U+Q=; b=KHG/5BA2dCS08XF2BbibbxTkzVdJYPJQuS+rtOh5FXboVLlWx4sR1NBFceoE91NtVn 4Uon1kA3Gnqs1XmVi5X1ud1zKhUqrX90z6/dulef2suJj1eT4Fp5Nwl1X2jd+KyBiI5x P/hE+N/mqs/hvNAnIITtDklTdEx8gl1S3ig0HL0734e2Xvjw6+y6RZIt+iUSNQySTsJI SLEq4UT5S3K6VpPPGt+gVMjK18cyiTfLG/yjcKtBjbJe27PPRlRPx+OJYSxcRmxg5vZw rmLGnwic9fbXFiJHWr4gAOwNESlpsG5LEAkWA6LcNusZmqqm8bQ531xvKTJrjXq0U77r r+eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683106799; x=1685698799; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HBB9qpJkTYYA50YXDxfy8uIUZ0jceCXCGKDGT94/U+Q=; b=DEBDXIAKN1QhE3ieQiElUlJOTHQZXNq5etzUQrwCl2AVIbYrR/QYArH+Cz5l8SNiDr VIo8Oj/TaoYD3tLL2vr7kqOC5Ey3CzzNUSp0n2kmSQLZCwZ9DepjlD+Es5SowS7NhR39 xMq+HfIbcreC4n1wgGhTzA6sd3QYx00xKZRx9xyiF79jtPH46RJAS7zY6Yt3IgjIo2GY 940cal15xNZe8jPZReh9V+jYqFg0JXzwlkfCgaXEmrflYoZDXdk3UukbzZwyTD33Mg80 kMPITJBpiirQXOWWDgKDK6Yr7LIZvnMPWsdB2VKwEuF0fZOkUFL/bFY2Y6WxXMfz02iS 0VJw== X-Gm-Message-State: AC+VfDw2uuf0z2q2Mh/QVcDa37dmxNawHwXLI+IW4DQJv+jAPb3ZYo2v YmziK6g1LlC/i8oRnhTbfJjEWA== X-Received: by 2002:adf:df06:0:b0:306:2f8e:d259 with SMTP id y6-20020adfdf06000000b003062f8ed259mr6585314wrl.57.1683106799062; Wed, 03 May 2023 02:39:59 -0700 (PDT) Received: from [197.55.55.58] ([93.107.151.186]) by smtp.gmail.com with ESMTPSA id p6-20020adfcc86000000b0030644bdefd8sm845361wrj.52.2023.05.03.02.39.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 02:39:58 -0700 (PDT) Message-ID: <49006a56-cdd2-84f9-55f6-bd02f423b582@linaro.org> Date: Wed, 3 May 2023 10:39:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] media: camss: camss-video: Don't zero subdev format again after initialization Content-Language: en-US To: Yassine Oudjana , Robert Foss , Todor Tomov , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , Tomi Valkeinen , Sakari Ailus , Shuah Khan , Lad Prabhakar , Laurent Pinchart Cc: Yassine Oudjana , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230503075340.45755-1-y.oudjana@protonmail.com> From: Bryan O'Donoghue In-Reply-To: <20230503075340.45755-1-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 03/05/2023 08:53, Yassine Oudjana wrote: > From: Yassine Oudjana > > In an earlier commit, setting the which field of the subdev format struct > in video_get_subdev_format was moved to a designated initializer that also > zeroes all other fields. However, the memset call that was zeroing the > fields earlier was left in place, causing the which field to be cleared > after being set in the initializer. > > Remove the memset call from video_get_subdev_format to avoid clearing the > initialized which field. > > Fixes: ecefa105cc44 ("media: Zero-initialize all structures passed to subdev pad operations") > Signed-off-by: Yassine Oudjana > --- > drivers/media/platform/qcom/camss/camss-video.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss/camss-video.c b/drivers/media/platform/qcom/camss/camss-video.c > index 898f32177b12..8640db306026 100644 > --- a/drivers/media/platform/qcom/camss/camss-video.c > +++ b/drivers/media/platform/qcom/camss/camss-video.c > @@ -353,7 +353,6 @@ static int video_get_subdev_format(struct camss_video *video, > if (subdev == NULL) > return -EPIPE; > > - memset(&fmt, 0, sizeof(fmt)); > fmt.pad = pad; > > ret = v4l2_subdev_call(subdev, pad, get_fmt, NULL, &fmt); Acked-by: Bryan O'Donoghue