Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [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
@ 2025-02-03 20:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-03 20:13 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all

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

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

only message in thread, other threads:[~2025-02-03 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 20:13 [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 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