* [leon-rdma:dma-direct-pfn-type 2/5] include/linux/dma-mapping.h:318:30: error: too many arguments to function call, expected 5, have 6
@ 2025-06-16 10:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-16 10:27 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 dma-direct-pfn-type
head: 87481a3ed31857c530009e3a934f3b0a5e069f9e
commit: c04b832c0cfbddf0ed0f7c4409d190b85a976ddb [2/5] dma-mapping: Refactor dma_map_page() to rely on physical address
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20250616/202506161804.JCPHPIaZ-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250616/202506161804.JCPHPIaZ-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/202506161804.JCPHPIaZ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:45:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:28:
>> include/linux/dma-mapping.h:318:30: error: too many arguments to function call, expected 5, have 6
317 | return dma_map_phys(dev, page_to_phys(page) + offset, size, dir,
| ~~~~~~~~~~~~
318 | DMA_MAPPING_CPU_HOST, attrs);
| ^~~~~
include/linux/dma-mapping.h:183:26: note: 'dma_map_phys' declared here
183 | static inline dma_addr_t dma_map_phys(struct device *dev, phys_addr_t paddr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
184 | size_t size, enum dma_data_direction dir, unsigned long attrs)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:323:61: error: too many arguments to function call, expected 5, have 6
323 | dma_unmap_phys(dev, addr, size, dir, DMA_MAPPING_CPU_HOST, attrs);
| ~~~~~~~~~~~~~~ ^~~~~
include/linux/dma-mapping.h:188:20: note: 'dma_unmap_phys' declared here
188 | static inline void dma_unmap_phys(struct device *dev, dma_addr_t addr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189 | size_t size, enum dma_data_direction dir, unsigned long attrs)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:7667:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
7667 | preempt_modes[preempt_dynamic_mode] : "undef",
| ^ ~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:7642:1: note: array 'preempt_modes' declared here
7642 | const char *preempt_modes[] = {
| ^
1 warning and 2 errors generated.
vim +318 include/linux/dma-mapping.h
312
313 static inline dma_addr_t dma_map_page_attrs(struct device *dev,
314 struct page *page, size_t offset, size_t size,
315 enum dma_data_direction dir, unsigned long attrs)
316 {
317 return dma_map_phys(dev, page_to_phys(page) + offset, size, dir,
> 318 DMA_MAPPING_CPU_HOST, attrs);
319 }
320 static inline void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr,
321 size_t size, enum dma_data_direction dir, unsigned long attrs)
322 {
323 dma_unmap_phys(dev, addr, size, dir, DMA_MAPPING_CPU_HOST, attrs);
324 }
325
--
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-06-16 10:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 10:27 [leon-rdma:dma-direct-pfn-type 2/5] include/linux/dma-mapping.h:318:30: error: too many arguments to function call, expected 5, have 6 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;
as well as URLs for NNTP newsgroup(s).