[renesas-drivers:topic/sh-pfc-validation-v2 31/31] arch/ia64/include/asm/io.h:382:26: warning: passing argument 1 of 'ia64_mv.readl' makes pointer from integer without a cast

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/sh-pfc-validation-v2
head:   2271247302f55e46c1d375774cb7b43d86fab38c
commit: 2271247302f55e46c1d375774cb7b43d86fab38c [31/31] pinctrl: sh-pfc: Allow compile-testing of all drivers
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2271247302f55e46c1d375774cb7b43d86fab38c
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=ia64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/io.h:25,
                    from arch/sh/include/cpu-sh4/cpu/sh7786.h:14,
                    from drivers/pinctrl/sh-pfc/pfc-sh7786.c:15:
   arch/sh/include/cpu-sh4/cpu/sh7786.h: In function 'sh7786_mm_sel':
>> arch/ia64/include/asm/io.h:382:26: warning: passing argument 1 of 'ia64_mv.readl' makes pointer from integer without a cast [-Wint-conversion]
    #define readl(a) __readl((a))
                             ^~~
   arch/ia64/include/asm/io.h:390:21: note: in expansion of macro 'readl'
    #define __raw_readl readl
                        ^~~~~
   arch/sh/include/cpu-sh4/cpu/sh7786.h:135:9: note: in expansion of macro '__raw_readl'
     return __raw_readl(0xFC400020) & 0x7;
            ^~~~~~~~~~~
   arch/ia64/include/asm/io.h:382:26: note: expected 'const volatile void *' but argument is of type 'unsigned int'
    #define readl(a) __readl((a))
                             ^~~
   arch/ia64/include/asm/io.h:390:21: note: in expansion of macro 'readl'
    #define __raw_readl readl
                        ^~~~~
   arch/sh/include/cpu-sh4/cpu/sh7786.h:135:9: note: in expansion of macro '__raw_readl'
     return __raw_readl(0xFC400020) & 0x7;
            ^~~~~~~~~~~

vim +382 arch/ia64/include/asm/io.h

^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  379  
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  380  #define readb(a)	__readb((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  381  #define readw(a)	__readw((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16 @382  #define readl(a)	__readl((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  383  #define readq(a)	__readq((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  384  #define readb_relaxed(a)	__readb_relaxed((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  385  #define readw_relaxed(a)	__readw_relaxed((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  386  #define readl_relaxed(a)	__readl_relaxed((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  387  #define readq_relaxed(a)	__readq_relaxed((a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  388  #define __raw_readb	readb
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  389  #define __raw_readw	readw
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  390  #define __raw_readl	readl
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  391  #define __raw_readq	readq
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  392  #define __raw_readb_relaxed	readb_relaxed
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  393  #define __raw_readw_relaxed	readw_relaxed
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  394  #define __raw_readl_relaxed	readl_relaxed
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  395  #define __raw_readq_relaxed	readq_relaxed
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  396  #define writeb(v,a)	__writeb((v), (a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  397  #define writew(v,a)	__writew((v), (a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  398  #define writel(v,a)	__writel((v), (a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  399  #define writeq(v,a)	__writeq((v), (a))
f6b3b7a9 arch/ia64/include/asm/io.h Will Deacon    2013-09-03  400  #define writeb_relaxed(v,a)	__writeb((v), (a))
f6b3b7a9 arch/ia64/include/asm/io.h Will Deacon    2013-09-03  401  #define writew_relaxed(v,a)	__writew((v), (a))
f6b3b7a9 arch/ia64/include/asm/io.h Will Deacon    2013-09-03  402  #define writel_relaxed(v,a)	__writel((v), (a))
f6b3b7a9 arch/ia64/include/asm/io.h Will Deacon    2013-09-03  403  #define writeq_relaxed(v,a)	__writeq((v), (a))
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  404  #define __raw_writeb	writeb
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  405  #define __raw_writew	writew
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  406  #define __raw_writel	writel
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  407  #define __raw_writeq	writeq
^1da177e include/asm-ia64/io.h      Linus Torvalds 2005-04-16  408  

:::::: The code at line 382 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux