[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204190231.jAoAYNgP-lkp@intel.com>
Date: Tue, 19 Apr 2022 02:43:02 +0800
From: kernel test robot <lkp@...el.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Dmitry Osipenko <digetx@...il.com>
Subject: arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:506:5:
warning: no previous prototype for function
'LZ4_decompress_safe_forceExtDict'
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b2d229d4ddb17db541098b83524d901257e93845
commit: 84a0124a9d715d844675c8cfbe5bbc9147121f73 MIPS: ralink: define stubs for clk_set_parent to fix compile testing
date: 1 year, 1 month ago
config: mips-buildonly-randconfig-r002-20220418 (https://download.01.org/0day-ci/archive/20220419/202204190231.jAoAYNgP-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec)
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=84a0124a9d715d844675c8cfbe5bbc9147121f73
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 84a0124a9d715d844675c8cfbe5bbc9147121f73
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash
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:40:6: warning: no previous prototype for function 'error' [-Wmissing-prototypes]
void error(char *x)
^
arch/mips/boot/compressed/decompress.c:40: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:62:
In file included from arch/mips/boot/compressed/../../../../lib/decompress_unlz4.c:10:
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:484: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:484: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:506: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:506: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:83:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
void __stack_chk_fail(void)
^
arch/mips/boot/compressed/decompress.c:83: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:88: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:88: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.
vim +/LZ4_decompress_safe_forceExtDict +506 arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c
2209fda323e2fd Gao Xiang 2018-10-30 483
2209fda323e2fd Gao Xiang 2018-10-30 @484 int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
2209fda323e2fd Gao Xiang 2018-10-30 485 int compressedSize, int maxOutputSize)
2209fda323e2fd Gao Xiang 2018-10-30 486 {
2209fda323e2fd Gao Xiang 2018-10-30 487 return LZ4_decompress_generic(source, dest,
2209fda323e2fd Gao Xiang 2018-10-30 488 compressedSize, maxOutputSize,
2209fda323e2fd Gao Xiang 2018-10-30 489 endOnInputSize, decode_full_block,
2209fda323e2fd Gao Xiang 2018-10-30 490 withPrefix64k,
2209fda323e2fd Gao Xiang 2018-10-30 491 (BYTE *)dest - 64 * KB, NULL, 0);
2209fda323e2fd Gao Xiang 2018-10-30 492 }
2209fda323e2fd Gao Xiang 2018-10-30 493
2209fda323e2fd Gao Xiang 2018-10-30 494 static int LZ4_decompress_safe_withSmallPrefix(const char *source, char *dest,
2209fda323e2fd Gao Xiang 2018-10-30 495 int compressedSize,
2209fda323e2fd Gao Xiang 2018-10-30 496 int maxOutputSize,
2209fda323e2fd Gao Xiang 2018-10-30 497 size_t prefixSize)
2209fda323e2fd Gao Xiang 2018-10-30 498 {
2209fda323e2fd Gao Xiang 2018-10-30 499 return LZ4_decompress_generic(source, dest,
2209fda323e2fd Gao Xiang 2018-10-30 500 compressedSize, maxOutputSize,
2209fda323e2fd Gao Xiang 2018-10-30 501 endOnInputSize, decode_full_block,
2209fda323e2fd Gao Xiang 2018-10-30 502 noDict,
2209fda323e2fd Gao Xiang 2018-10-30 503 (BYTE *)dest - prefixSize, NULL, 0);
4e1a33b105ddf2 Sven Schmidt 2017-02-24 504 }
cffb78b0e0b3a3 Kyungsik Lee 2013-07-08 505
2209fda323e2fd Gao Xiang 2018-10-30 @506 int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
2209fda323e2fd Gao Xiang 2018-10-30 507 int compressedSize, int maxOutputSize,
2209fda323e2fd Gao Xiang 2018-10-30 508 const void *dictStart, size_t dictSize)
2209fda323e2fd Gao Xiang 2018-10-30 509 {
2209fda323e2fd Gao Xiang 2018-10-30 510 return LZ4_decompress_generic(source, dest,
2209fda323e2fd Gao Xiang 2018-10-30 511 compressedSize, maxOutputSize,
2209fda323e2fd Gao Xiang 2018-10-30 512 endOnInputSize, decode_full_block,
2209fda323e2fd Gao Xiang 2018-10-30 513 usingExtDict, (BYTE *)dest,
2209fda323e2fd Gao Xiang 2018-10-30 514 (const BYTE *)dictStart, dictSize);
2209fda323e2fd Gao Xiang 2018-10-30 515 }
2209fda323e2fd Gao Xiang 2018-10-30 516
:::::: The code at line 506 was first introduced by commit
:::::: 2209fda323e2fd2a2d0885595fd5097717f8d2aa lib/lz4: update LZ4 decompressor module
:::::: TO: Gao Xiang <gaoxiang25@...wei.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists