Hi Yongqiang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc5 next-20210810]
[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]
url:
https://github.com/0day-ci/linux/commits/Yongqiang-Niu/drm-mediatek-add-s...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
9e723c5380c6e14fb91a8b6950563d040674afdb
config: arc-randconfig-r043-20210810 (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.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
#
https://github.com/0day-ci/linux/commit/5a11bb954f493e0c3d3dcd2f6d86abb8e...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Yongqiang-Niu/drm-mediatek-add-support-for-mediatek-SOC-MT8192/20210811-101315
git checkout 5a11bb954f493e0c3d3dcd2f6d86abb8e11028a6
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir
ARCH=arc SHELL=/bin/bash drivers/soc/mediatek/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/soc/mediatek/mtk-mutex.c:235:3: error:
'DDP_COMPONENT_POSTMASK0' undeclared here (not in a function); did you mean
'DDP_COMPONENT_WDMA0'?
235 | [DDP_COMPONENT_POSTMASK0] =
MT8192_MUTEX_MOD_DISP_POSTMASK0,
| ^~~~~~~~~~~~~~~~~~~~~~~
| DDP_COMPONENT_WDMA0
> drivers/soc/mediatek/mtk-mutex.c:235:3: error: array index in
initializer not of integer type
drivers/soc/mediatek/mtk-mutex.c:235:3: note:
(near initialization for 'mt8192_mutex_mod')
> drivers/soc/mediatek/mtk-mutex.c:238:3: error:
'DDP_COMPONENT_OVL_2L2' undeclared here (not in a function); did you mean
'DDP_COMPONENT_OVL_2L1'?
238 | [DDP_COMPONENT_OVL_2L2] =
MT8192_MUTEX_MOD_DISP_OVL2_2L,
| ^~~~~~~~~~~~~~~~~~~~~
| DDP_COMPONENT_OVL_2L1
drivers/soc/mediatek/mtk-mutex.c:238:3: error: array index in initializer not of
integer type
drivers/soc/mediatek/mtk-mutex.c:238:3: note: (near initialization for
'mt8192_mutex_mod')
> drivers/soc/mediatek/mtk-mutex.c:240:3: error:
'DDP_COMPONENT_RDMA4' undeclared here (not in a function); did you mean
'DDP_COMPONENT_RDMA2'?
240 | [DDP_COMPONENT_RDMA4] =
MT8192_MUTEX_MOD_DISP_RDMA4,
| ^~~~~~~~~~~~~~~~~~~
| DDP_COMPONENT_RDMA2
drivers/soc/mediatek/mtk-mutex.c:240:3: error: array index in initializer not of
integer type
drivers/soc/mediatek/mtk-mutex.c:240:3: note: (near initialization for
'mt8192_mutex_mod')
vim +235 drivers/soc/mediatek/mtk-mutex.c
228
229 static const unsigned int mt8192_mutex_mod[DDP_COMPONENT_ID_MAX] = {
230 [DDP_COMPONENT_AAL0] = MT8192_MUTEX_MOD_DISP_AAL0,
231 [DDP_COMPONENT_CCORR] = MT8192_MUTEX_MOD_DISP_CCORR0,
232 [DDP_COMPONENT_COLOR0] = MT8192_MUTEX_MOD_DISP_COLOR0,
233 [DDP_COMPONENT_DITHER] = MT8192_MUTEX_MOD_DISP_DITHER0,
234 [DDP_COMPONENT_GAMMA] = MT8192_MUTEX_MOD_DISP_GAMMA0,
235 [DDP_COMPONENT_POSTMASK0] = MT8192_MUTEX_MOD_DISP_POSTMASK0,
236 [DDP_COMPONENT_OVL0] = MT8192_MUTEX_MOD_DISP_OVL0,
237 [DDP_COMPONENT_OVL_2L0] = MT8192_MUTEX_MOD_DISP_OVL0_2L,
238 [DDP_COMPONENT_OVL_2L2] = MT8192_MUTEX_MOD_DISP_OVL2_2L,
239 [DDP_COMPONENT_RDMA0] = MT8192_MUTEX_MOD_DISP_RDMA0,
240 [DDP_COMPONENT_RDMA4] = MT8192_MUTEX_MOD_DISP_RDMA4,
241 };
242
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org