All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-perf:restricted-dma 15/15] drivers/of/address.c:1116:5: error: redefinition of 'of_dma_set_restricted_buffer'
@ 2021-06-05  0:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-05  0:44 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git restricted-dma
head:   c1376d63544e23988ed5f04a3484b64db43d8693
commit: c1376d63544e23988ed5f04a3484b64db43d8693 [15/15] of: Add plumbing for restricted DMA pool
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/will/linux.git/commit/?id=c1376d63544e23988ed5f04a3484b64db43d8693
        git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
        git fetch --no-tags arm-perf restricted-dma
        git checkout c1376d63544e23988ed5f04a3484b64db43d8693
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

>> drivers/of/address.c:1116:5: error: redefinition of 'of_dma_set_restricted_buffer'
    1116 | int of_dma_set_restricted_buffer(struct device *dev, struct device_node *np)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/of/address.c:19:
   drivers/of/of_private.h:173:19: note: previous definition of 'of_dma_set_restricted_buffer' was here
     173 | static inline int of_dma_set_restricted_buffer(struct device *dev,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/of_dma_set_restricted_buffer +1116 drivers/of/address.c

  1115	
> 1116	int of_dma_set_restricted_buffer(struct device *dev, struct device_node *np)
  1117	{
  1118		struct device_node *node, *of_node = dev->of_node;
  1119		int count, i;
  1120	
  1121		count = of_property_count_elems_of_size(of_node, "memory-region",
  1122							sizeof(u32));
  1123		/*
  1124		 * If dev->of_node doesn't exist or doesn't contain memory-region, try
  1125		 * the OF node having DMA configuration.
  1126		 */
  1127		if (count <= 0) {
  1128			of_node = np;
  1129			count = of_property_count_elems_of_size(
  1130				of_node, "memory-region", sizeof(u32));
  1131		}
  1132	
  1133		for (i = 0; i < count; i++) {
  1134			node = of_parse_phandle(of_node, "memory-region", i);
  1135			/*
  1136			 * There might be multiple memory regions, but only one
  1137			 * restricted-dma-pool region is allowed.
  1138			 */
  1139			if (of_device_is_compatible(node, "restricted-dma-pool") &&
  1140			    of_device_is_available(node))
  1141				return of_reserved_mem_device_init_by_idx(dev, of_node,
  1142									  i);
  1143		}
  1144	
  1145		return 0;
  1146	}
  1147	

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

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

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

only message in thread, other threads:[~2021-06-05  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-05  0:44 [arm-perf:restricted-dma 15/15] drivers/of/address.c:1116:5: error: redefinition of 'of_dma_set_restricted_buffer' 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.