[gpio:for-next 5/8] include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
head:   32d92ac3d9362116d9257a939e9a040ac4c98fac
commit: 7d4defe21c682c934a19fce1ba8b54b7bde61b08 [5/8] gpio: include <linux/io-mapping.h> in gpiolib-of
config: um-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 7d4defe21c682c934a19fce1ba8b54b7bde61b08
        # save the attached .config to linux build tree
        make ARCH=um 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/gpio/gpiolib-of.c:19:0:
   include/linux/io-mapping.h: In function 'io_mapping_create_wc':
>> include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]
     return (struct io_mapping __force *) ioremap_wc(base, size);
                                          ^~~~~~~~~~
>> include/linux/io-mapping.h:130:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     return (struct io_mapping __force *) ioremap_wc(base, size);
            ^
   include/linux/io-mapping.h: In function 'io_mapping_free':
>> include/linux/io-mapping.h:136:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
     iounmap((void __force __iomem *) mapping);
     ^~~~~~~
   cc1: some warnings being treated as errors

vim +/ioremap_wc +130 include/linux/io-mapping.h

4ab0d47d Venkatesh Pallipadi 2009-02-24  124  struct io_mapping;
4ab0d47d Venkatesh Pallipadi 2009-02-24  125  
e5beae16 Keith Packard       2008-11-03  126  /* Create the io_mapping object*/
9663f2e6 Keith Packard       2008-10-30  127  static inline struct io_mapping *
4ab0d47d Venkatesh Pallipadi 2009-02-24  128  io_mapping_create_wc(resource_size_t base, unsigned long size)
9663f2e6 Keith Packard       2008-10-30  129  {
29bc17ec Francisco Jerez     2010-09-04 @130  	return (struct io_mapping __force *) ioremap_wc(base, size);
9663f2e6 Keith Packard       2008-10-30  131  }
9663f2e6 Keith Packard       2008-10-30  132  
9663f2e6 Keith Packard       2008-10-30  133  static inline void
9663f2e6 Keith Packard       2008-10-30  134  io_mapping_free(struct io_mapping *mapping)
9663f2e6 Keith Packard       2008-10-30  135  {
29bc17ec Francisco Jerez     2010-09-04 @136  	iounmap((void __force __iomem *) mapping);
9663f2e6 Keith Packard       2008-10-30  137  }
9663f2e6 Keith Packard       2008-10-30  138  
9663f2e6 Keith Packard       2008-10-30  139  /* Atomic map/unmap */

:::::: The code at line 130 was first introduced by commit
:::::: 29bc17ecb856ffb2b47c7009a71971c6f9334205 io-mapping: Fix the address space annotations

:::::: TO: Francisco Jerez <currojerez@xxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux