Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10418405rwl; Wed, 11 Jan 2023 20:11:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXsTWY0AcnmnDMCe2sYiHY7fTfMK2BASPxSNtXMiRduh4Abj2oBn/FQIBiEFle+dMQj48baC X-Received: by 2002:a17:907:7f04:b0:7c0:a4e9:615b with SMTP id qf4-20020a1709077f0400b007c0a4e9615bmr80105334ejc.61.1673496702261; Wed, 11 Jan 2023 20:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673496702; cv=none; d=google.com; s=arc-20160816; b=qp2lHb90jeIJwldYVkio5tCGzNaztjik3ISB9swxOAXqEMdivookLMGN8UFxqvK79d d9jTAvGD0W3vWzA8ks7ng4afowuBLNDB+1M7bYjIR3Wk8sHjkiKSYUcjLNRV1UBt2hkg Gu3tUCsjU6zqhjSUi5CLnYOZi0dTndyis2ZeHoAOsAWx5g3IxB7IRe4g08aog3LxSYfW iYDr0juQsCMvdcbfrnLLsZAxAUA0tjcRRka0wwPss8B7h0WsMXa5xn+mEg/L4nQYV0p+ Eap6QD0FQcs2OAOB2ct+s7F1CEOQxVqsfDT4ceG35jkQFgueRISevSZTd6chBVIRRnoT K3Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hiXXBIZ5ftPhlf/Kh5p2jmviH9yaRSt9MJPhvIWrprc=; b=hZfc24v3lBAO9EQ/42bIJTCxK+h9kYeZ/ahKKdlri/LgJPdwFT7BOT6b4ulqJBUygm p3jSzwhMXuHfpng1vtmwtHh/U7QR8ZM5hGbjxfSvDAsqscws8ahkHoNw+rtuQqxaGWnS 6sUUhOnGvugYN/m/NASzGrthI69XAYsuz15gxVg8DvIVfnowRacGaIyPOClfQ2DscgM0 fC0yiBtkFsyYQ5yh046zQIIpogkEIW3nfxP3rB6Mgx/mwfNpVxDkMgQHw/vn5J1+vgyr Ukp+LQUn6XEZYpRJnxzc4ZmGjr+aOBVDTaBp++tAp5tWmAISJiLf1/rf0Ozv1HElMjYI WsHg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xj1-20020a170906db0100b007c1753251a4si16096058ejb.928.2023.01.11.20.11.26; Wed, 11 Jan 2023 20:11:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbjALDju (ORCPT + 50 others); Wed, 11 Jan 2023 22:39:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjALDjs (ORCPT ); Wed, 11 Jan 2023 22:39:48 -0500 Received: from out199-2.us.a.mail.aliyun.com (out199-2.us.a.mail.aliyun.com [47.90.199.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 660563AB06; Wed, 11 Jan 2023 19:39:45 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R401e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VZPJ0sv_1673494772; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VZPJ0sv_1673494772) by smtp.aliyun-inc.com; Thu, 12 Jan 2023 11:39:40 +0800 From: Jiapeng Chong To: robdclark@gmail.com Cc: quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, airlied@gmail.com, daniel@ffwll.ch, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/msm/dpu: Remove some unused variables Date: Thu, 12 Jan 2023 11:38:23 +0800 Message-Id: <20230112033823.24901-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Variables 'sc8280xp_regdma' and 'sm8350_regdma' are defined in the dpu_hw_catalog.c file, but not used elsewhere, so remove these unused variables. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2029:37: warning: unused variable 'sc8280xp_regdma'. drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:2053:37: warning: unused variable 'sm8350_regdma'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3722 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 0f3da480b066..79bbef93948f 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -2026,14 +2026,6 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; -static const struct dpu_reg_dma_cfg sc8280xp_regdma = { - .base = 0x0, - .version = 0x00020000, - .trigger_sel_off = 0x119c, - .xin_id = 7, - .clk_ctrl = DPU_CLK_CTRL_REG_DMA, -}; - static const struct dpu_reg_dma_cfg sdm845_regdma = { .base = 0x0, .version = 0x1, .trigger_sel_off = 0x119c }; @@ -2050,14 +2042,6 @@ static const struct dpu_reg_dma_cfg sm8250_regdma = { .clk_ctrl = DPU_CLK_CTRL_REG_DMA, }; -static const struct dpu_reg_dma_cfg sm8350_regdma = { - .base = 0x400, - .version = 0x00020000, - .trigger_sel_off = 0x119c, - .xin_id = 7, - .clk_ctrl = DPU_CLK_CTRL_REG_DMA, -}; - static const struct dpu_reg_dma_cfg sm8450_regdma = { .base = 0x0, .version = 0x00020000, -- 2.20.1.7.g153144c