Subject: Re: [PATCH v2 2/2] i2c: imx-lpi2c: use dmaengine_prep_submit() to simple code

From: kernel test robot <[email-masked]>
Date: Wed, 27 May 2026 00:22:41 +0200

Hi Frank,

kernel test robot noticed the following build errors:

[auto build test ERROR on 8f0b4cce4481fb22653697cced8d0d04027cb1e8]

url:    https://github.com/intel-lab-lkp/linux/commits/Frank-Li-oss-nxp-com/dmaengine-Add-helper-dmaengine_prep_submit_slave_single/20260523-041812
base:   8f0b4cce4481fb22653697cced8d0d04027cb1e8
patch link:    https://lore.kernel.org/r/20260522-dma_prep_submit-v2-2-7a87a5a29525%40nxp.com
patch subject: [PATCH v2 2/2] i2c: imx-lpi2c: use dmaengine_prep_submit() to simple code
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260527/[email-masked]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260527/[email-masked]/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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All errors (new ones prefixed by >>):

   In file included from net/core/dev.c:124:
>> include/linux/dmaengine.h:1588:48: error: expected ')'
    1588 |                                    dma_async_tx_callback cb, void *cb_param;
         |                                                                            ^
   include/linux/dmaengine.h:1587:35: note: to match this '('
    1587 | dmaengine_prep_submit_slave_single(struct dma_chan *chan,
         |                                   ^
>> include/linux/dmaengine.h:1587:1: error: conflicting types for 'dmaengine_prep_submit_slave_single'
    1587 | dmaengine_prep_submit_slave_single(struct dma_chan *chan,
         | ^
   include/linux/dmaengine.h:994:1: note: previous declaration is here
     994 | dmaengine_prep_submit_slave_single(struct dma_chan *chan,
         | ^
>> include/linux/dmaengine.h:1589:24: error: redefinition of 'size_t' as different kind of symbol
    1589 |                                    dma_addr_t buf, size_t len,
         |                                                    ^
   include/linux/types.h:62:26: note: previous definition is here
      62 | typedef __kernel_size_t         size_t;
         |                                 ^
   In file included from net/core/dev.c:124:
>> include/linux/dmaengine.h:1589:30: error: expected ';' after top level declarator
    1589 |                                    dma_addr_t buf, size_t len,
         |                                                          ^
         |                                                          ;
>> include/linux/dmaengine.h:1592:1: error: expected identifier or '('
    1592 | {
         | ^
   5 errors generated.

vim +1588 include/linux/dmaengine.h

  1585	
  1586	static inline dma_cookie_t
> 1587	dmaengine_prep_submit_slave_single(struct dma_chan *chan,
> 1588					   dma_async_tx_callback cb, void *cb_param;
> 1589					   dma_addr_t buf, size_t len,
  1590					   enum dma_transfer_direction dir,
  1591					   unsigned long flags);
> 1592	{
  1593		return -ENODEV;
  1594	}
  1595	#endif
  1596	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki