* drivers/xen/swiotlb-xen.c:450:3: error: implicit declaration of function 'swiotlb_tbl_sync_single'
@ 2024-03-13 13:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-13 13:29 UTC (permalink / raw)
To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
Cc: oe-kbuild-all
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head: c13208f42a275b32080b8b1f05865c408364ef9f
commit: ee07aa625dbf249381b702591b4722e8308daf59 swiotlb: split swiotlb_tbl_sync_single
date: 9 months ago
config: x86_64-randconfig-001-20240305 (https://download.01.org/0day-ci/archive/20240313/202403132128.fvqwx6Qo-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240313/202403132128.fvqwx6Qo-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/202403132128.fvqwx6Qo-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/xen/swiotlb-xen.c:407:5: error: too many arguments to function call, expected 5, have 6
406 | swiotlb_tbl_unmap_single(dev, map, size, size, dir,
| ~~~~~~~~~~~~~~~~~~~~~~~~
407 | attrs | DMA_ATTR_SKIP_CPU_SYNC);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/swiotlb.h:48:13: note: 'swiotlb_tbl_unmap_single' declared here
48 | extern void swiotlb_tbl_unmap_single(struct device *hwdev,
| ^ ~~~~~~~~~~~~~~~~~~~~~
49 | phys_addr_t tlb_addr,
| ~~~~~~~~~~~~~~~~~~~~~
50 | size_t mapping_size,
| ~~~~~~~~~~~~~~~~~~~~
51 | enum dma_data_direction dir,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52 | unsigned long attrs);
| ~~~~~~~~~~~~~~~~~~~
drivers/xen/swiotlb-xen.c:437:59: error: too many arguments to function call, expected 5, have 6
437 | swiotlb_tbl_unmap_single(hwdev, paddr, size, size, dir, attrs);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
include/linux/swiotlb.h:48:13: note: 'swiotlb_tbl_unmap_single' declared here
48 | extern void swiotlb_tbl_unmap_single(struct device *hwdev,
| ^ ~~~~~~~~~~~~~~~~~~~~~
49 | phys_addr_t tlb_addr,
| ~~~~~~~~~~~~~~~~~~~~~
50 | size_t mapping_size,
| ~~~~~~~~~~~~~~~~~~~~
51 | enum dma_data_direction dir,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52 | unsigned long attrs);
| ~~~~~~~~~~~~~~~~~~~
>> drivers/xen/swiotlb-xen.c:450:3: error: implicit declaration of function 'swiotlb_tbl_sync_single' [-Werror,-Wimplicit-function-declaration]
450 | swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU);
| ^
drivers/xen/swiotlb-xen.c:450:3: note: did you mean 'swiotlb_tbl_map_single'?
include/linux/swiotlb.h:44:13: note: 'swiotlb_tbl_map_single' declared here
44 | phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, phys_addr_t phys,
| ^
>> drivers/xen/swiotlb-xen.c:450:50: error: use of undeclared identifier 'SYNC_FOR_CPU'
450 | swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU);
| ^
drivers/xen/swiotlb-xen.c:460:3: error: implicit declaration of function 'swiotlb_tbl_sync_single' [-Werror,-Wimplicit-function-declaration]
460 | swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE);
| ^
>> drivers/xen/swiotlb-xen.c:460:50: error: use of undeclared identifier 'SYNC_FOR_DEVICE'
460 | swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE);
| ^
6 errors generated.
vim +/swiotlb_tbl_sync_single +450 drivers/xen/swiotlb-xen.c
^590eaf1fec755 Kaixu Xia 2021-03-16 439
^590eaf1fec755 Kaixu Xia 2021-03-16 440 static void
^590eaf1fec755 Kaixu Xia 2021-03-16 441 xen_swiotlb_sync_single_for_cpu(struct device *dev, dma_addr_t dma_addr,
^590eaf1fec755 Kaixu Xia 2021-03-16 442 size_t size, enum dma_data_direction dir)
^590eaf1fec755 Kaixu Xia 2021-03-16 443 {
^590eaf1fec755 Kaixu Xia 2021-03-16 444 phys_addr_t paddr = xen_bus_to_phys(dma_addr);
^590eaf1fec755 Kaixu Xia 2021-03-16 445
^590eaf1fec755 Kaixu Xia 2021-03-16 446 if (!dev_is_dma_coherent(dev))
c3fd7ea8b7a5d9 Christoph Hellwig 2019-11-07 447 xen_dma_sync_for_cpu(dma_addr, paddr, size, dir);
^590eaf1fec755 Kaixu Xia 2021-03-16 448
^590eaf1fec755 Kaixu Xia 2021-03-16 449 if (is_xen_swiotlb_buffer(dma_addr))
^590eaf1fec755 Kaixu Xia 2021-03-16 @450 swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU);
^590eaf1fec755 Kaixu Xia 2021-03-16 451 }
^590eaf1fec755 Kaixu Xia 2021-03-16 452
^590eaf1fec755 Kaixu Xia 2021-03-16 453 static void
^590eaf1fec755 Kaixu Xia 2021-03-16 454 xen_swiotlb_sync_single_for_device(struct device *dev, dma_addr_t dma_addr,
^590eaf1fec755 Kaixu Xia 2021-03-16 455 size_t size, enum dma_data_direction dir)
^590eaf1fec755 Kaixu Xia 2021-03-16 456 {
^590eaf1fec755 Kaixu Xia 2021-03-16 457 phys_addr_t paddr = xen_bus_to_phys(dma_addr);
^590eaf1fec755 Kaixu Xia 2021-03-16 458
^590eaf1fec755 Kaixu Xia 2021-03-16 459 if (is_xen_swiotlb_buffer(dma_addr))
^590eaf1fec755 Kaixu Xia 2021-03-16 @460 swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE);
^590eaf1fec755 Kaixu Xia 2021-03-16 461
^590eaf1fec755 Kaixu Xia 2021-03-16 462 if (!dev_is_dma_coherent(dev))
c3fd7ea8b7a5d9 Christoph Hellwig 2019-11-07 463 xen_dma_sync_for_device(dma_addr, paddr, size, dir);
^590eaf1fec755 Kaixu Xia 2021-03-16 464 }
^590eaf1fec755 Kaixu Xia 2021-03-16 465
:::::: The code at line 450 was first introduced by commit
:::::: 590eaf1fec755215547690e787cc7d83f58ea948 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces.
:::::: TO: Kaixu Xia <kaixuxia@tencent.com>
:::::: CC: Kaixu Xia <kaixuxia@tencent.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:[~2024-03-13 13:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 13:29 drivers/xen/swiotlb-xen.c:450:3: error: implicit declaration of function 'swiotlb_tbl_sync_single' 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.