Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbdHSM1m (ORCPT ); Sat, 19 Aug 2017 08:27:42 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35580 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdHSM1j (ORCPT ); Sat, 19 Aug 2017 08:27:39 -0400 MIME-Version: 1.0 In-Reply-To: <201708190909.9GRNaEaj%fengguang.wu@intel.com> References: <1502791207-26951-3-git-send-email-oleksandrs@mellanox.com> <201708190909.9GRNaEaj%fengguang.wu@intel.com> From: Arnd Bergmann Date: Sat, 19 Aug 2017 14:27:37 +0200 X-Google-Sender-Auth: dsENZEXEfL6mJpKYdmAiJs8RAfA Message-ID: Subject: Re: [patch v3 2/3] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver To: kbuild test robot Cc: Oleksandr Shamray , kbuild-all@01.org, gregkh , Linux Kernel Mailing List , Linux ARM , devicetree@vger.kernel.org, OpenBMC Maillist , Joel Stanley , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Tobias Klauser , linux-serial@vger.kernel.org, mec@shout.net, vadimp@maellanox.com, system-sw-low-level@mellanox.com, Rob Herring , openocd-devel-owner@lists.sourceforge.net, Jiri Pirko , Richard Weinberger , uml-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1409 Lines: 32 On Sat, Aug 19, 2017 at 3:21 AM, kbuild test robot wrote: > Hi Oleksandr, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.13-rc5 next-20170817] > [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/Oleksandr-Shamray/drivers-jtag-Add-JTAG-core-driver/20170818-114739 > config: um-allyesconfig (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 > reproduce: > # save the attached .config to linux build tree > make ARCH=um > > All errors (new ones prefixed by >>): > > drivers/auxdisplay/img-ascii-lcd.o: In function `img_ascii_lcd_probe': > drivers/auxdisplay/img-ascii-lcd.c:386: undefined reference to `devm_ioremap_resource' > drivers/jtag/jtag-aspeed.o: In function `aspeed_jtag_init': >>> drivers/jtag/jtag-aspeed.c:635: undefined reference to `devm_ioremap_resource' > collect2: error: ld returned 1 exit status So arch/um now provides an ioremap() stub despite the absence of CONFIG_HAS_IOMEM, but the respective devm_* interface from lib/devres.c is not available. We can either work around this for new drivers as we used to do for ioremap() by adding a correct 'depends on HAS_IOMEM' Kconfig dependency, or we could find a way for arch/um to provide stubs for the additional functions as well. Arnd