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


Groups > linux.kernel > #1361205 > unrolled thread

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

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

Back to article view | Back to linux.kernel


Contents

  drivers/mfd/syscon.c:89:2: error: implicit declaration of function  'iounmap' kbuild test robot <fengguang.wu@intel.com> - 2016-03-20 03:10 +0100

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

Fromkbuild test robot <fengguang.wu@intel.com>
Date2016-03-20 03:10 +0100
Subjectdrivers/mfd/syscon.c:89:2: error: implicit declaration of function 'iounmap'
Message-ID<reAYy-8a-1@gated-at.bofh.it>

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

Hi Rob,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   de06dbfa7861c9019eedefc0c356ba86e5098f1b
commit: 0166dc11be911213e0b1b764488c671be4c48cf3 of: make CONFIG_OF user selectable
date:   10 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@samsung.com>
:::::: CC: Lee Jones <lee.jones@linaro.org>

---
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