[clk:clk-mediatek 80/82] drivers/clk/mediatek/clk-mt8188-wpe.c:91:31: error: 'clk_mt8188_vpp1_id_table' undeclared here (not in a function)

kernel test robot lkp at intel.com
Fri Mar 31 19:43:55 PDT 2023


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-mediatek
head:   0d2f2cefba64729a0730ce183ad58cf3e7929b94
commit: f42b9e9a43e300ef94c3dc0381cc60f50e46e1fe [80/82] clk: mediatek: Add MT8188 wpesys clock support
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20230401/202304011039.UBDX1UOT-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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/clk/linux.git/commit/?id=f42b9e9a43e300ef94c3dc0381cc60f50e46e1fe
        git remote add clk https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git
        git fetch --no-tags clk clk-mediatek
        git checkout f42b9e9a43e300ef94c3dc0381cc60f50e46e1fe
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/clk/mediatek/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304011039.UBDX1UOT-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/device/driver.h:21,
                    from include/linux/device.h:32,
                    from include/linux/platform_device.h:13,
                    from drivers/clk/mediatek/clk-mt8188-wpe.c:9:
>> drivers/clk/mediatek/clk-mt8188-wpe.c:91:31: error: 'clk_mt8188_vpp1_id_table' undeclared here (not in a function)
      91 | MODULE_DEVICE_TABLE(platform, clk_mt8188_vpp1_id_table);
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:243:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
     243 | extern typeof(name) __mod_##type##__##name##_device_table               \
         |               ^~~~
>> include/linux/module.h:243:21: error: '__mod_platform__clk_mt8188_vpp1_id_table_device_table' aliased to undefined symbol 'clk_mt8188_vpp1_id_table'
     243 | extern typeof(name) __mod_##type##__##name##_device_table               \
         |                     ^~~~~~
   drivers/clk/mediatek/clk-mt8188-wpe.c:91:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
      91 | MODULE_DEVICE_TABLE(platform, clk_mt8188_vpp1_id_table);
         | ^~~~~~~~~~~~~~~~~~~


vim +/clk_mt8188_vpp1_id_table +91 drivers/clk/mediatek/clk-mt8188-wpe.c

    85	
    86	static const struct of_device_id of_match_clk_mt8188_wpe[] = {
    87		{ .compatible = "mediatek,mt8188-wpesys", .data = &wpe_top_desc },
    88		{ .compatible = "mediatek,mt8188-wpesys-vpp0", .data = &wpe_vpp0_desc },
    89		{ /* sentinel */ }
    90	};
  > 91	MODULE_DEVICE_TABLE(platform, clk_mt8188_vpp1_id_table);
    92	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list