All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arm-perf:restricted-dma 15/15] drivers/of/address.c:1116:5: error: redefinition of 'of_dma_set_restricted_buffer'
Date: Sat, 05 Jun 2021 08:44:05 +0800	[thread overview]
Message-ID: <202106050859.51beebmb-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-06-05  0:44 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=202106050859.51beebmb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.