[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202104131617.GDslN4Ug-lkp@intel.com>
Date: Tue, 13 Apr 2021 16:46:24 +0800
From: kernel test robot <lkp@...el.com>
To: Chuanhong Guo <gch981213@...il.com>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: arch/mips/boot/compressed/decompress.c:38:6: warning: no previous
prototype for function 'error'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89698becf06d341a700913c3d89ce2a914af69a2
commit: 1f0400d0e2c410b04f246aefb2e9b5155eb4b0bf mips: ralink: enable zboot support
date: 6 months ago
config: mips-randconfig-r006-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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/torvalds/linux.git/commit/?id=1f0400d0e2c410b04f246aefb2e9b5155eb4b0bf
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1f0400d0e2c410b04f246aefb2e9b5155eb4b0bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> arch/mips/boot/compressed/decompress.c:38:6: warning: no previous prototype for function 'error' [-Wmissing-prototypes]
void error(char *x)
^
arch/mips/boot/compressed/decompress.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void error(char *x)
^
static
In file included from arch/mips/boot/compressed/decompress.c:60:
In file included from arch/mips/boot/compressed/../../../../lib/decompress_unlz4.c:10:
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:480:5: warning: no previous prototype for function 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:480:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
static
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:502:5: warning: no previous prototype for function 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
static
>> arch/mips/boot/compressed/decompress.c:81:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
void __stack_chk_fail(void)
^
arch/mips/boot/compressed/decompress.c:81:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __stack_chk_fail(void)
^
static
>> arch/mips/boot/compressed/decompress.c:86:6: warning: no previous prototype for function 'decompress_kernel' [-Wmissing-prototypes]
void decompress_kernel(unsigned long boot_heap_start)
^
arch/mips/boot/compressed/decompress.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void decompress_kernel(unsigned long boot_heap_start)
^
static
5 warnings generated.
--
>> arch/mips/boot/compressed/string.c:11:7: warning: no previous prototype for function 'memcpy' [-Wmissing-prototypes]
void *memcpy(void *dest, const void *src, size_t n)
^
arch/mips/boot/compressed/string.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *memcpy(void *dest, const void *src, size_t n)
^
static
>> arch/mips/boot/compressed/string.c:22:7: warning: no previous prototype for function 'memset' [-Wmissing-prototypes]
void *memset(void *s, int c, size_t n)
^
arch/mips/boot/compressed/string.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *memset(void *s, int c, size_t n)
^
static
>> arch/mips/boot/compressed/string.c:32:15: warning: no previous prototype for function 'memmove' [-Wmissing-prototypes]
void * __weak memmove(void *dest, const void *src, size_t n)
^
arch/mips/boot/compressed/string.c:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void * __weak memmove(void *dest, const void *src, size_t n)
^
static
3 warnings generated.
--
>> arch/mips/boot/compressed/dbg.c:12:13: warning: no previous prototype for function 'putc' [-Wmissing-prototypes]
void __weak putc(char c)
^
arch/mips/boot/compressed/dbg.c:12:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak putc(char c)
^
static
>> arch/mips/boot/compressed/dbg.c:16:6: warning: no previous prototype for function 'puts' [-Wmissing-prototypes]
void puts(const char *s)
^
arch/mips/boot/compressed/dbg.c:16:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void puts(const char *s)
^
static
>> arch/mips/boot/compressed/dbg.c:26:6: warning: no previous prototype for function 'puthex' [-Wmissing-prototypes]
void puthex(unsigned long long val)
^
arch/mips/boot/compressed/dbg.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void puthex(unsigned long long val)
^
static
3 warnings generated.
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 <wuzhangjin@...il.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (23200 bytes)
Powered by blists - more mailing lists