[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111100740.PNAYsZYv-lkp@intel.com>
Date: Wed, 10 Nov 2021 07:38:46 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Greg Ungerer <gerg@...ux-m68k.org>
Subject: drivers/comedi/drivers/comedi_isadma.c:25:17: error: implicit
declaration of function 'claim_dma_lock'
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: db87db65c1059f3be04506d122f8ec9b2fa3b05e m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch
date: 3 months ago
config: m68k-buildonly-randconfig-r004-20211101 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=db87db65c1059f3be04506d122f8ec9b2fa3b05e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout db87db65c1059f3be04506d122f8ec9b2fa3b05e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/comedi/drivers/comedi_isadma.c: In function 'comedi_isadma_program':
>> drivers/comedi/drivers/comedi_isadma.c:25:17: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
25 | flags = claim_dma_lock();
| ^~~~~~~~~~~~~~
>> drivers/comedi/drivers/comedi_isadma.c:31:9: error: implicit declaration of function 'release_dma_lock'; did you mean 'release_task'? [-Werror=implicit-function-declaration]
31 | release_dma_lock(flags);
| ^~~~~~~~~~~~~~~~
| release_task
cc1: some warnings being treated as errors
vim +/claim_dma_lock +25 drivers/comedi/drivers/comedi_isadma.c
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 16
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 17 /**
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 18 * comedi_isadma_program - program and enable an ISA DMA transfer
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 19 * @desc: the ISA DMA cookie to program and enable
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 20 */
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 21 void comedi_isadma_program(struct comedi_isadma_desc *desc)
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 22 {
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 23 unsigned long flags;
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 24
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 @25 flags = claim_dma_lock();
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 26 clear_dma_ff(desc->chan);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 27 set_dma_mode(desc->chan, desc->mode);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 28 set_dma_addr(desc->chan, desc->hw_addr);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 29 set_dma_count(desc->chan, desc->size);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 30 enable_dma(desc->chan);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 @31 release_dma_lock(flags);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 32 }
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 33 EXPORT_SYMBOL_GPL(comedi_isadma_program);
20a1ea7d6ba184a drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 34
:::::: The code at line 25 was first introduced by commit
:::::: 20a1ea7d6ba184a1f6e25e85786738003387cada staging: comedi: comedi_isadma: introduce helper module for ISA DMA
:::::: TO: H Hartley Sweeten <hsweeten@...ionengravers.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (29372 bytes)
Powered by blists - more mailing lists