[renesas-drivers:topic/sh-pfc-validation-v2 31/31] arch/sh/include/cpu-sh4/cpu/sh7786.h:135:21: warning: passing argument 1 of '__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: i386-allmodconfig (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
reproduce:
        git checkout 2271247302f55e46c1d375774cb7b43d86fab38c
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/pinctrl/sh-pfc/pfc-sh7786.c:15:
   arch/sh/include/cpu-sh4/cpu/sh7786.h: In function 'sh7786_mm_sel':
>> arch/sh/include/cpu-sh4/cpu/sh7786.h:135:21: warning: passing argument 1 of '__readl' makes pointer from integer without a cast [-Wint-conversion]
     return __raw_readl(0xFC400020) & 0x7;
                        ^~~~~~~~~~
   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/x86/include/asm/io.h:48:54: note: expected 'const volatile void *' but argument is of type 'unsigned int'
    static inline type name(const volatile void __iomem *addr) \
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   arch/x86/include/asm/io.h:63:1: note: in expansion of macro 'build_mmio_read'
    build_mmio_read(__readl, "l", unsigned int, "=r", )
    ^~~~~~~~~~~~~~~

vim +/__readl +135 arch/sh/include/cpu-sh4/cpu/sh7786.h

55ba99eb Kuninori Morimoto 2009-03-03  132  
bc05aa6e Thomas Petazzoni  2017-12-04  133  static inline u32 sh7786_mm_sel(void)
bc05aa6e Thomas Petazzoni  2017-12-04  134  {
bc05aa6e Thomas Petazzoni  2017-12-04 @135  	return __raw_readl(0xFC400020) & 0x7;
bc05aa6e Thomas Petazzoni  2017-12-04  136  }
bc05aa6e Thomas Petazzoni  2017-12-04  137  

:::::: The code at line 135 was first introduced by commit
:::::: bc05aa6e13a717e1abff6f863f7ba82b14556df4 arch/sh: add sh7786_mm_sel() function

:::::: TO: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxxxxxxxxx>
:::::: CC: Rich Felker <dalias@xxxxxxxx>

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