All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: " Benoît Monin" <benoit.monin@bootlin.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/dma/fsl-edma-common.c:59:33: error: implicit declaration of function 'FIELD_GET'
Date: Wed, 23 Sep 2026 16:20:27 +0200	[thread overview]
Message-ID: <202609231629.TwIPJLPs-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-23 14:20 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=202609231629.TwIPJLPs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=benoit.monin@bootlin.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.