[andersson:wip/sc8280xp-next-20220720-nonworking-gpu 9/143] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:1535:37: warning: unused variable 'sc8280xp_regdma'

From: kernel test robot
Date: Sat Aug 13 2022 - 14:45:27 EST


tree: https://github.com/andersson/kernel wip/sc8280xp-next-20220720-nonworking-gpu
head: 50749fc985b5eb2036a6139b10182a05e42ce4b0
commit: 4dc0d00149b8260bcbe5fd583b44ff1b1bbac3cd [9/143] drm/msm/dpu: Introduce sc8280xp
config: arm-defconfig (https://download.01.org/0day-ci/archive/20220814/202208140224.llj1D2O5-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 3329cec2f79185bafd678f310fafadba2a8c76d2)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/andersson/kernel/commit/4dc0d00149b8260bcbe5fd583b44ff1b1bbac3cd
git remote add andersson https://github.com/andersson/kernel
git fetch --no-tags andersson wip/sc8280xp-next-20220720-nonworking-gpu
git checkout 4dc0d00149b8260bcbe5fd583b44ff1b1bbac3cd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/msm/

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

All warnings (new ones prefixed by >>):

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


vim +/sc8280xp_regdma +1535 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

1534
> 1535 static const struct dpu_reg_dma_cfg sc8280xp_regdma = {
1536 .base = 0x0,
1537 .version = 0x00020000,
1538 .trigger_sel_off = 0x119c,
1539 .xin_id = 7,
1540 .clk_ctrl = DPU_CLK_CTRL_REG_DMA,
1541 };
1542

--
0-DAY CI Kernel Test Service
https://01.org/lkp