linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 152/178] include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt'
@ 2016-06-04  3:03 kbuild test robot
  2016-06-04 10:45 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2016-06-04  3:03 UTC (permalink / raw)
  Cc: kbuild-all, Johannes Weiner, Russell King, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3172 bytes --]

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   2e0066ec9585a5074c8040d639c3c669eb4e905f
commit: 60c8a7d9e20b888121b304895074928bf9b69029 [152/178] kexec: allow architectures to override boot mapping
config: s390-default_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 60c8a7d9e20b888121b304895074928bf9b69029
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   In file included from arch/s390/kernel/machine_kexec.c:11:0:
   include/linux/kexec.h: In function 'boot_phys_to_virt':
   include/linux/kexec.h:356:9: error: implicit declaration of function 'phys_to_virt' [-Werror=implicit-function-declaration]
     return phys_to_virt(boot_phys_to_phys(entry));
            ^
   include/linux/kexec.h:356:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
   In file included from arch/s390/include/asm/io.h:78:0,
                    from include/linux/bio.h:30,
                    from include/linux/writeback.h:192,
                    from include/linux/memcontrol.h:30,
                    from include/linux/swap.h:8,
                    from include/linux/suspend.h:4,
                    from arch/s390/kernel/machine_kexec.c:16:
   include/asm-generic/io.h: At top level:
>> include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt'
    #define phys_to_virt phys_to_virt
                         ^
   include/asm-generic/io.h:733:21: note: in expansion of macro 'phys_to_virt'
    static inline void *phys_to_virt(unsigned long address)
                        ^
   In file included from arch/s390/kernel/machine_kexec.c:11:0:
   include/linux/kexec.h:356:9: note: previous implicit declaration of 'phys_to_virt' was here
     return phys_to_virt(boot_phys_to_phys(entry));
            ^
   cc1: some warnings being treated as errors

vim +/phys_to_virt +732 include/asm-generic/io.h

3f7e212d Arnd Bergmann  2009-05-13  726  {
3f7e212d Arnd Bergmann  2009-05-13  727  	return __pa((unsigned long)address);
3f7e212d Arnd Bergmann  2009-05-13  728  }
9216efaf Thierry Reding 2014-10-01  729  #endif
3f7e212d Arnd Bergmann  2009-05-13  730  
9216efaf Thierry Reding 2014-10-01  731  #ifndef phys_to_virt
9216efaf Thierry Reding 2014-10-01 @732  #define phys_to_virt phys_to_virt
3f7e212d Arnd Bergmann  2009-05-13  733  static inline void *phys_to_virt(unsigned long address)
3f7e212d Arnd Bergmann  2009-05-13  734  {
3f7e212d Arnd Bergmann  2009-05-13  735  	return __va(address);

:::::: The code at line 732 was first introduced by commit
:::::: 9216efafc52ff99e9351ef60de5fcafc2bc8adb6 asm-generic/io.h: Reconcile I/O accessor overrides

:::::: TO: Thierry Reding <treding@nvidia.com>
:::::: CC: Thierry Reding <treding@nvidia.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 16123 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mmotm:master 152/178] include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt'
  2016-06-04  3:03 [mmotm:master 152/178] include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt' kbuild test robot
@ 2016-06-04 10:45 ` Russell King - ARM Linux
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2016-06-04 10:45 UTC (permalink / raw)
  To: kbuild test robot
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

On Sat, Jun 04, 2016 at 11:03:13AM +0800, kbuild test robot wrote:
> tree:   git://git.cmpxchg.org/linux-mmotm.git master
> head:   2e0066ec9585a5074c8040d639c3c669eb4e905f
> commit: 60c8a7d9e20b888121b304895074928bf9b69029 [152/178] kexec: allow architectures to override boot mapping
> config: s390-default_defconfig (attached as .config)
> compiler: s390x-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 60c8a7d9e20b888121b304895074928bf9b69029
>         # save the attached .config to linux build tree
>         make.cross ARCH=s390 
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from arch/s390/kernel/machine_kexec.c:11:0:
>    include/linux/kexec.h: In function 'boot_phys_to_virt':
>    include/linux/kexec.h:356:9: error: implicit declaration of function 'phys_to_virt' [-Werror=implicit-function-declaration]
>      return phys_to_virt(boot_phys_to_phys(entry));
>             ^
>    include/linux/kexec.h:356:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
>    In file included from arch/s390/include/asm/io.h:78:0,
>                     from include/linux/bio.h:30,
>                     from include/linux/writeback.h:192,
>                     from include/linux/memcontrol.h:30,
>                     from include/linux/swap.h:8,
>                     from include/linux/suspend.h:4,
>                     from arch/s390/kernel/machine_kexec.c:16:
>    include/asm-generic/io.h: At top level:
> >> include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt'
>     #define phys_to_virt phys_to_virt

Hmm.  I guess we need to include linux/io.h into linux/kexec.h.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-04 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04  3:03 [mmotm:master 152/178] include/asm-generic/io.h:732:22: error: conflicting types for 'phys_to_virt' kbuild test robot
2016-06-04 10:45 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).