* [hch-misc:kfifo-include 1/1] include/linux/kfifo.h:745:60: error: 'DMA_MAPPING_ERROR' undeclared
@ 2024-10-11 4:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-11 4:42 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: oe-kbuild-all
tree: git://git.infradead.org/users/hch/misc.git kfifo-include
head: 5a122872045100223f0e44256a62ed2b1f85d985
commit: 5a122872045100223f0e44256a62ed2b1f85d985 [1/1] kfifo: don't include dma-mapping.h in kfifo.h
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241011/202410111216.3o3f3B02-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410111216.3o3f3B02-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/202410111216.3o3f3B02-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from samples/kfifo/dma-example.c:9:
samples/kfifo/dma-example.c: In function 'example_init':
>> include/linux/kfifo.h:745:60: error: 'DMA_MAPPING_ERROR' undeclared (first use in this function)
745 | kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
| ^~~~~~~~~~~~~~~~~
include/linux/kfifo.h:740:34: note: in definition of macro 'kfifo_dma_in_prepare_mapped'
740 | dma) : \
| ^~~
samples/kfifo/dma-example.c:64:17: note: in expansion of macro 'kfifo_dma_in_prepare'
64 | nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/kfifo.h:745:60: note: each undeclared identifier is reported only once for each function it appears in
745 | kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
| ^~~~~~~~~~~~~~~~~
include/linux/kfifo.h:740:34: note: in definition of macro 'kfifo_dma_in_prepare_mapped'
740 | dma) : \
| ^~~
samples/kfifo/dma-example.c:64:17: note: in expansion of macro 'kfifo_dma_in_prepare'
64 | nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE);
| ^~~~~~~~~~~~~~~~~~~~
vim +/DMA_MAPPING_ERROR +745 include/linux/kfifo.h
86d48803136038 Stefani Seibold 2009-12-21 743
d52b761e4b1acc Jiri Slaby (SUSE 2024-04-05 744) #define kfifo_dma_in_prepare(fifo, sgl, nents, len) \
d52b761e4b1acc Jiri Slaby (SUSE 2024-04-05 @745) kfifo_dma_in_prepare_mapped(fifo, sgl, nents, len, DMA_MAPPING_ERROR)
d52b761e4b1acc Jiri Slaby (SUSE 2024-04-05 746)
:::::: The code at line 745 was first introduced by commit
:::::: d52b761e4b1acc897e65bcc8eff42b0537ac0134 kfifo: add kfifo_dma_out_prepare_mapped()
:::::: TO: Jiri Slaby (SUSE) <jirislaby@kernel.org>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
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-10-11 4:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11 4:42 [hch-misc:kfifo-include 1/1] include/linux/kfifo.h:745:60: error: 'DMA_MAPPING_ERROR' undeclared 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.