All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/dma/fsl-edma-common.c:59:33: error: implicit declaration of function 'FIELD_GET'
@ 2026-09-23 14:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-23 14:20 UTC (permalink / raw)
  To:  Benoît Monin; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Beno-t-Monin/dmaengine-fsl-edma-Implement-device_prep_peripheral_dma_vec/20260911-151136
head:   d367ca414ff70c2acdc2f8d2c0410092ae34645d
commit: d367ca414ff70c2acdc2f8d2c0410092ae34645d dmaengine: fsl-edma: Support dynamic scatter/gather chaining
date:   12 days ago
config: sparc-randconfig-r2201-20260923 (https://download.01.org/0day-ci/archive/20260923/202609231629.TwIPJLPs-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260923/202609231629.TwIPJLPs-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/202609231629.TwIPJLPs-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/dma/fsl-edma-common.c: In function 'fsl_edma_tx_chan_handler':
>> drivers/dma/fsl-edma-common.c:59:33: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
      59 |                 u8 link_sg_id = FIELD_GET(EDMA_TCD_CSR_LINKCH, csr);
         |                                 ^~~~~~~~~
   drivers/dma/fsl-edma-common.c: In function 'fsl_edma_prep_peripheral_dma_vec':
   drivers/dma/fsl-edma-common.c:784:55: error: implicit declaration of function 'FIELD_MAX' [-Werror=implicit-function-declaration]
     784 |                 if (!nbytes || vecs[i].len / nbytes > FIELD_MAX(EDMA_TCD_ITER_MASK))
         |                                                       ^~~~~~~~~
   drivers/dma/fsl-edma-common.c: In function 'fsl_edma_link_sg':
>> drivers/dma/fsl-edma-common.c:1015:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
    1015 |                 csr |= FIELD_PREP(EDMA_TCD_CSR_LINKCH, fsl_chan->link_sg_id);
         |                        ^~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_GET +59 drivers/dma/fsl-edma-common.c

    46	
    47	void fsl_edma_tx_chan_handler(struct fsl_edma_chan *fsl_chan)
    48	{
    49		spin_lock(&fsl_chan->vchan.lock);
    50	
    51		if (!fsl_chan->edesc) {
    52			/* terminate_all called before */
    53			spin_unlock(&fsl_chan->vchan.lock);
    54			return;
    55		}
    56	
    57		if (!fsl_chan->edesc->iscyclic) {
    58			u16 csr = edma_read_tcdreg(fsl_chan, csr);
  > 59			u8 link_sg_id = FIELD_GET(EDMA_TCD_CSR_LINKCH, csr);
    60			struct virt_dma_desc *vdesc, *tmp;
    61	
    62			/* Channel is DONE when a TCD with D_REQ set completes */
    63			if (!(fsl_edma_drvflags(fsl_chan) & FSL_EDMA_DRV_SPLIT_REG) ||
    64			    (edma_readl_chreg(fsl_chan, ch_csr) & EDMA_V3_CH_CSR_DONE)) {
    65				fsl_chan->status = DMA_COMPLETE;
    66			}
    67	
    68			list_for_each_entry_safe(vdesc, tmp, &fsl_chan->vchan.desc_issued, node) {
    69				struct fsl_edma_desc *fsl_desc = to_fsl_edma_desc(vdesc);
    70				bool id_match = (link_sg_id == fsl_desc->link_sg_id);
    71	
    72				/*
    73				 * If the transfer is still running,
    74				 * don't mark as complete the current descriptor
    75				 */
    76				if (id_match && fsl_chan->status != DMA_COMPLETE)
    77					break;
    78	
    79				list_del(&vdesc->node);
    80				vchan_cookie_complete(vdesc);
    81	
    82				if (id_match)
    83					break;
    84			}
    85	
    86			fsl_chan->edesc = NULL;
    87	
    88		} else {
    89			vchan_cyclic_callback(&fsl_chan->edesc->vdesc);
    90		}
    91	
    92		if (!fsl_chan->edesc)
    93			fsl_edma_xfer_desc(fsl_chan);
    94	
    95		spin_unlock(&fsl_chan->vchan.lock);
    96	}
    97	

--
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:[~2026-09-23 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23 14:20 drivers/dma/fsl-edma-common.c:59:33: error: implicit declaration of function 'FIELD_GET' 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.