[nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:672:3: warning: cast to smaller integer type 'unsigned int' from 'char *'
kernel test robot
lkp at intel.com
Sun Apr 18 00:47:45 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: x86_64-randconfig-r004-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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-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=x86_64
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:672:3: warning: cast to smaller integer type 'unsigned int' from 'char *' [-Wpointer-to-int-cast]
(unsigned int)__initramfs_start,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
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);
^
2 warnings generated.
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: 35728 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210418/5733ba7d/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list