All of lore.kernel.org
 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:dma-direct-pfn-type 2/5] include/linux/dma-mapping.h:318:30: error: too many arguments to function call, expected 5, have 6
Date: Mon, 16 Jun 2025 18:27:55 +0800	[thread overview]
Message-ID: <202506161804.JCPHPIaZ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-06-16 10:28 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=202506161804.JCPHPIaZ-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 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.