GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:axboe/linux-block/m1/2022-02-19 434/552] drivers/nvme/host/apple.c:272: undefined reference to `apple_sart_remove_allowed_region'
@ 2022-02-21 13:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-21 13:28 UTC (permalink / raw)
  To: Sven Peter; +Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Hector Martin

tree:   https://github.com/ammarfaizi2/linux-block axboe/linux-block/m1/2022-02-19
head:   b781e0ccdc0c9a931571d15db09d45b7258b9905
commit: 493f6321556155242b30f79a6aa6afa58d5ff28d [434/552] WIP: nvme-apple: add initial Apple SoC NVMe driver
config: microblaze-randconfig-p001-20220220 (https://download.01.org/0day-ci/archive/20220221/[email protected]/config)
compiler: microblaze-linux-gcc (GCC) 11.2.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/ammarfaizi2/linux-block/commit/493f6321556155242b30f79a6aa6afa58d5ff28d
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block axboe/linux-block/m1/2022-02-19
        git checkout 493f6321556155242b30f79a6aa6afa58d5ff28d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_destroy':
>> drivers/nvme/host/apple.c:272: undefined reference to `apple_sart_remove_allowed_region'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_sart_dma_setup':
>> drivers/nvme/host/apple.c:255: undefined reference to `apple_sart_add_allowed_region'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_probe':
>> drivers/nvme/host/apple.c:1341: undefined reference to `apple_sart_get'
>> microblaze-linux-ld: drivers/nvme/host/apple.c:1393: undefined reference to `devm_apple_rtkit_init'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_disable':
>> drivers/nvme/host/apple.c:800: undefined reference to `apple_rtkit_is_crashed'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_shutdown':
>> drivers/nvme/host/apple.c:1436: undefined reference to `apple_rtkit_is_running'
>> microblaze-linux-ld: drivers/nvme/host/apple.c:1437: undefined reference to `apple_rtkit_shutdown'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_remove':
   drivers/nvme/host/apple.c:1425: undefined reference to `apple_rtkit_is_running'
   microblaze-linux-ld: drivers/nvme/host/apple.c:1426: undefined reference to `apple_rtkit_shutdown'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_reset_work':
   drivers/nvme/host/apple.c:984: undefined reference to `apple_rtkit_is_crashed'
>> microblaze-linux-ld: drivers/nvme/host/apple.c:995: undefined reference to `apple_rtkit_is_running'
   microblaze-linux-ld: drivers/nvme/host/apple.c:997: undefined reference to `apple_rtkit_shutdown'
>> microblaze-linux-ld: drivers/nvme/host/apple.c:1009: undefined reference to `apple_rtkit_reinit'
>> microblaze-linux-ld: drivers/nvme/host/apple.c:1020: undefined reference to `apple_rtkit_boot'
   microblaze-linux-ld: drivers/nvme/host/apple.o: in function `apple_nvme_timeout':
   drivers/nvme/host/apple.c:899: undefined reference to `apple_rtkit_is_crashed'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for NFSD_V2_ACL
   Depends on NETWORK_FILESYSTEMS && NFSD
   Selected by
   - NFSD_V3_ACL && NETWORK_FILESYSTEMS


vim +272 drivers/nvme/host/apple.c

   241	
   242	static int apple_nvme_sart_dma_setup(void *cookie, struct apple_rtkit_shmem *bfr,
   243					     dma_addr_t iova, size_t size)
   244	{
   245		struct apple_nvme *anv = cookie;
   246		int ret;
   247	
   248		if (iova)
   249			return -EINVAL;
   250	
   251		bfr->buffer = dma_alloc_coherent(anv->dev, size, &iova, GFP_KERNEL);
   252		if (!bfr->buffer)
   253			return -ENOMEM;
   254	
 > 255		ret = apple_sart_add_allowed_region(anv->sart, iova, size);
   256		if (ret) {
   257			dma_free_coherent(anv->dev, size, bfr->buffer, iova);
   258			bfr->buffer = NULL;
   259			return -ENOMEM;
   260		}
   261	
   262		bfr->size = size;
   263		bfr->iova = iova;
   264	
   265		return 0;
   266	}
   267	
   268	static void apple_nvme_sart_dma_destroy(void *cookie, struct apple_rtkit_shmem *bfr)
   269	{
   270		struct apple_nvme *anv = cookie;
   271	
 > 272		apple_sart_remove_allowed_region(anv->sart, bfr->iova, bfr->size);
   273		dma_free_coherent(anv->dev, bfr->size, bfr->buffer, bfr->iova);
   274	}
   275	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-21 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 13:28 [ammarfaizi2-block:axboe/linux-block/m1/2022-02-19 434/552] drivers/nvme/host/apple.c:272: undefined reference to `apple_sart_remove_allowed_region' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox