Message ID | 20231012024421.102832-1-jiapeng.chong@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp944183vqb; Wed, 11 Oct 2023 19:44:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPazhqg8UDMXkix4txunxghYgk5rk6WQjuLqjAPsTg9NTqg4IgyuN8yh3cYUWXRUlSRR/1 X-Received: by 2002:a05:6a20:9393:b0:16c:b95c:6d38 with SMTP id x19-20020a056a20939300b0016cb95c6d38mr15759177pzh.2.1697078681648; Wed, 11 Oct 2023 19:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697078681; cv=none; d=google.com; s=arc-20160816; b=Ws4VSLUAHH6tdhJAItPCe5xu+wNCt6gMKCmunkdZF3DRdSbGh2uAPeYzFO2f6uwbZa pBhZc5ZXQCrPw04sgHelGwgao/09Mwh35c8hgDO+tGvYPbAj/gN6camAeoutE7HPeIKv cplPfmIvnY4EWvb5q9FAyPLXtBrsoqRhpAI20pPiCgHlnneHY/fIcAMIS7WGdFSVrDE4 fw0gS8M2cpmK4WfF8N2XQ9OOq4et3kBKChKWIx9dbh3sRk8jms+BlepuhzazOBmNznxG IqLWNAtzsH5znsS+hzTBs9yQGhH1C80AnBuLUCQz+F6n9nhmfKAK0VXtzK4cAgOjg5iY QZZA== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n126-20020a632784000000b00578b1a60710si1150153pgn.552.2023.10.11.19.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 19:44:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 0B0C9802904D; Wed, 11 Oct 2023 19:44:41 -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 S1376666AbjJLCoh (ORCPT <rfc822;kartikey406@gmail.com> + 18 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <jiapeng.chong@linux.alibaba.com> 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 <jiapeng.chong@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> 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: <linux-kernel.vger.kernel.org> 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:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779515976027363031 X-GMAIL-MSGID: 1779515976027363031 |
Series |
drm/msm/a6xx: Remove some unused functions
|
|
Commit Message
Jiapeng Chong
Oct. 12, 2023, 2:44 a.m. UTC
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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6785
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h | 7 -------
1 file changed, 7 deletions(-)
Comments
Hi Jiapeng, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20231016] [cannot apply to drm-misc/drm-misc-next v6.6-rc6 v6.6-rc5 v6.6-rc4 linus/master v6.6-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jiapeng-Chong/drm-msm-a6xx-Remove-some-unused-functions/20231017-102229 base: next-20231016 patch link: https://lore.kernel.org/r/20231012024421.102832-1-jiapeng.chong%40linux.alibaba.com patch subject: [PATCH] drm/msm/a6xx: Remove some unused functions config: loongarch-randconfig-001-20231018 (https://download.01.org/0day-ci/archive/20231018/202310181742.3qvtq78e-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231018/202310181742.3qvtq78e-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202310181742.3qvtq78e-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:8: >> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h:348:18: warning: 'a7xx_gbif_registers' defined but not used [-Wunused-const-variable=] 348 | static const u32 a7xx_gbif_registers[] = { | ^~~~~~~~~~~~~~~~~~~ >> drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h:341:18: warning: 'a7xx_ahb_registers' defined but not used [-Wunused-const-variable=] 341 | static const u32 a7xx_ahb_registers[] = { | ^~~~~~~~~~~~~~~~~~ vim +/a7xx_gbif_registers +348 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.h 1707add815519d Jordan Crouse 2018-11-02 334 a5ab31767c7782 Sharat Masetty 2019-12-03 335 static const struct a6xx_registers a6xx_vbif_reglist = a5ab31767c7782 Sharat Masetty 2019-12-03 336 REGS(a6xx_vbif_registers, 0, 0); a5ab31767c7782 Sharat Masetty 2019-12-03 337 a5ab31767c7782 Sharat Masetty 2019-12-03 338 static const struct a6xx_registers a6xx_gbif_reglist = a5ab31767c7782 Sharat Masetty 2019-12-03 339 REGS(a6xx_gbif_registers, 0, 0); a5ab31767c7782 Sharat Masetty 2019-12-03 340 e997ae5f45caf7 Konrad Dybcio 2023-09-25 @341 static const u32 a7xx_ahb_registers[] = { e997ae5f45caf7 Konrad Dybcio 2023-09-25 342 /* RBBM_STATUS */ e997ae5f45caf7 Konrad Dybcio 2023-09-25 343 0x210, 0x210, e997ae5f45caf7 Konrad Dybcio 2023-09-25 344 /* RBBM_STATUS2-3 */ e997ae5f45caf7 Konrad Dybcio 2023-09-25 345 0x212, 0x213, e997ae5f45caf7 Konrad Dybcio 2023-09-25 346 }; e997ae5f45caf7 Konrad Dybcio 2023-09-25 347 e997ae5f45caf7 Konrad Dybcio 2023-09-25 @348 static const u32 a7xx_gbif_registers[] = { e997ae5f45caf7 Konrad Dybcio 2023-09-25 349 0x3c00, 0x3c0b, e997ae5f45caf7 Konrad Dybcio 2023-09-25 350 0x3c40, 0x3c42, e997ae5f45caf7 Konrad Dybcio 2023-09-25 351 0x3c45, 0x3c47, e997ae5f45caf7 Konrad Dybcio 2023-09-25 352 0x3c49, 0x3c4a, e997ae5f45caf7 Konrad Dybcio 2023-09-25 353 0x3cc0, 0x3cd1, e997ae5f45caf7 Konrad Dybcio 2023-09-25 354 }; e997ae5f45caf7 Konrad Dybcio 2023-09-25 355
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,