* [nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:672:3: warning: cast to smaller integer type 'unsigned int' from 'char *'
@ 2021-04-17 23:47 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-17 23:47 UTC (permalink / raw)
To: Linus Walleij; +Cc: kbuild-all, clang-built-linux, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2311 bytes --]
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@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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35728 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:672:3: warning: cast to smaller integer type 'unsigned int' from 'char *'
@ 2021-04-17 23:47 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-17 23:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2359 bytes --]
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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35728 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-17 23:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 23:47 [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
2021-04-17 23:47 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.