[nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:672:3: warning: cast from pointer to integer of different size

kernel test robot lkp at intel.com
Sat Apr 17 23:49:28 BST 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-dts-fixups
head:   3f62443c165ea1c988d9b0855292785a28906698
commit: 3f62443c165ea1c988d9b0855292785a28906698 [30/30] hacks
config: mips-bigsur_defconfig (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=3f62443c165ea1c988d9b0855292785a28906698
        git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
        git fetch --no-tags nomadik ux500-href-dts-fixups
        git checkout 3f62443c165ea1c988d9b0855292785a28906698
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:16,
                    from include/linux/list.h:9,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from init/initramfs.c:3:
   init/initramfs.c: In function 'populate_rootfs':
>> init/initramfs.c:672:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     672 |   (unsigned int)__initramfs_start,
         |   ^
   include/linux/printk.h:373:34: note: in definition of macro 'pr_info'
     373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |                                  ^~~~~~~~~~~
   init/initramfs.c:675:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     675 |  char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
         |  ^~~~


vim +672 init/initramfs.c

   667	
   668	static int __init populate_rootfs(void)
   669	{
   670		pr_info("%s enter __initramfs_start = %08x, __initramfs_size = %08x\n",
   671			__func__,
 > 672			(unsigned int)__initramfs_start,

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 16780 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210418/6908c9ab/attachment-0001.gz>


More information about the linux-arm-kernel mailing list