Messages in this thread |  | | Date | Mon, 18 Jul 2022 00:13:19 +0800 | From | kernel test robot <> | Subject | arch/mips/boot/compressed/decompress.c:114:57: sparse: sparse: Using plain integer as NULL pointer |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2eccaca7b62b2836260c6fb22156a44e3d99a74a commit: 31b2f3dc851c65fee288612432c4fc956f1a264e MIPS: enable both vmlinux.gz.itb and vmlinuz for generic date: 7 months ago config: mips-randconfig-s042-20220717 (https://download.01.org/0day-ci/archive/20220718/202207180026.akNaiHTy-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=31b2f3dc851c65fee288612432c4fc956f1a264e git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 31b2f3dc851c65fee288612432c4fc956f1a264e # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>) >> arch/mips/boot/compressed/decompress.c:114:57: sparse: sparse: Using plain integer as NULL pointer arch/mips/boot/compressed/decompress.c:114:60: sparse: sparse: Using plain integer as NULL pointer arch/mips/boot/compressed/decompress.c:115:57: sparse: sparse: Using plain integer as NULL pointer
vim +114 arch/mips/boot/compressed/decompress.c
3b628cac65fa57 Ben Chan 2014-06-24 89 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 90 void decompress_kernel(unsigned long boot_heap_start) 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 91 { 1e1a77d6984a00 Wu Zhangjin 2010-06-16 92 unsigned long zimage_start, zimage_size; 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 93 1e1a77d6984a00 Wu Zhangjin 2010-06-16 94 zimage_start = (unsigned long)(&__image_begin); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 95 zimage_size = (unsigned long)(&__image_end) - 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 96 (unsigned long)(&__image_begin); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 97 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 98 puts("zimage at: "); 1e1a77d6984a00 Wu Zhangjin 2010-06-16 99 puthex(zimage_start); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 100 puts(" "); 1e1a77d6984a00 Wu Zhangjin 2010-06-16 101 puthex(zimage_size + zimage_start); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 102 puts("\n"); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 103 1e1a77d6984a00 Wu Zhangjin 2010-06-16 104 /* This area are prepared for mallocing when decompressing */ 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 105 free_mem_ptr = boot_heap_start; 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 106 free_mem_end_ptr = boot_heap_start + BOOT_HEAP_SIZE; 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 107 1e1a77d6984a00 Wu Zhangjin 2010-06-16 108 /* Display standard Linux/MIPS boot prompt */ 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 109 puts("Uncompressing Linux at load address "); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 110 puthex(VMLINUX_LOAD_ADDRESS_ULL); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 111 puts("\n"); 1e1a77d6984a00 Wu Zhangjin 2010-06-16 112 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 113 /* Decompress the kernel with according algorithm */ 2d3862d26e67a5 Yinghai Lu 2015-09-09 @114 __decompress((char *)zimage_start, zimage_size, 0, 0,
:::::: The code at line 114 was first introduced by commit :::::: 2d3862d26e67a59340ba1cf1748196c76c5787de lib/decompressors: use real out buf size for gunzip with kernel
:::::: TO: Yinghai Lu <yinghai@kernel.org> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
|  |