From: kernel test robot <lkp@intel.com>
To: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [alobakin:idpf-libie 11/51] include/linux/dma-mapping.h:401:9: error: implicit declaration of function 'dma_check_sync'; did you mean 'dma_need_sync'?
Date: Mon, 15 Jan 2024 01:02:33 +0800 [thread overview]
Message-ID: <202401150022.29UhTCNe-lkp@intel.com> (raw)
tree: https://github.com/alobakin/linux idpf-libie
head: 29cca1ea6c555a8b97694e38f18926da7969dcfe
commit: 366859db976ac1f430583a7ce8a1c4e9e63d589f [11/51] page_pool: add DMA-sync-for-CPU inline helper
config: sh-randconfig-001-20240114 (https://download.01.org/0day-ci/archive/20240115/202401150022.29UhTCNe-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240115/202401150022.29UhTCNe-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/202401150022.29UhTCNe-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/skbuff.h:28,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from net/bpf/test_run.c:10:
include/linux/dma-mapping.h: In function '__dma_sync_single_range_for_cpu':
include/linux/dma-mapping.h:389:9: error: implicit declaration of function '__dma_sync_single_for_cpu'; did you mean 'dma_sync_single_for_cpu'? [-Werror=implicit-function-declaration]
389 | __dma_sync_single_for_cpu(dev, addr + offset, size, dir);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_cpu
include/linux/dma-mapping.h: In function '__dma_sync_single_range_for_device':
include/linux/dma-mapping.h:397:9: error: implicit declaration of function '__dma_sync_single_for_device'; did you mean 'dma_sync_single_for_device'? [-Werror=implicit-function-declaration]
397 | __dma_sync_single_for_device(dev, addr + offset, size, dir);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dma_sync_single_for_device
include/net/page_pool/helpers.h: In function 'page_pool_dma_sync_for_cpu':
>> include/linux/dma-mapping.h:401:9: error: implicit declaration of function 'dma_check_sync'; did you mean 'dma_need_sync'? [-Werror=implicit-function-declaration]
401 | dma_check_sync(__dma_sync_single_range_for_cpu, d, a, o, s, r)
| ^~~~~~~~~~~~~~
include/net/page_pool/helpers.h:416:9: note: in expansion of macro 'dma_sync_single_range_for_cpu'
416 | dma_sync_single_range_for_cpu(pool->p.dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +401 include/linux/dma-mapping.h
ed6ccf10f24bdfc Christoph Hellwig 2018-12-26 399
9a3aa944b330413 Alexander Lobakin 2024-01-11 400 #define dma_sync_single_range_for_cpu(d, a, o, s, r) \
9a3aa944b330413 Alexander Lobakin 2024-01-11 @401 dma_check_sync(__dma_sync_single_range_for_cpu, d, a, o, s, r)
9a3aa944b330413 Alexander Lobakin 2024-01-11 402 #define dma_sync_single_range_for_device(d, a, o, s, r) \
9a3aa944b330413 Alexander Lobakin 2024-01-11 403 dma_check_sync(__dma_sync_single_range_for_device, d, a, o, s, r)
9a3aa944b330413 Alexander Lobakin 2024-01-11 404
:::::: The code at line 401 was first introduced by commit
:::::: 9a3aa944b33041331d3bf1c1ad194ecffee0cbf0 dma: compile-out DMA sync operations when not used
:::::: TO: Alexander Lobakin <aleksander.lobakin@intel.com>
:::::: CC: Alexander Lobakin <aleksander.lobakin@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-01-14 17:02 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=202401150022.29UhTCNe-lkp@intel.com \
--to=lkp@intel.com \
--cc=aleksander.lobakin@intel.com \
--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.