[andersson:wip/sm8350-next-20211215 24/35] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1040:37: warning: unused variable 'sm8350_regdma'

From: kernel test robot
Date: Wed Dec 22 2021 - 02:34:42 EST


tree: https://github.com/andersson/kernel wip/sm8350-next-20211215
head: 525164cde506e9a9353b07816e50e26685e57fe4
commit: 54ccddafd25a1a96ca276ffe86c96c41fcc98b80 [24/35] drm/msm/dpu: Fix typo in sm8350 hw_catalog
config: hexagon-randconfig-r041-20211222 (https://download.01.org/0day-ci/archive/20211222/202112221505.c3wIxSKR-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project de4e0195ae1c39f1c3b07834b8e32c113f4f20eb)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/andersson/kernel/commit/54ccddafd25a1a96ca276ffe86c96c41fcc98b80
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson wip/sm8350-next-20211215
git checkout 54ccddafd25a1a96ca276ffe86c96c41fcc98b80
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/msm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1040:37: warning: unused variable 'sm8350_regdma' [-Wunused-const-variable]
static const struct dpu_reg_dma_cfg sm8350_regdma = {
^
1 warning generated.


vim +/sm8350_regdma +1040 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

af776a3e1c304bf Jonathan Marek 2020-07-10 1039
2fee5af852f1b5e Robert Foss 2021-06-16 @1040 static const struct dpu_reg_dma_cfg sm8350_regdma = {
2fee5af852f1b5e Robert Foss 2021-06-16 1041 .base = 0x0,
2fee5af852f1b5e Robert Foss 2021-06-16 1042 .version = 0x00020000,
2fee5af852f1b5e Robert Foss 2021-06-16 1043 .trigger_sel_off = 0x119c,
2fee5af852f1b5e Robert Foss 2021-06-16 1044 .xin_id = 7,
2fee5af852f1b5e Robert Foss 2021-06-16 1045 .clk_ctrl = DPU_CLK_CTRL_REG_DMA,
2fee5af852f1b5e Robert Foss 2021-06-16 1046 };
2fee5af852f1b5e Robert Foss 2021-06-16 1047

:::::: The code at line 1040 was first introduced by commit
:::::: 2fee5af852f1b5e0cfacae8782b09c0a888b3488 drm/msm/dpu: Add SM8350 to hw catalog

:::::: TO: Robert Foss <robert.foss@xxxxxxxxxx>
:::::: CC: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx