drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: warning: initialized field overwritten

From: kernel test robot
Date: Fri Sep 04 2020 - 01:10:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 59126901f200f5fc907153468b03c64e0081b6e6
commit: af776a3e1c304bf0409106cd2306173885e415f2 drm/msm/dpu: add SM8250 to hw catalog
date: 5 weeks ago
config: arm64-randconfig-r013-20200904 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git checkout af776a3e1c304bf0409106cd2306173885e415f2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64

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:122:19: warning: initialized field overwritten [-Woverride-init]
122 | .max_linewidth = 4096,
| ^~~~
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:122:19: note: (near initialization for 'sm8250_dpu_caps.max_linewidth')
In file included from drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c:11:
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog_format.h:7:23: warning: 'qcom_compressed_supported_formats' defined but not used [-Wunused-const-variable=]
7 | static const uint32_t qcom_compressed_supported_formats[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af776a3e1c304bf0409106cd2306173885e415f2
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout af776a3e1c304bf0409106cd2306173885e415f2
vim +122 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

110
111 static const struct dpu_caps sm8250_dpu_caps = {
112 .max_mixer_width = DEFAULT_DPU_OUTPUT_LINE_WIDTH,
113 .max_mixer_blendstages = 0xb,
114 .max_linewidth = 4096,
115 .qseed_type = DPU_SSPP_SCALER_QSEED3, /* TODO: qseed3 lite */
116 .smart_dma_rev = DPU_SSPP_SMART_DMA_V2, /* TODO: v2.5 */
117 .ubwc_version = DPU_HW_UBWC_VER_40,
118 .has_src_split = true,
119 .has_dim_layer = true,
120 .has_idle_pc = true,
121 .has_3d_merge = true,
> 122 .max_linewidth = 4096,
123 .pixel_ram_size = DEFAULT_PIXEL_RAM_SIZE,
124 };
125

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

Attachment: .config.gz
Description: application/gzip