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


Groups > linux.kernel > #1445036 > unrolled thread

drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap'

Started bykbuild test robot <fengguang.wu@intel.com>
First post2016-07-17 10:20 +0200
Last post2016-07-17 10:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  drivers/mfd/syscon.c:67:9: error: implicit declaration of function  'ioremap' kbuild test robot <fengguang.wu@intel.com> - 2016-07-17 10:20 +0200

#1445036 — drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap'

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-07-17 10:20 +0200
Subjectdrivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap'
Message-ID<rVPsS-6Lt-3@gated-at.bofh.it>

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

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   92d21ac74a9e3c09b0b01c764e530657e4c85c49
commit: ca668f0edfae65438c3f0a3ad5d3e59e3515915f mfd: syscon: Set regmap max_register in of_syscon_register
date:   4 months ago
config: um-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout ca668f0edfae65438c3f0a3ad5d3e59e3515915f
        # save the attached .config to linux build tree
        make ARCH=um 

All errors (new ones prefixed by >>):

   drivers/mfd/syscon.c: In function 'of_syscon_register':
>> drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration]
     base = ioremap(res.start, resource_size(&res));
            ^~~~~~~
   drivers/mfd/syscon.c:67:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     base = ioremap(res.start, resource_size(&res));
          ^
   drivers/mfd/syscon.c:109:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
     iounmap(base);
     ^~~~~~~
   cc1: some warnings being treated as errors

vim +/ioremap +67 drivers/mfd/syscon.c

    61	
    62		if (of_address_to_resource(np, 0, &res)) {
    63			ret = -ENOMEM;
    64			goto err_map;
    65		}
    66	
  > 67		base = ioremap(res.start, resource_size(&res));
    68		if (!base) {
    69			ret = -ENOMEM;
    70			goto err_map;

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web