drivers/mfd/syscon.c:89:2: error: implicit declaration of function 'iounmap'

From: kbuild test robot
Date: Sun Mar 13 2016 - 01:09:13 EST


Hi Rob,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f414ca64be4b36c30deb5b5fa25c5a8ff42ea56b
commit: 0166dc11be911213e0b1b764488c671be4c48cf3 of: make CONFIG_OF user selectable
date: 9 months ago
config: um-allyesconfig (attached as .config)
reproduce:
git checkout 0166dc11be911213e0b1b764488c671be4c48cf3
# 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:89:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
iounmap(base);
^
cc1: some warnings being treated as errors

vim +/iounmap +89 drivers/mfd/syscon.c

bdb0066d Pankaj Dubey 2014-09-30 73 if (IS_ERR(regmap)) {
bdb0066d Pankaj Dubey 2014-09-30 74 pr_err("regmap init failed\n");
bdb0066d Pankaj Dubey 2014-09-30 75 ret = PTR_ERR(regmap);
bdb0066d Pankaj Dubey 2014-09-30 76 goto err_regmap;
bdb0066d Pankaj Dubey 2014-09-30 77 }
bdb0066d Pankaj Dubey 2014-09-30 78
bdb0066d Pankaj Dubey 2014-09-30 79 syscon->regmap = regmap;
bdb0066d Pankaj Dubey 2014-09-30 80 syscon->np = np;
bdb0066d Pankaj Dubey 2014-09-30 81
bdb0066d Pankaj Dubey 2014-09-30 82 spin_lock(&syscon_list_slock);
bdb0066d Pankaj Dubey 2014-09-30 83 list_add_tail(&syscon->list, &syscon_list);
bdb0066d Pankaj Dubey 2014-09-30 84 spin_unlock(&syscon_list_slock);
87d68730 Dong Aisheng 2012-09-05 85
bdb0066d Pankaj Dubey 2014-09-30 86 return syscon;
bdb0066d Pankaj Dubey 2014-09-30 87
bdb0066d Pankaj Dubey 2014-09-30 88 err_regmap:
bdb0066d Pankaj Dubey 2014-09-30 @89 iounmap(base);
bdb0066d Pankaj Dubey 2014-09-30 90 err_map:
bdb0066d Pankaj Dubey 2014-09-30 91 kfree(syscon);
bdb0066d Pankaj Dubey 2014-09-30 92 return ERR_PTR(ret);
87d68730 Dong Aisheng 2012-09-05 93 }
87d68730 Dong Aisheng 2012-09-05 94
87d68730 Dong Aisheng 2012-09-05 95 struct regmap *syscon_node_to_regmap(struct device_node *np)
87d68730 Dong Aisheng 2012-09-05 96 {
bdb0066d Pankaj Dubey 2014-09-30 97 struct syscon *entry, *syscon = NULL;

:::::: The code at line 89 was first introduced by commit
:::::: bdb0066df96e74a4002125467ebe459feff1ebef mfd: syscon: Decouple syscon interface from platform devices

:::::: TO: Pankaj Dubey <pankaj.dubey@xxxxxxxxxxx>
:::::: CC: Lee Jones <lee.jones@xxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data