From: kbuild test robot <lkp@intel.com>
To: Johan Hovold <johan@kernel.org>
Cc: kbuild-all@01.org, "Christoph Hellwig" <hch@lst.de>,
"Marek Szyprowski" <m.szyprowski@samsung.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Andreas Färber" <afaerber@suse.de>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
"Johan Hovold" <johan@kernel.org>,
stable <stable@vger.kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Sricharan R" <sricharan@codeaurora.org>,
"Stefan Wahren" <stefan.wahren@i2se.com>
Subject: Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe
Date: Fri, 4 Aug 2017 03:40:42 +0800 [thread overview]
Message-ID: <201708040310.g2V9eOcK%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170803100557.29249-1-johan@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 2472 bytes --]
Hi Johan,
[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on v4.13-rc3 next-20170803]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Johan-Hovold/dma-mapping-skip-USB-devices-when-configuring-DMA-during-probe/20170804-014620
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=microblaze
All errors (new ones prefixed by >>):
drivers/base/dma-mapping.o: In function `dma_configure':
>> drivers/base/dma-mapping.c:350: undefined reference to `usb_bus_type'
drivers/base/dma-mapping.o: In function `dma_deconfigure':
drivers/base/dma-mapping.c:377: undefined reference to `usb_bus_type'
net/sunrpc/stats.o: In function `rpc_print_iostats':
net/sunrpc/stats.c:206: undefined reference to `_GLOBAL_OFFSET_TABLE_'
scripts/link-vmlinux.sh: line 93: 76193 Segmentation fault ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}
vim +350 drivers/base/dma-mapping.c
342
343 int dma_configure(struct device *dev)
344 {
345 struct device *bridge = NULL, *dma_dev = dev;
346 enum dev_dma_attr attr;
347 int ret = 0;
348
349 /* USB devices share the controller's mask. */
> 350 if (dev->bus == &usb_bus_type)
351 return 0;
352
353 if (dev_is_pci(dev)) {
354 bridge = pci_get_host_bridge_device(to_pci_dev(dev));
355 dma_dev = bridge;
356 if (IS_ENABLED(CONFIG_OF) && dma_dev->parent &&
357 dma_dev->parent->of_node)
358 dma_dev = dma_dev->parent;
359 }
360
361 if (dma_dev->of_node) {
362 ret = of_dma_configure(dev, dma_dev->of_node);
363 } else if (has_acpi_companion(dma_dev)) {
364 attr = acpi_get_dma_attr(to_acpi_device_node(dma_dev->fwnode));
365 if (attr != DEV_DMA_NOT_SUPPORTED)
366 ret = acpi_dma_configure(dev, attr);
367 }
368
369 if (bridge)
370 pci_put_host_bridge_device(bridge);
371
372 return ret;
373 }
374
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 12949 bytes --]
next prev parent reply other threads:[~2017-08-03 19:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 10:05 [PATCH] dma-mapping: skip USB devices when configuring DMA during probe Johan Hovold
2017-08-03 11:50 ` Robin Murphy
2017-08-03 12:37 ` Johan Hovold
2017-08-03 19:40 ` kbuild test robot [this message]
2017-08-04 7:43 ` Johan Hovold
2017-08-03 19:41 ` kbuild test robot
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=201708040310.g2V9eOcK%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=afaerber@suse.de \
--cc=gregkh@linuxfoundation.org \
--cc=hch@lst.de \
--cc=johan@kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.com \
--cc=sricharan@codeaurora.org \
--cc=stable@vger.kernel.org \
--cc=stefan.wahren@i2se.com \
/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.