Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp31669rdg; Wed, 11 Oct 2023 19:44:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHR3fbD5L0Do7hhNs4S4mLw/SPfnJQihCbXQbtotfU/89Z9Z/oe3SEmGWyJt2G/8i89qe8 X-Received: by 2002:a17:902:6808:b0:1c9:c3eb:6551 with SMTP id h8-20020a170902680800b001c9c3eb6551mr7134235plk.10.1697078680408; Wed, 11 Oct 2023 19:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697078680; cv=none; d=google.com; s=arc-20160816; b=ocHJzoO39QrlY7ihmaPOsBZWVFPWYvufgq4hyXjZK6pUDs5dIafgKmw8g00fIyJf1t UgyGih6GhbiL8+gO4b13h9r2nDzewhJgE+7ttIzb8aIpastG8stYIP4QYgbq7YYjPYi1 XCpzQhaDSOwXG0KZ7YGxTCv+O2Sxy4fTH24Lvvolnm2R6tZJOsGSF5uNR9ZCyypCY85z sEG7RsrLJRxoB1/7uEbBd/irh8CCBHY17DaVsBA8gxdvjyAlC4KjJjTU9jIchfYF5W3u 3p1WWx/+T6SBpcEAQw7UW7NspDoSfcBGU0nV878MKlfvuCU4D14QJTgKH+6CXUSnLr+n b0nQ== 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=SF+tQPknWA4curjXR2csaGMc3/aMP3ob1seQZIQ1MjU=; fh=20oaD+22gZDIwTjVIQmLAGyP1kcf6d0HcenrPsHzfuw=; b=JWJt8tUXxQ4Hd+SvLHrEAr2Zx3qt9pRrr6/5HezWQlSJZHj83PYFp7ecxqSf0mMlUS QpM9ToS31/GmxV+t+GqWzIqWJhD7TJ3mmyDsbzXpNweZ1KQ4rW/Pz0+jETWYDoJVCqQp nSavCVoetoeMHdz7GyRrlrPIHNisUIy1JoZEW+T1dCw3ubVvms5085WZAAx33gP6nOPz UCzYof/F3ftta04TI3GlLonjd87li5o4+eLaR35w4wtgeQwabb7G/oeQH+iaQrRUb2z+ RMjm/EVbnokCfHO5rc4/OgxFAtUOFgF67i7WIwNUKNRcWbOiIIzb/E14VDnA/4OjM7Pm /LdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i16-20020a17090332d000b001b8b437b01esi1104931plr.350.2023.10.11.19.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 19:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9CA32802904D; Wed, 11 Oct 2023 19:44:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235226AbjJLCoh (ORCPT + 99 others); Wed, 11 Oct 2023 22:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233040AbjJLCog (ORCPT ); Wed, 11 Oct 2023 22:44:36 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF8DAA4; Wed, 11 Oct 2023 19:44:33 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R431e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Vtyh2Z6_1697078662; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Vtyh2Z6_1697078662) by smtp.aliyun-inc.com; Thu, 12 Oct 2023 10:44:31 +0800 From: Jiapeng Chong To: robdclark@gmail.com Cc: quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, marijn.suijten@somainline.org, 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/a6xx: Remove some unused functions Date: Thu, 12 Oct 2023 10:44:21 +0800 Message-Id: <20231012024421.102832-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 19:44:39 -0700 (PDT) These functions are defined in the a6xx_gpu_state.h file, but not called elsewhere, so delete these unused functions. drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h:356:36: warning: ‘a7xx_ahb_reglist’ defined but not used. drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h:360:36: warning: ‘a7xx_gbif_reglist’ defined but not used. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6785 Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h index 8d7e6f26480a..76e021063732 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h @@ -353,13 +353,6 @@ static const u32 a7xx_gbif_registers[] = { 0x3cc0, 0x3cd1, }; -static const struct a6xx_registers a7xx_ahb_reglist[] = { - REGS(a7xx_ahb_registers, 0, 0), -}; - -static const struct a6xx_registers a7xx_gbif_reglist = - REGS(a7xx_gbif_registers, 0, 0); - static const u32 a6xx_gmu_gx_registers[] = { /* GMU GX */ 0x0000, 0x0000, 0x0010, 0x0013, 0x0016, 0x0016, 0x0018, 0x001b, -- 2.20.1.7.g153144c