[nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:675:8: warning: ISO C90 forbids mixing declarations and code

kernel test robot lkp at intel.com
Sun Apr 18 00:05:09 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-randconfig-r024-20210418 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f549176ad976caa3e19edd036df9a7e12770af7c)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # 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=clang 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 >>):

>> init/initramfs.c:675:8: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
           char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
                 ^
   1 warning generated.


vim +675 init/initramfs.c

7c184ecd262fe6 Christoph Hellwig 2019-05-13  667  
9a9e0d685553af Linus Torvalds    2008-03-15  668  static int __init populate_rootfs(void)
^1da177e4c3f41 Linus Torvalds    2005-04-16  669  {
3f62443c165ea1 Linus Walleij     2021-04-16  670  	pr_info("%s enter __initramfs_start = %08x, __initramfs_size = %08x\n",
3f62443c165ea1 Linus Walleij     2021-04-16  671  		__func__,
3f62443c165ea1 Linus Walleij     2021-04-16  672  		(unsigned int)__initramfs_start,
3f62443c165ea1 Linus Walleij     2021-04-16  673  		(unsigned int)__initramfs_size);
17a9be31747535 Stafford Horne    2017-05-04  674  	/* Load the built in initramfs */
ffe8018c342489 Hendrik Brueckner 2010-09-17 @675  	char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);

:::::: The code at line 675 was first introduced by commit
:::::: ffe8018c3424892c9590048fc36caa6c3e0c8a76 initramfs: fix initramfs size calculation

:::::: TO: Hendrik Brueckner <brueckner at linux.vnet.ibm.com>
:::::: CC: Michal Marek <mmarek at suse.cz>

---
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: 35878 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210418/559552a9/attachment-0001.gz>


More information about the linux-arm-kernel mailing list