Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1403777rwr; Thu, 20 Apr 2023 14:41:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bipXG1Z0wO68ooD3WzWpYpC09b/a8/xzm9VAJMmYDyb2rv/LjhgrjwkdKSbyZX7Rs4HN3r X-Received: by 2002:a05:6a20:2590:b0:ef:279d:433d with SMTP id k16-20020a056a20259000b000ef279d433dmr3914810pzd.61.1682026918613; Thu, 20 Apr 2023 14:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682026918; cv=none; d=google.com; s=arc-20160816; b=WFxL1iJFy6yCeUrdUzaxCr6XAZguunpKwt+FrsRQqxHmDeZRyktz34+kd628siBvt7 Fu9yOq64z1yNfiCbXPgnDts9AsrhPZlMVeurszO3ip7WFCKZGZouzaIB284FvxtfQLj5 IMqIq9nRYUTEmIdcOjH8998JIQuvluHWj+cBcqcPLRGZweQglkjSQMEb2+VMKg9wcJHV bGTWLS+7clSNQQqIsrZt1SfqHhHK4uGYfuNDPArNAlAt6p80JNA1wr/bqNlXNa1vHwHF qz/C8VEyAEMqrXKiC6ry+yJEV2gthGELOTt4WWP3Kp9SRnOnWKRglL8K1sAzj3zVerY4 eZRw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=u1bdbK7Guazf1hHkZrpreZFxEHdit6zdaRTCOfvXmXM=; b=xB1rW/gSjiiXqK73J5J/UvxTdBYC8iDnTqiQfcm83RICaa78O+q9F+9RwSNYSgy40I HKPmfDeoMoYpCys2ZFQ5RSaqAixvpL3xJNx9GaJGvSprVPJNjZFmC36hNZsNFmGxSxhm xkwZ4HxbMCFI4IW5na5qPEy/YlG1J2KJE/y3PXfhiRNxZ/RPS7OcVkSnzZG9VJnhfglA B+bcBSUAW7qa/yOZ0f2R0ejGYYXD1jZHIAQ7q4JCUeqhcCKs5M8bWwSHrAg+El6vU1A7 Z2P5Mg2blsLFmsB72rkTe9a14Tx/j0s13hNZprvJz1FbC/qRT0K8Hu2waDSnoSp1kacu b+zQ== 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 t65-20020a625f44000000b0063b5e9691a8si2563113pfb.129.2023.04.20.14.41.46; Thu, 20 Apr 2023 14:41:58 -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 S232308AbjDTVjS (ORCPT + 99 others); Thu, 20 Apr 2023 17:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231723AbjDTVjQ (ORCPT ); Thu, 20 Apr 2023 17:39:16 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8274D10D9; Thu, 20 Apr 2023 14:39:15 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 8C81120571; Thu, 20 Apr 2023 23:39:13 +0200 (CEST) Date: Thu, 20 Apr 2023 23:39:12 +0200 From: Marijn Suijten To: Abhinav Kumar Cc: Dmitry Baryshkov , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jami Kettunen , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jordan Crouse , Konrad Dybcio , Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , freedreno@lists.freedesktop.org Subject: Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: Drop unused members from HW structs Message-ID: <2ujeakobg7oulzarvzjktx5elo4ckpjq5pbknr3jx3h43snmry@yd4j64s7tqy5> References: <20230418-dpu-drop-useless-for-lookup-v1-0-b9897ceb6f3e@somainline.org> <20230418-dpu-drop-useless-for-lookup-v1-1-b9897ceb6f3e@somainline.org> <7ad86cd9-4b30-e7f1-780f-2c1c7093087e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023-04-20 08:46:46, Abhinav Kumar wrote: > > > On 4/20/2023 7:33 AM, Dmitry Baryshkov wrote: > > On 18/04/2023 02:14, Marijn Suijten wrote: > >> Some of these members were initialized while never read, while others > >> were not even assigned any value at all.? Drop them to save some space, > >> and above all confusion when looking at these members. > >> > >> Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") > >> Fixes: 84a33d0fd921 ("drm/msm/dpu: add dpu_hw_wb abstraction for > >> writeback blocks") > > > > The fixes headers are slightly questionable, as unused fields are not a > > bug. Nevertheless: > > > > Yes, I would also not treat this as a "fix" but just cleanup. Ack to both. This seems like a fine line to me as the fields are not contributing to anything except confusion. Specifically hw_mdp which is never initialized and may accidentally be used without realizing that it'll stay NULL, but that is again up to the developer using the field at that point. Feel free to drop them while applying, or should I reword the message to at least still link these commits to mention the origin of the unused fields? - Marijn