Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp734558rwb; Tue, 4 Oct 2022 09:54:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XoI491UdtThQTM5i2wXIk0DB20hfDutUlPKW0+LpQ6zH5y8gnsT2vZaxlmB08fDuHZYdB X-Received: by 2002:a63:8649:0:b0:455:17a:ecb4 with SMTP id x70-20020a638649000000b00455017aecb4mr3909722pgd.310.1664902494366; Tue, 04 Oct 2022 09:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664902494; cv=none; d=google.com; s=arc-20160816; b=Wi9fHU8ollZo1xCXQLxO+IUgu1m+MgrF9tWJdGVuCdNOkQC+h3YNTjm8ph3Cvm7nXa +hn5f7VPhfJsXS+dECxGL1XHAkaOFgZAelG4YHpg5DhdVnpVCITnkKXjVWJJRo1kDOF8 a7Lbhdgxpy+yTMMGWcVmF/yMOsPdcl3jzFrkvj5FE+Zd2Q0dFdCMdtLFTA3BB7Cx1F9Q YKyo7PC9DhAaVCsyfIMp0H0wmZG89V2nkuboXs5vIbrcaAN2eDSROuRD4Oj5q7GBgHkh wuWQk/KTnuEGOAPg5b1blg2ZgaWFomJA9kkthi92b6WJlMC/cVJfLuDLIE6g1n4NAih7 nifQ== 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=er6WiFdir6EGtOJNKUaGEwi0MCH4cdt6wj/WNtIk28c=; b=eRQ2HprxFanoMRpMOnD9/Yhkepjka8oPJxQr4kl6Hv9AdPCD9k97xO3uGXnko8F8u+ PsJMPp4zVaTdIBm9aqqforhPX/8yKQCWoKA/gK/QKmWbWp9i5rY6BvGjsasjFKkpt89J 42TJYuGp3StfKjoOcBQ4jktN61OuojDcAVZQgsu6cx8qliNlhwgKkK99Gk0X5LeDRaXH CT57GtU1OT898zuw6CQOXfKIpANV7caUbldkXSp6/fTRPJuiJpSOTgt0LhZJUefhzmjY 3bx+LpY1j5Z7D1XcpUUBa1Wf5bOj5bzewjZMWUh6WrBUSLwFJe+3Y5c76Lqj7tFFeyUr KXvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=gM63uEQl; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a656743000000b0043a93355bcbsi14431383pgu.654.2022.10.04.09.54.42; Tue, 04 Oct 2022 09:54:54 -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=@quicinc.com header.s=qcppdkim1 header.b=gM63uEQl; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbiJDQ2R (ORCPT + 99 others); Tue, 4 Oct 2022 12:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiJDQ2O (ORCPT ); Tue, 4 Oct 2022 12:28:14 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365B027FD8; Tue, 4 Oct 2022 09:28:13 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 294F89UI001775; Tue, 4 Oct 2022 16:28:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=er6WiFdir6EGtOJNKUaGEwi0MCH4cdt6wj/WNtIk28c=; b=gM63uEQl+NrPYdjvUp/K0JfGmBB8R9fV4mGkjS6iO+P8OXxTseH65+suTSsftmz4DbfV WIepsMJaW8FDJB6bIUmJJD/vL6tP22+T7hcRih5f7LRPLcviDXN5P2hC6w18IaY1VHrv room6h05PjpgeS4oodWOo8h4RdgC9ScG0p6fPKPPYJfGBrz+tddmp2nQ0LrcTCokPZ1S QDmrXMD0hVIT+WtHK9OYC/NdJ4TnZHOiRsZD1eUD0BSmdJS5OtEbc3SYgTOI6xJd7VO9 o14mcYWBgCldXol9tqacWmkzBNw83UTveI8psPsaXARej0hulAPtTRwqjA8OEvJda806 Ww== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k0escs8r9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Oct 2022 16:28:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 294GS1qm032218 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Oct 2022 16:28:01 GMT Received: from [10.111.163.178] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 4 Oct 2022 09:27:58 -0700 Message-ID: Date: Tue, 4 Oct 2022 09:27:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH -next] drm/msm: Remove unused variables 'top' Content-Language: en-US To: Chen Zhongjin , , , , CC: , , , , References: <20221010024010.2873633-1-chenzhongjin@huawei.com> From: Abhinav Kumar In-Reply-To: <20221010024010.2873633-1-chenzhongjin@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: eTWAbwP9wnza17SGp2NVwyKAzZq0dcIZ X-Proofpoint-GUID: eTWAbwP9wnza17SGp2NVwyKAzZq0dcIZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-04_07,2022-09-29_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 adultscore=0 clxscore=1011 suspectscore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 bulkscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210040106 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 10/9/2022 7:40 PM, Chen Zhongjin wrote: > 'commit 1e5df24b996c ("drm/msm/dpu: drop length from struct dpu_hw_blk_reg_map")' > 'commit 9403f9a42c88 ("drm/msm/dpu: merge base_off with blk_off in struct dpu_hw_blk_reg_map")' > These commits had merged hw.blk_off and hw.blk_off to mdp. > So we don't need to get dpu_hw_mdp in dpu_kms_mdp_snapshot() now. > > Since there is no code using 'top' in this function. Remove it. > > Signed-off-by: Chen Zhongjin This has already been fixed with: https://gitlab.freedesktop.org/drm/msm/-/commit/4bca876458caf7c105ab2ae9d80ff2cc9c60388d > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > index 008e1420e6e5..79e81f1443be 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > @@ -902,13 +902,9 @@ static void dpu_kms_mdp_snapshot(struct msm_disp_state *disp_state, struct msm_k > int i; > struct dpu_kms *dpu_kms; > const struct dpu_mdss_cfg *cat; > - struct dpu_hw_mdp *top; > > dpu_kms = to_dpu_kms(kms); > - > cat = dpu_kms->catalog; > - top = dpu_kms->hw_mdp; > - > pm_runtime_get_sync(&dpu_kms->pdev->dev); > > /* dump CTL sub-blocks HW regs info */