[PATCH 1/4] thunderbolt: add platform nhi driver

kernel test robot lkp at intel.com
Fri Oct 30 20:41:44 PDT 2026


Hi Chunfeng,

kernel test robot noticed the following build errors:

[auto build test ERROR on westeri-thunderbolt/next]
[also build test ERROR on linus/master v7.3 next-20261030]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Chunfeng-Yun/thunderbolt-add-platform-nhi-driver/20261030-162536
base:   https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git next
patch link:    https://lore.kernel.org/r/20261030082539.1208733-2-chunfeng.yun%40mediatek.com
patch subject: [PATCH 1/4] thunderbolt: add platform nhi driver
config: arm64-randconfig-1003-20261031 (https://download.01.org/0day-ci/archive/20261031/202610311159.EWCMURna-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261031/202610311159.EWCMURna-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610311159.EWCMURna-lkp@intel.com/

All errors (new ones prefixed by >>):

   aarch64-linux-ld: drivers/thunderbolt/domain.o: in function `tb_domain_init':
>> drivers/thunderbolt/domain.c:909: multiple definition of `init_module'; drivers/thunderbolt/pci.o:drivers/thunderbolt/pci.c:753: first defined here
   aarch64-linux-ld: drivers/thunderbolt/domain.o: in function `tb_domain_exit':
>> drivers/thunderbolt/domain.c:935: multiple definition of `cleanup_module'; drivers/thunderbolt/pci.o:drivers/thunderbolt/pci.c:753: first defined here
   aarch64-linux-ld: drivers/thunderbolt/plat.o: in function `nhi_plat_driver_init':
   drivers/thunderbolt/plat.c:152: multiple definition of `init_module'; drivers/thunderbolt/pci.o:drivers/thunderbolt/pci.c:753: first defined here
   aarch64-linux-ld: drivers/thunderbolt/plat.o: in function `nhi_plat_driver_exit':
   drivers/thunderbolt/plat.c:152: multiple definition of `cleanup_module'; drivers/thunderbolt/pci.o:drivers/thunderbolt/pci.c:753: first defined here


vim +909 drivers/thunderbolt/domain.c

a8937f35cf39c3 Mika Westerberg 2025-11-06  907  
4bef343876ebc1 Chunfeng Yun    2026-10-30  908  static int __init tb_domain_init(void)
9d3cce0b613689 Mika Westerberg 2017-06-06 @909  {
d1ff70241a2751 Mika Westerberg 2017-10-02  910  	int ret;
d1ff70241a2751 Mika Westerberg 2017-10-02  911  
cba57ed6f1e752 Mika Westerberg 2025-08-12  912  	tb_configfs_init();
54e418106c765c Gil Fine        2020-06-29  913  	tb_debugfs_init();
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  914  	tb_acpi_init();
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  915  
d1ff70241a2751 Mika Westerberg 2017-10-02  916  	ret = tb_xdomain_init();
d1ff70241a2751 Mika Westerberg 2017-10-02  917  	if (ret)
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  918  		goto err_acpi;
d1ff70241a2751 Mika Westerberg 2017-10-02  919  	ret = bus_register(&tb_bus_type);
d1ff70241a2751 Mika Westerberg 2017-10-02  920  	if (ret)
54e418106c765c Gil Fine        2020-06-29  921  		goto err_xdomain;
54e418106c765c Gil Fine        2020-06-29  922  
54e418106c765c Gil Fine        2020-06-29  923  	return 0;
54e418106c765c Gil Fine        2020-06-29  924  
54e418106c765c Gil Fine        2020-06-29  925  err_xdomain:
d1ff70241a2751 Mika Westerberg 2017-10-02  926  	tb_xdomain_exit();
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  927  err_acpi:
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  928  	tb_acpi_exit();
54e418106c765c Gil Fine        2020-06-29  929  	tb_debugfs_exit();
d1ff70241a2751 Mika Westerberg 2017-10-02  930  
d1ff70241a2751 Mika Westerberg 2017-10-02  931  	return ret;
9d3cce0b613689 Mika Westerberg 2017-06-06  932  }
9d3cce0b613689 Mika Westerberg 2017-06-06  933  
4bef343876ebc1 Chunfeng Yun    2026-10-30  934  static void __exit tb_domain_exit(void)
9d3cce0b613689 Mika Westerberg 2017-06-06 @935  {
9d3cce0b613689 Mika Westerberg 2017-06-06  936  	bus_unregister(&tb_bus_type);
9d3cce0b613689 Mika Westerberg 2017-06-06  937  	ida_destroy(&tb_domain_ida);
719a5fe87ecd71 Mika Westerberg 2020-03-05  938  	tb_nvm_exit();
d1ff70241a2751 Mika Westerberg 2017-10-02  939  	tb_xdomain_exit();
ccc5cb8ad5d18e Rajmohan Mani   2021-04-01  940  	tb_acpi_exit();
54e418106c765c Gil Fine        2020-06-29  941  	tb_debugfs_exit();
cba57ed6f1e752 Mika Westerberg 2025-08-12  942  	tb_configfs_exit();
9d3cce0b613689 Mika Westerberg 2017-06-06  943  }
4bef343876ebc1 Chunfeng Yun    2026-10-30  944  

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



More information about the Linux-mediatek mailing list