mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: kbuild-all@lists.01.org,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
	linux-kernel@vger.kernel.org, Hector Martin <marcan@marcan.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'
Date: Mon, 21 Feb 2022 21:28:36 +0800	[thread overview]
Message-ID: <202202212127.pkVd6xaZ-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-02-21 13:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202212127.pkVd6xaZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gwml@vger.gnuweeb.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcan@marcan.st \
    --cc=sven@svenpeter.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®