All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:dma-rework-mask-setting 19/20] kernel/dma/mapping.c:354:6: error: implicit declaration of function 'dma_is_direct'; did you mean 'dma_map_direct'?
@ 2020-03-20 15:41 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-20 15:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]

tree:   git://git.infradead.org/users/hch/misc.git dma-rework-mask-setting
head:   1a101c9ead64fe5ca05d21f6d9aea2244f756c95
commit: 2c442ea190dae94ed1a105b25c2b23de296f6178 [19/20] dma-mapping: rework the internal DMA mask setting interface
config: parisc-allnoconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2c442ea190dae94ed1a105b25c2b23de296f6178
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/dma/mapping.c: In function 'dma_set_masks':
>> kernel/dma/mapping.c:354:6: error: implicit declaration of function 'dma_is_direct'; did you mean 'dma_map_direct'? [-Werror=implicit-function-declaration]
     354 |  if (dma_is_direct(ops)) {
         |      ^~~~~~~~~~~~~
         |      dma_map_direct
   cc1: some warnings being treated as errors

vim +354 kernel/dma/mapping.c

   340	
   341	int dma_set_masks(struct device *dev, u64 mask, unsigned int which)
   342	{
   343		const struct dma_map_ops *ops = get_dma_ops(dev);
   344	
   345		if (!dev->dma_mask)
   346			return -EIO;
   347	
   348		/*
   349		 * Truncate the mask to the actually supported dma_addr_t width to
   350		 * avoid generating unsupportable addresses.
   351		 */
   352		mask = (dma_addr_t)mask;
   353	
 > 354		if (dma_is_direct(ops)) {
   355			if (!dma_direct_set_mask(dev, mask, which))
   356				return -EIO;
   357		} else {
   358			if (ops->set_mask && !ops->set_mask(dev, mask, which))
   359				return -EIO;
   360		}
   361	
   362		if (which & DMA_SET_MASK) {
   363			arch_dma_set_mask(dev, mask);
   364			*dev->dma_mask = mask;
   365		}
   366		if (which & DMA_SET_COHERENT_MASK)
   367			dev->coherent_dma_mask = mask;
   368		return 0;
   369	}
   370	EXPORT_SYMBOL(dma_set_masks);
   371	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 5535 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-20 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 15:41 [hch-misc:dma-rework-mask-setting 19/20] kernel/dma/mapping.c:354:6: error: implicit declaration of function 'dma_is_direct'; did you mean 'dma_map_direct'? kbuild 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.