tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6fd3ec5c7af58d5d6b598fba22ac387645af33f4 commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type date: 8 months ago config: mips-randconfig-r003-20210928 (attached as .config) compiler: mips64-linux-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=baec970aa5ba11099ad7a91773350c91fb2113f0 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout baec970aa5ba11099ad7a91773350c91fb2113f0 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/mips/boot/compressed/decompress.c:38:6: warning: no previous prototype for 'error' [-Wmissing-prototypes] 38 | void error(char *x) | ^~~~~ In file included from arch/mips/boot/compressed/decompress.c:68: arch/mips/boot/compressed/../../../../lib/decompress_unlzo.c: In function 'parse_header': arch/mips/boot/compressed/../../../../lib/decompress_unlzo.c:46:12: warning: variable 'level' set but not used [-Wunused-but-set-variable] 46 | u8 level = 0; | ^~~~~ arch/mips/boot/compressed/decompress.c: At top level: >> arch/mips/boot/compressed/decompress.c:81:6: warning: no previous prototype for '__stack_chk_fail' [-Wmissing-prototypes] 81 | void __stack_chk_fail(void) | ^~~~~~~~~~~~~~~~ >> arch/mips/boot/compressed/decompress.c:86:6: warning: no previous prototype for 'decompress_kernel' [-Wmissing-prototypes] 86 | void decompress_kernel(unsigned long boot_heap_start) | ^~~~~~~~~~~~~~~~~ -- >> arch/mips/boot/compressed/string.c:11:7: warning: no previous prototype for 'memcpy' [-Wmissing-prototypes] 11 | void *memcpy(void *dest, const void *src, size_t n) | ^~~~~~ >> arch/mips/boot/compressed/string.c:22:7: warning: no previous prototype for 'memset' [-Wmissing-prototypes] 22 | void *memset(void *s, int c, size_t n) | ^~~~~~ >> arch/mips/boot/compressed/string.c:32:15: warning: no previous prototype for 'memmove' [-Wmissing-prototypes] 32 | void * __weak memmove(void *dest, const void *src, size_t n) | ^~~~~~~ -- >> arch/mips/boot/compressed/dbg.c:12:13: warning: no previous prototype for 'putc' [-Wmissing-prototypes] 12 | void __weak putc(char c) | ^~~~ >> arch/mips/boot/compressed/dbg.c:16:6: warning: no previous prototype for 'puts' [-Wmissing-prototypes] 16 | void puts(const char *s) | ^~~~ >> arch/mips/boot/compressed/dbg.c:26:6: warning: no previous prototype for 'puthex' [-Wmissing-prototypes] 26 | void puthex(unsigned long long val) | ^~~~~~ vim +/error +38 arch/mips/boot/compressed/decompress.c b8f54f2cde7886 Jonas Gorski 2016-06-20 37 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 @38 void error(char *x) 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 39 { 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 40 puts("\n\n"); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 41 puts(x); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 42 puts("\n\n -- System halted"); 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 43 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 44 while (1) 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 45 ; /* Halt */ 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 46 } 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 47 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 48 /* activate the code for pre-boot environment */ 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 49 #define STATIC static 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 50 4e23eb631c8409 Florian Fainelli 2013-09-11 51 #ifdef CONFIG_KERNEL_GZIP 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 52 #include "../../../../lib/decompress_inflate.c" 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 53 #endif 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 54 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 55 #ifdef CONFIG_KERNEL_BZIP2 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 56 #include "../../../../lib/decompress_bunzip2.c" 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 57 #endif 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 58 31c4867d6c7545 Florian Fainelli 2013-09-16 59 #ifdef CONFIG_KERNEL_LZ4 31c4867d6c7545 Florian Fainelli 2013-09-16 60 #include "../../../../lib/decompress_unlz4.c" 31c4867d6c7545 Florian Fainelli 2013-09-16 61 #endif 31c4867d6c7545 Florian Fainelli 2013-09-16 62 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 63 #ifdef CONFIG_KERNEL_LZMA 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 64 #include "../../../../lib/decompress_unlzma.c" 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 65 #endif 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 66 fe1d45e0865021 Wu Zhangjin 2010-01-15 67 #ifdef CONFIG_KERNEL_LZO fe1d45e0865021 Wu Zhangjin 2010-01-15 68 #include "../../../../lib/decompress_unlzo.c" fe1d45e0865021 Wu Zhangjin 2010-01-15 69 #endif fe1d45e0865021 Wu Zhangjin 2010-01-15 70 4e23eb631c8409 Florian Fainelli 2013-09-11 71 #ifdef CONFIG_KERNEL_XZ 4e23eb631c8409 Florian Fainelli 2013-09-11 72 #include "../../../../lib/decompress_unxz.c" 4e23eb631c8409 Florian Fainelli 2013-09-11 73 #endif 4e23eb631c8409 Florian Fainelli 2013-09-11 74 a510b616131f85 Paul Cercueil 2020-09-01 75 #ifdef CONFIG_KERNEL_ZSTD a510b616131f85 Paul Cercueil 2020-09-01 76 #include "../../../../lib/decompress_unzstd.c" a510b616131f85 Paul Cercueil 2020-09-01 77 #endif a510b616131f85 Paul Cercueil 2020-09-01 78 7bbaf27d9c8303 Huacai Chen 2018-04-05 79 const unsigned long __stack_chk_guard = 0x000a0dff; 3b628cac65fa57 Ben Chan 2014-06-24 80 3b628cac65fa57 Ben Chan 2014-06-24 @81 void __stack_chk_fail(void) 3b628cac65fa57 Ben Chan 2014-06-24 82 { 3b628cac65fa57 Ben Chan 2014-06-24 83 error("stack-protector: Kernel stack is corrupted\n"); 3b628cac65fa57 Ben Chan 2014-06-24 84 } 3b628cac65fa57 Ben Chan 2014-06-24 85 1b93b3c3e94be2 Wu Zhangjin 2009-10-14 @86 void decompress_kernel(unsigned long boot_heap_start) :::::: The code at line 38 was first introduced by commit :::::: 1b93b3c3e94be2605759735a89fc935ba5f58dcf MIPS: Add support for GZIP / BZIP2 / LZMA compressed kernel images :::::: TO: Wu Zhangjin :::::: CC: Ralf Baechle --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org