ld.lld: error: undefined symbol: firmware_upload_register

From: kernel test robot
Date: Wed Jul 05 2023 - 19:44:16 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 73a3fcdaa73200e38e38f7e8a32c9b901c5b95b5
commit: 9521875bbe0055805557fff0b08fd9a29d02b7bc cxl: add a firmware update mechanism using the sysfs firmware loader
date: 10 days ago
config: x86_64-randconfig-x016-20230706 (https://download.01.org/0day-ci/archive/20230706/202307060742.vdkvv1Z3-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230706/202307060742.vdkvv1Z3-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307060742.vdkvv1Z3-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: firmware_upload_register
>>> referenced by memdev.c:836 (drivers/cxl/core/memdev.c:836)
>>> drivers/cxl/core/memdev.o:(cxl_memdev_setup_fw_upload) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: firmware_upload_unregister
>>> referenced by memdev.c:824 (drivers/cxl/core/memdev.c:824)
>>> drivers/cxl/core/memdev.o:(cxl_memdev_setup_fw_upload) in archive vmlinux.a
>>> referenced by memdev.c:824 (drivers/cxl/core/memdev.c:824)
>>> drivers/cxl/core/memdev.o:(devm_cxl_remove_fw_upload) in archive vmlinux.a

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