From: kernel test robot <lkp@intel.com>
To: kaixuxia@tencent.com, frankjpliu@tencent.com, kasong@tencent.com,
sagazchen@tencent.com, kernelxing@tencent.com,
aurelianliu@tencent.com, deshengwu@tencent.com,
flyingpeng@tencent.com, jason.zeng@intel.com, wu.zheng@intel.com,
yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1010/2443] kernel/dma/mapping.c:557:29: sparse: sparse: macro "alloc_pages" passed 5 arguments, but takes just 2
Date: Fri, 27 Sep 2024 10:32:03 +0800 [thread overview]
Message-ID: <202409271048.s3ChTLGD-lkp@intel.com> (raw)
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head: 9d665359e14c559b74a94a55057e9c0fbd31a81a
commit: 0764432a5ada7a09ce36b0e980ec40340fae2a30 [1010/2443] dma-mapping: add a new dma_alloc_pages API
config: x86_64-randconfig-122-20240925 (https://download.01.org/0day-ci/archive/20240927/202409271048.s3ChTLGD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240927/202409271048.s3ChTLGD-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/202409271048.s3ChTLGD-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/dma/mapping.c:557:29: sparse: sparse: macro "alloc_pages" passed 5 arguments, but takes just 2
vim +/alloc_pages +557 kernel/dma/mapping.c
541
542 struct page *dma_alloc_pages(struct device *dev, size_t size,
543 dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp)
544 {
545 const struct dma_map_ops *ops = get_dma_ops(dev);
546 struct page *page;
547
548 if (WARN_ON_ONCE(!dev->coherent_dma_mask))
549 return NULL;
550 if (WARN_ON_ONCE(gfp & (__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM)))
551 return NULL;
552
553 size = PAGE_ALIGN(size);
554 if (dma_alloc_direct(dev, ops))
555 page = dma_direct_alloc_pages(dev, size, dma_handle, dir, gfp);
556 else if (ops->alloc_pages)
> 557 page = ops->alloc_pages(dev, size, dma_handle, dir, gfp);
558 else
559 return NULL;
560
561 debug_dma_map_page(dev, page, 0, size, dir, *dma_handle);
562
563 return page;
564 }
565 EXPORT_SYMBOL_GPL(dma_alloc_pages);
566
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-27 2:32 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=202409271048.s3ChTLGD-lkp@intel.com \
--to=lkp@intel.com \
--cc=aurelianliu@tencent.com \
--cc=deshengwu@tencent.com \
--cc=flyingpeng@tencent.com \
--cc=frankjpliu@tencent.com \
--cc=jason.zeng@intel.com \
--cc=kaixuxia@tencent.com \
--cc=kasong@tencent.com \
--cc=kernelxing@tencent.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pei.p.jia@intel.com \
--cc=sagazchen@tencent.com \
--cc=wu.zheng@intel.com \
--cc=yingbao.jia@intel.com \
/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.