Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1741785 > unrolled thread

drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource'

Started bykbuild test robot <fengguang.wu@intel.com>
First post2017-09-28 21:20 +0200
Last post2017-09-29 10:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  drivers/reset/reset-hsdk-v1.c:101: undefined reference to  `devm_ioremap_resource' kbuild test robot <fengguang.wu@intel.com> - 2017-09-28 21:20 +0200
    Re: drivers/reset/reset-hsdk-v1.c:101: undefined reference to  `devm_ioremap_resource' Philipp Zabel <p.zabel@pengutronix.de> - 2017-09-29 10:20 +0200

#1741785 — drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource'

Fromkbuild test robot <fengguang.wu@intel.com>
Date2017-09-28 21:20 +0200
Subjectdrivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource'
Message-ID<uuMvM-4ww-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi Eugeniy,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9cd6681cb1169e815c41af0265165dd1b872f228
commit: e0be864f14240cb1bd92247a672796239d6ef2fa ARC: reset: introduce HSDKv1 reset driver
date:   2 months ago
config: um-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout e0be864f14240cb1bd92247a672796239d6ef2fa
        # save the attached .config to linux build tree
        make ARCH=um 

All errors (new ones prefixed by >>):

   arch/um/drivers/vde.o: In function `vde_open_real':
   (.text+0xfb1): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/vde.o: In function `vde_open_real':
   (.text+0xdfc): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/vde.o: In function `vde_open_real':
   (.text+0x1115): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoaddr':
   (.text+0xe475): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametonetaddr':
   (.text+0xe515): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoproto':
   (.text+0xe735): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   arch/um/drivers/pcap.o: In function `pcap_nametoport':
   (.text+0xe567): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
   drivers/reset/reset-hsdk-v1.o: In function `hsdkv1_reset_probe':
>> drivers/reset/reset-hsdk-v1.c:101: undefined reference to `devm_ioremap_resource'
   drivers/reset/reset-hsdk-v1.c:106: undefined reference to `devm_ioremap_resource'
   collect2: error: ld returned 1 exit status

vim +101 drivers/reset/reset-hsdk-v1.c

    90	
    91	static int hsdkv1_reset_probe(struct platform_device *pdev)
    92	{
    93		struct hsdkv1_rst *rst;
    94		struct resource *mem;
    95	
    96		rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL);
    97		if (!rst)
    98			return -ENOMEM;
    99	
   100		mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 > 101		rst->regs_ctl = devm_ioremap_resource(&pdev->dev, mem);
   102		if (IS_ERR(rst->regs_ctl))
   103			return PTR_ERR(rst->regs_ctl);
   104	
   105		mem = platform_get_resource(pdev, IORESOURCE_MEM, 1);
   106		rst->regs_rst = devm_ioremap_resource(&pdev->dev, mem);
   107		if (IS_ERR(rst->regs_rst))
   108			return PTR_ERR(rst->regs_rst);
   109	
   110		spin_lock_init(&rst->lock);
   111	
   112		rst->rcdev.owner = THIS_MODULE;
   113		rst->rcdev.ops = &hsdkv1_reset_ops;
   114		rst->rcdev.of_node = pdev->dev.of_node;
   115		rst->rcdev.nr_resets = HSDK_MAX_RESETS;
   116		rst->rcdev.of_reset_n_cells = 1;
   117	
   118		return reset_controller_register(&rst->rcdev);
   119	}
   120	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1741965

FromPhilipp Zabel <p.zabel@pengutronix.de>
Date2017-09-29 10:20 +0200
Message-ID<uuYGC-3GT-7@gated-at.bofh.it>
In reply to#1741785
On Fri, 2017-09-29 at 03:16 +0800, kbuild test robot wrote:
> Hi Eugeniy,
> 
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
> .git master
> head:   9cd6681cb1169e815c41af0265165dd1b872f228
> commit: e0be864f14240cb1bd92247a672796239d6ef2fa ARC: reset: introduce
> HSDKv1 reset driver
> date:   2 months ago
> config: um-allmodconfig (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
>         git checkout e0be864f14240cb1bd92247a672796239d6ef2fa
>         # save the attached .config to linux build tree
>         make ARCH=um 

Fixed by commit 2d48a237c8b6 ("ARC: reset: Only build on archs that have
IOMEM") in:
    https://git.pengutronix.de/git/pza/linux.git tags/reset-fixes-for-4.14

regards
Philipp

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web