lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201805171521.mKodgpcO%fengguang.wu@intel.com>
Date:   Thu, 17 May 2018 15:03:30 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Rob Herring <robh@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Rich Felker <dalias@...c.org>
Subject: arch/sh/include/asm/io.h:246:32: warning: cast to pointer from
 integer of different size

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e6506eb241871d68647c53cb6d0a16299550ae97
commit: ac21fc2dcb405cf250ad3f1228f64f64930d9211 sh: switch to NO_BOOTMEM
date:   6 days ago
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.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 ac21fc2dcb405cf250ad3f1228f64f64930d9211
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   In file included from mm/nobootmem.c:22:0:
   mm/nobootmem.c: In function '__alloc_memory_core_early':
>> arch/sh/include/asm/io.h:246:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define phys_to_virt(address) ((void *)(address))
                                   ^
>> mm/nobootmem.c:65:8: note: in expansion of macro 'phys_to_virt'
     ptr = phys_to_virt(addr);
           ^~~~~~~~~~~~

vim +246 arch/sh/include/asm/io.h

959f85f8a include/asm-sh/io.h Paul Mundt     2006-09-27  238  
ac490a489 include/asm-sh/io.h Paul Mundt     2007-11-20  239  /* Quad-word real-mode I/O, don't ask.. */
ac490a489 include/asm-sh/io.h Paul Mundt     2007-11-20  240  unsigned long long peek_real_address_q(unsigned long long addr);
ac490a489 include/asm-sh/io.h Paul Mundt     2007-11-20  241  unsigned long long poke_real_address_q(unsigned long long addr,
ac490a489 include/asm-sh/io.h Paul Mundt     2007-11-20  242  				       unsigned long long val);
ac490a489 include/asm-sh/io.h Paul Mundt     2007-11-20  243  
da06b8d05 include/asm-sh/io.h Paul Mundt     2007-11-09  244  #if !defined(CONFIG_MMU)
da06b8d05 include/asm-sh/io.h Paul Mundt     2007-11-09  245  #define virt_to_phys(address)	((unsigned long)(address))
da06b8d05 include/asm-sh/io.h Paul Mundt     2007-11-09 @246  #define phys_to_virt(address)	((void *)(address))
d02b08f6e include/asm-sh/io.h Stuart Menefy  2007-11-30  247  #else
da06b8d05 include/asm-sh/io.h Paul Mundt     2007-11-09  248  #define virt_to_phys(address)	(__pa(address))
da06b8d05 include/asm-sh/io.h Paul Mundt     2007-11-09  249  #define phys_to_virt(address)	(__va(address))
a2d1a5fae include/asm-sh/io.h Yoshinori Sato 2006-09-27  250  #endif
^1da177e4 include/asm-sh/io.h Linus Torvalds 2005-04-16  251  

:::::: The code at line 246 was first introduced by commit
:::::: da06b8d0545a1bf95b9060bf301d6de3400fafd6 sh: Add SH-5 support to io.h.

:::::: TO: Paul Mundt <lethal@...ux-sh.org>
:::::: CC: Paul Mundt <lethal@...ux-sh.org>

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

Download attachment ".config.gz" of type "application/gzip" (47754 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ