[staging:staging-testing 704/705] drivers/comedi/drivers/comedi_isadma.c:25:10: error: implicit declaration of function 'claim_dma_lock'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   71d3edc61e29e45b613b841108688d711846f969
commit: 8ffdff6a8cfbdc174a3a390b6f825a277b5bb895 [704/705] staging: comedi: move out of staging directory
config: m68k-randconfig-r006-20210415 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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/gregkh/staging.git/commit/?id=8ffdff6a8cfbdc174a3a390b6f825a277b5bb895
        git remote add staging https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
        git fetch --no-tags staging staging-testing
        git checkout 8ffdff6a8cfbdc174a3a390b6f825a277b5bb895
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/comedi/drivers/comedi_isadma.c: In function 'comedi_isadma_program':
>> drivers/comedi/drivers/comedi_isadma.c:25:10: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration]
      25 |  flags = claim_dma_lock();
         |          ^~~~~~~~~~~~~~
>> drivers/comedi/drivers/comedi_isadma.c:31:2: 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

20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  16  
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  17  /**
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  18   * comedi_isadma_program - program and enable an ISA DMA transfer
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  19   * @desc:	the ISA DMA cookie to program and enable
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  20   */
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  21  void comedi_isadma_program(struct comedi_isadma_desc *desc)
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  22  {
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  23  	unsigned long flags;
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  24  
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 @25  	flags = claim_dma_lock();
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  26  	clear_dma_ff(desc->chan);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  27  	set_dma_mode(desc->chan, desc->mode);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  28  	set_dma_addr(desc->chan, desc->hw_addr);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  29  	set_dma_count(desc->chan, desc->size);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  30  	enable_dma(desc->chan);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14 @31  	release_dma_lock(flags);
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  32  }
20a1ea7d6ba184 drivers/staging/comedi/drivers/comedi_isadma.c H Hartley Sweeten 2015-01-14  33  EXPORT_SYMBOL_GPL(comedi_isadma_program);
20a1ea7d6ba184 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@xxxxxxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux