[andersson:tuxsuite 33/42] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1405:37: warning: unused variable 'sm8350_regdma'

From: kernel test robot
Date: Wed Mar 09 2022 - 01:10:03 EST


tree: https://github.com/andersson/kernel tuxsuite
head: d1c9502cfe160da3c09a0f379147f16d559e4ab7
commit: 263030b81c7535a746e774fd5fcba7b5e30b3180 [33/42] drm/msm/dpu: Fix typo in sm8350 hw_catalog
config: riscv-randconfig-r042-20220307 (https://download.01.org/0day-ci/archive/20220309/202203091451.k8xPf3xI-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/andersson/kernel/commit/263030b81c7535a746e774fd5fcba7b5e30b3180
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson tuxsuite
git checkout 263030b81c7535a746e774fd5fcba7b5e30b3180
# 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=riscv SHELL=/bin/bash drivers/clk/ drivers/dma/ 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:1405:37: warning: unused variable 'sm8350_regdma' [-Wunused-const-variable]
static const struct dpu_reg_dma_cfg sm8350_regdma = {
^
1 warning generated.


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

af776a3e1c304bf Jonathan Marek 2020-07-10 1404
b3a92bed29f97a8 Robert Foss 2021-06-16 @1405 static const struct dpu_reg_dma_cfg sm8350_regdma = {
b3a92bed29f97a8 Robert Foss 2021-06-16 1406 .base = 0x0,
b3a92bed29f97a8 Robert Foss 2021-06-16 1407 .version = 0x00020000,
b3a92bed29f97a8 Robert Foss 2021-06-16 1408 .trigger_sel_off = 0x119c,
b3a92bed29f97a8 Robert Foss 2021-06-16 1409 .xin_id = 7,
b3a92bed29f97a8 Robert Foss 2021-06-16 1410 .clk_ctrl = DPU_CLK_CTRL_REG_DMA,
b3a92bed29f97a8 Robert Foss 2021-06-16 1411 };
b3a92bed29f97a8 Robert Foss 2021-06-16 1412

:::::: The code at line 1405 was first introduced by commit
:::::: b3a92bed29f97a812160786819bf18c2cc590cc9 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