Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Leon Romanovsky <leonro@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [leon-rdma:rdma-next 51/75] drivers/vfio/pci/mlx5/cmd.c:502:12: error: call to undeclared function 'alloc_pages_bulk_array'; ISO C99 and later do not support implicit function declarations
Date: Tue, 4 Feb 2025 04:13:24 +0800	[thread overview]
Message-ID: <202502040442.QAAEuVfX-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head:   0fe95c8bb34ec3d2279ba62ae1b185cc1e607d42
commit: be85f7333a1aeed1715592f936dd55c8282aaa94 [51/75] vfio/mlx5: Enable the DMA link API
config: i386-buildonly-randconfig-003-20250204 (https://download.01.org/0day-ci/archive/20250204/202502040442.QAAEuVfX-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250204/202502040442.QAAEuVfX-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502040442.QAAEuVfX-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/vfio/pci/mlx5/cmd.c:502:12: error: call to undeclared function 'alloc_pages_bulk_array'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     502 |                 filled = alloc_pages_bulk_array(GFP_KERNEL_ACCOUNT,
         |                          ^
   drivers/vfio/pci/mlx5/cmd.c:502:12: note: did you mean 'alloc_pages_bulk_noprof'?
   include/linux/gfp.h:213:15: note: 'alloc_pages_bulk_noprof' declared here
     213 | unsigned long alloc_pages_bulk_noprof(gfp_t gfp, int preferred_nid,
         |               ^
   1 error generated.


vim +/alloc_pages_bulk_array +502 drivers/vfio/pci/mlx5/cmd.c

   491	
   492	static int mlx5vf_add_pages(struct page ***page_list, unsigned int npages)
   493	{
   494		unsigned int filled, done = 0;
   495		int i;
   496	
   497		*page_list = kvcalloc(npages, sizeof(struct page *), GFP_KERNEL_ACCOUNT);
   498		if (!*page_list)
   499			return -ENOMEM;
   500	
   501		for (;;) {
 > 502			filled = alloc_pages_bulk_array(GFP_KERNEL_ACCOUNT,
   503							npages - done,
   504							*page_list + done);
   505			if (!filled)
   506				goto err;
   507	
   508			done += filled;
   509			if (done == npages)
   510				break;
   511		}
   512	
   513		return 0;
   514	
   515	err:
   516		for (i = 0; i < done; i++)
   517			__free_page(*page_list[i]);
   518	
   519		kvfree(*page_list);
   520		*page_list = NULL;
   521		return -ENOMEM;
   522	}
   523	

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

                 reply	other threads:[~2025-02-03 20:14 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=202502040442.QAAEuVfX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=leonro@nvidia.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.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