* [PATCH] drm/msm/a6xx: Remove some unused functions
@ 2023-10-12 2:44 Jiapeng Chong
2023-10-18 9:43 ` kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2023-10-12 2:44 UTC (permalink / raw)
To: robdclark
Cc: quic_abhinavk, dmitry.baryshkov, sean, marijn.suijten, airlied,
daniel, linux-arm-msm, dri-devel, freedreno, linux-kernel,
Jiapeng Chong, Abaci Robot
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(-)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/msm/a6xx: Remove some unused functions
2023-10-12 2:44 [PATCH] drm/msm/a6xx: Remove some unused functions Jiapeng Chong
@ 2023-10-18 9:43 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-10-18 9:43 UTC (permalink / raw)
To: Jiapeng Chong, robdclark
Cc: oe-kbuild-all, freedreno, Jiapeng Chong, sean, Abaci Robot,
quic_abhinavk, dri-devel, linux-kernel, linux-arm-msm,
dmitry.baryshkov, marijn.suijten
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
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-18 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 2:44 [PATCH] drm/msm/a6xx: Remove some unused functions Jiapeng Chong
2023-10-18 9:43 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®