All of lore.kernel.org
 help / color / mirror / Atom feed
* [jgunthorpe:iommufd_dmabuf 14/28] drivers/vfio/pci/vfio_pci_core.c:2593:5: error: expected identifier or '('
@ 2025-10-19  7:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-19  7:15 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/jgunthorpe/linux iommufd_dmabuf
head:   fa05815572860da32b9145bb5e396a511cc081a9
commit: 7323ffb6a7a00fcc9c21bcb5ded7119da356110c [14/28] Make  vfio_pci_core_get_dmabuf_phys()
config: loongarch-randconfig-001-20251019 (https://download.01.org/0day-ci/archive/20251019/202510191531.msEdR0Ri-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251019/202510191531.msEdR0Ri-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/202510191531.msEdR0Ri-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/vfio/pci/vfio_pci_core.c:2593:5: error: expected identifier or '('
    2593 | int vfio_pci_core_get_dmabuf_phys(struct vfio_pci_core_device *vdev,
         |     ^
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                ^
>> drivers/vfio/pci/vfio_pci_core.c:2593:5: error: expected ')'
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                ^
   drivers/vfio/pci/vfio_pci_core.c:2593:5: note: to match this '('
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:15: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |               ^
>> drivers/vfio/pci/vfio_pci_core.c:2593:5: error: expected ')'
    2593 | int vfio_pci_core_get_dmabuf_phys(struct vfio_pci_core_device *vdev,
         |     ^
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                       ^
   drivers/vfio/pci/vfio_pci_core.c:2593:5: note: to match this '('
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |              ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: error: expected identifier or '('
    2602 | EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
         |                   ^
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: error: expected ')'
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: note: to match this '('
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:15: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |               ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: error: expected ')'
    2602 | EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
         |                   ^
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                       ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: note: to match this '('
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |              ^
>> drivers/vfio/pci/vfio_pci_core.c:2602:1: error: pasting formed '__addressable_(', an invalid preprocessing token
    2602 | EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
         | ^
   include/linux/export.h:90:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:86:38: note: expanded from macro '_EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:77:2: note: expanded from macro '__EXPORT_SYMBOL'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:286:14: note: expanded from macro '___ADDRESSABLE'
     286 |         __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym;
         |                     ^
   include/linux/compiler_types.h:84:22: note: expanded from macro '__PASTE'
      84 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^
   include/linux/compiler_types.h:83:24: note: expanded from macro '___PASTE'
      83 | #define ___PASTE(a,b) a##b
         |                        ^
>> drivers/vfio/pci/vfio_pci_core.c:2602:19: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    2602 | EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
         |                   ^
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:16: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: error: expected ')'
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:23: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |                       ^
   drivers/vfio/pci/vfio_pci_core.c:2602:19: note: to match this '('
   include/linux/vfio_pci_core.h:75:39: note: expanded from macro 'vfio_pci_core_get_dmabuf_phys'
      75 | #define vfio_pci_core_get_dmabuf_phys NULL
         |                                       ^
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
       8 | #define NULL ((void *)0)
         |              ^
>> drivers/vfio/pci/vfio_pci_core.c:2602:1: error: pasting formed ')569', an invalid preprocessing token
    2602 | EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
         | ^
   include/linux/export.h:90:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:86:38: note: expanded from macro '_EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:77:2: note: expanded from macro '__EXPORT_SYMBOL'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:166:29: note: expanded from macro '__UNIQUE_ID'
     166 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                             ^
   include/linux/compiler_types.h:84:22: note: expanded from macro '__PASTE'
      84 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^
   include/linux/compiler_types.h:83:24: note: expanded from macro '___PASTE'
      83 | #define ___PASTE(a,b) a##b
         |                        ^
>> drivers/vfio/pci/vfio_pci_core.c:2602:1: error: expected function body after function declarator
   include/linux/export.h:90:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:86:38: note: expanded from macro '_EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:77:2: note: expanded from macro '__EXPORT_SYMBOL'
      77 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:286:2: note: expanded from macro '___ADDRESSABLE'
     286 |         __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym;
         |         ^
   include/linux/compiler.h:166:68: note: expanded from macro '__UNIQUE_ID'
     166 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                                                                    ^
   <scratch space>:6:1: note: expanded from here
       6 | 569
         | ^
>> drivers/vfio/pci/vfio_pci_core.c:2602:1: error: pasting formed '__export_symbol_(', an invalid preprocessing token
   include/linux/export.h:90:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      90 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:86:38: note: expanded from macro '_EXPORT_SYMBOL'
      86 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:79:18: note: expanded from macro '__EXPORT_SYMBOL'
      79 |         asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
         |                         ^
   include/linux/export.h:35:18: note: expanded from macro '___EXPORT_SYMBOL'
      35 |         __export_symbol_##sym:                  ASM_NL  \
         |                         ^
   12 errors generated.


vim +2593 drivers/vfio/pci/vfio_pci_core.c

c61302aa48f7c4 Yishai Hadas    2021-08-26  2591  
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2592  #if !IS_ENABLED(CONFIG_VFIO_PCI_DMABUF)
8c6218f59ae87a Jason Gunthorpe 2025-10-18 @2593  int vfio_pci_core_get_dmabuf_phys(struct vfio_pci_core_device *vdev,
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2594  				  struct p2pdma_provider **provider,
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2595  				  unsigned int region_index,
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2596  				  struct phys_vec *phys_vec,
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2597  				  struct vfio_region_dma_range *dma_ranges,
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2598  				  size_t nr_ranges)
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2599  {
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2600  	return -EOPNOTSUPP;
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2601  }
8c6218f59ae87a Jason Gunthorpe 2025-10-18 @2602  EXPORT_SYMBOL_GPL(vfio_pci_core_get_dmabuf_phys);
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2603  #endif
8c6218f59ae87a Jason Gunthorpe 2025-10-18  2604  

:::::: The code at line 2593 was first introduced by commit
:::::: 8c6218f59ae87a79a7ed6c38409afc86d29adcfd Make vfio dmabuf use an ops for getting the phys ranges

:::::: TO: Jason Gunthorpe <jgg@nvidia.com>
:::::: CC: Jason Gunthorpe <jgg@nvidia.com>

-- 
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-10-19  7:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19  7:15 [jgunthorpe:iommufd_dmabuf 14/28] drivers/vfio/pci/vfio_pci_core.c:2593:5: error: expected identifier or '(' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.