lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202212127.pkVd6xaZ-lkp@intel.com>
Date:   Mon, 21 Feb 2022 21:28:36 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sven Peter <sven@...npeter.dev>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Hector Martin <marcan@...can.st>
Subject: [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'

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/202202212127.pkVd6xaZ-lkp@intel.com/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 <lkp@...el.com>

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/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ