[dtor-input:next 34/37] drivers/input/keyboard/mtk-pmic-keys.c:93:36: error: 'MT6359_TOPSTATUS' undeclared here (not in a function); did you mean 'MT6358_TOPSTATUS'?
From: kernel test robot <hidden>
Date: 2022-05-01 16:40:49
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next head: 75e97ccaf557d09c5e176d137fde6fcedc35a150 commit: 0f97adf6431456cd8155cf6fa803ed5bf441444c [34/37] Input: mtk-pmic-keys - add support for MT6359 config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20220502/202205020026.xdvsARvi-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.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://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?id=0f97adf6431456cd8155cf6fa803ed5bf441444c git remote add dtor-input https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git git fetch --no-tags dtor-input next git checkout 0f97adf6431456cd8155cf6fa803ed5bf441444c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/input/keyboard/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):
quoted
drivers/input/keyboard/mtk-pmic-keys.c:93:36: error: 'MT6359_TOPSTATUS' undeclared here (not in a function); did you mean 'MT6358_TOPSTATUS'?
93 | MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS,
| ^~~~~~~~~~~~~~~~
drivers/input/keyboard/mtk-pmic-keys.c:48:35: note: in definition of macro 'MTK_PMIC_KEYS_REGS'
48 | .deb_reg = _deb_reg, \
| ^~~~~~~~quoted
drivers/input/keyboard/mtk-pmic-keys.c:98:25: error: 'MT6359_TOP_RST_MISC' undeclared here (not in a function); did you mean 'MT6358_TOP_RST_MISC'?
98 | .pmic_rst_reg = MT6359_TOP_RST_MISC,
| ^~~~~~~~~~~~~~~~~~~
| MT6358_TOP_RST_MISC
vim +93 drivers/input/keyboard/mtk-pmic-keys.c
90
91 static const struct mtk_pmic_keys_pdata mt6359_pdata = {
92 .keys_regs[MTK_PMIC_PWRKEY_INDEX] =
> 93 MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS,
94 0x2, MT6359_PSC_TOP_INT_CON0, 0x5),
95 .keys_regs[MTK_PMIC_HOMEKEY_INDEX] =
96 MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS,
97 0x8, MT6359_PSC_TOP_INT_CON0, 0xa),
> 98 .pmic_rst_reg = MT6359_TOP_RST_MISC,
99 .has_key_release_irqs = true,
100 };
101
--
0-DAY CI Kernel Test Service
https://01.org/lkp