Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1444390rwr; Thu, 20 Apr 2023 15:26:14 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2GlT6dKjwBf3D2zF3TWr+snew0g40JchLndCvRKTmqaUOc2dBRqzSg/38uVu8B477QEZr X-Received: by 2002:a17:90b:3842:b0:234:e0c:caaa with SMTP id nl2-20020a17090b384200b002340e0ccaaamr3051687pjb.6.1682029574090; Thu, 20 Apr 2023 15:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682029574; cv=none; d=google.com; s=arc-20160816; b=bAbrzs1MvfeMP0wH26HBBndVefHDogKEcd0ENo+C1sB45N9pxV3ZQFiOTHGgyYVRHg 2gugv+6dNOxAdRFC7L5HuAKbWyt1nXX9Pa5zF1mScJZohGmzfSNzUR7+yfZQq1TKvwnH 3TIXTIlw71pzKuQ4gR1YZe/IcC6E13SIaCWqmFPvg7ia9FWBdC+OZlAkwmK52Aw/rPgg w46cHjJO9sN1hLr2RWOgzGjxDV3Efw/5YNcg4fydjQ7Hl/1jGICftoK6gqwvknLAX8vK XlJ10gloenTJOyPeYmaLfN1I1EnNp6oxRBjPe52M6tg701q+pVLjqSrBN4QGkjLPoXXP JH6w== 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=0QW2zFEjgoUsaSsxeB6v7NVOeo+doEcmv6Xwkw75TFw=; b=JOZ2xoavOG7KV3BKW2KDS8lvS+02hZ8XUHjwA55XwKhzFiuS23rvCwrxBUjMLllYN5 iMnODMYr74X0lhPpmzHQJx7Y6BHWIU8O8X2X7WHZ1V4vGFgogPrphWUL8GdwPT0dxpax bOBUhGwKN9HIIQER8DRXKlIJVDIJLJvoFD9Ke5blBhGRgiEOTuoi52Y+380gBfW4V3Es kWYqaL1VSGMr11guQG0JvIGYL7hcu5FDE2CSoWtwBfwLQeK1EYXGnoKmvmqb3wlDvLJp haRU6SnlFPD9ObCvvxUGbzkvuHXih3Uh+o9qwg8ZoObDT4RvTEmZ9Hc4BUwWjT60GQVf YxMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qX9nkfpb; 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 b6-20020a17090acc0600b0024765a9e7fesi2852111pju.25.2023.04.20.15.26.00; Thu, 20 Apr 2023 15:26:14 -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=qX9nkfpb; 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 S229736AbjDTWUa (ORCPT + 99 others); Thu, 20 Apr 2023 18:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231394AbjDTWU2 (ORCPT ); Thu, 20 Apr 2023 18:20:28 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AA26272D for ; Thu, 20 Apr 2023 15:20:27 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2a8bbea12d7so9386531fa.3 for ; Thu, 20 Apr 2023 15:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682029225; x=1684621225; 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=0QW2zFEjgoUsaSsxeB6v7NVOeo+doEcmv6Xwkw75TFw=; b=qX9nkfpbyJjng6ZSha7rHGcg4LudKd3zSrQNn0RR5uF1qMb/HDTzv5Ygyp7yz5JUby x+O1vf9GjBtAXRMaFcMQJsseHfBHftKtS2GGSlKHy6bJ+s58OX012Te2Hj3Ie0m+VjI3 TjrB7NMPSfeFaDXX1tzrCf/EDlBBycUodM8JCXTkDRvL2kzdvZz+83MKUXhIgwHnHURB FXHSEHoku5wDTH4+Ij2eO44jPWiA6hQpXJHCdbgp+gJ+crH+oZJQKm6s5DvSstYRE/cC RVSv1Ga5xyYN0ZIror7eizBU1aaHZbRhjipk/BAOsRSFaW2x00OrZo5jEGbDL4z2tqMK gMoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682029225; x=1684621225; 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=0QW2zFEjgoUsaSsxeB6v7NVOeo+doEcmv6Xwkw75TFw=; b=c2zfSx91iXgFwrsFA6xxx4F5wbaZicOowe8i7Dfy8bOIyv/HDKj36kjjYx9w6tFA0x +1fIXdCJOn7JerK0oPbCym9rdt2q8uA/twOJfrF50w1wefjwK5yF+gi+l/puUTB7/fKU GaIN6IkdSUF3CbVaO0Aycm1IoiqqM55wa1JvpEet/F6fMbh0vIscxKuLpigLcWkfPC2m JUrXVGs4GHJTzmmzYRGF4NNTYY5sl/ox29zdOQOF0vHjEKU2bfmoYS8GtNmhe0mMqaso EMJtVsfj+64Z0PQv2O9dk4DCbIgZdgX1JCtjMj1EpAecSpIlN1uuSUkUkvls3N6UNelS hQkQ== X-Gm-Message-State: AAQBX9eY7K2IzlwqL0QbiR7fcDgpYexJAL1Rrsv3KqXR98uwXLYuYoeM QA8G7Nfgz7Q9QMjxm+HWIoz8OA== X-Received: by 2002:ac2:4891:0:b0:4ec:8d97:9479 with SMTP id x17-20020ac24891000000b004ec8d979479mr777600lfc.20.1682029225592; Thu, 20 Apr 2023 15:20:25 -0700 (PDT) Received: from ?IPV6:2001:14ba:a085:4d00::8a5? (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id n5-20020ac242c5000000b004ec88753502sm347146lfl.111.2023.04.20.15.20.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 15:20:25 -0700 (PDT) Message-ID: <61bdd089-89b7-749b-95bd-c7e61c396e29@linaro.org> Date: Fri, 21 Apr 2023 01:20:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: Drop unused members from HW structs Content-Language: en-GB To: Marijn Suijten , Abhinav Kumar Cc: 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 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> <2ujeakobg7oulzarvzjktx5elo4ckpjq5pbknr3jx3h43snmry@yd4j64s7tqy5> From: Dmitry Baryshkov In-Reply-To: <2ujeakobg7oulzarvzjktx5elo4ckpjq5pbknr3jx3h43snmry@yd4j64s7tqy5> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 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 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 21/04/2023 00:39, Marijn Suijten wrote: > 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? I'm fine with having the Fixes removed. If you can send the v2 reordered & with tags removed, that would be the best. > > - Marijn -- With best wishes Dmitry