All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-09-02  2:29 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-09-02  2:29 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: llvm, kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 6884 bytes --]

Hi Paul,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7c636d4d20f8c5acfbfbc60f326fddb0e1cf5daa
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   12 months ago
config: mips-randconfig-r015-20210901 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 27256 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-09-02  2:29 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-09-02  2:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7002 bytes --]

Hi Paul,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7c636d4d20f8c5acfbfbc60f326fddb0e1cf5daa
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   12 months ago
config: mips-randconfig-r015-20210901 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 27256 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-03-24  1:29 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-03-24  1:29 UTC (permalink / raw)
  To: Paul Cercueil
  Cc: kbuild-all, clang-built-linux, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 7093 bytes --]

Hi Paul,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7acac4b3196caee5e21fb5ea53f8bc124e6a16fc
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   7 months ago
config: mips-randconfig-r011-20210322 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SSB_EMBEDDED
   Depends on SSB && SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE
   Selected by
   - BCM47XX_SSB && BCM47XX


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 27977 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-03-24  1:29 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-03-24  1:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7217 bytes --]

Hi Paul,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7acac4b3196caee5e21fb5ea53f8bc124e6a16fc
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   7 months ago
config: mips-randconfig-r011-20210322 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SSB_EMBEDDED
   Depends on SSB && SSB_DRIVER_MIPS && SSB_PCICORE_HOSTMODE
   Selected by
   - BCM47XX_SSB && BCM47XX


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 27977 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-03-07 17:19 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-03-07 17:19 UTC (permalink / raw)
  To: Paul Cercueil
  Cc: kbuild-all, clang-built-linux, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 6834 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a38fd8748464831584a19438cbb3082b5a2dab15
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   6 months ago
config: mips-randconfig-r012-20210307 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4d90e460bcc7b3e5ff6c7e2e05e974772489c4b8)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 29398 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced'
@ 2021-03-07 17:19 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-03-07 17:19 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6948 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a38fd8748464831584a19438cbb3082b5a2dab15
commit: a510b616131f85215ba156ed67e5ed1c0701f80f MIPS: Add support for ZSTD-compressed kernels
date:   6 months ago
config: mips-randconfig-r012-20210307 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4d90e460bcc7b3e5ff6c7e2e05e974772489c4b8)
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=a510b616131f85215ba156ed67e5ed1c0701f80f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a510b616131f85215ba156ed67e5ed1c0701f80f
        # 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@intel.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:76:
   In file included from arch/mips/boot/compressed/../../../../lib/decompress_unzstd.c:75:
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' [-Wmissing-prototypes]
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
              ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:8: warning: no previous prototype for function 'ZSTD_getcBlockSize' [-Wmissing-prototypes]
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:394:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:8: warning: no previous prototype for function 'ZSTD_decodeLiteralsBlock' [-Wmissing-prototypes]
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:432:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) /* note : srcSize < BLOCKSIZE */
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:8: warning: no previous prototype for function 'ZSTD_decodeSeqHeaders' [-Wmissing-prototypes]
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:794:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize)
   ^
   static 
>> arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:8: warning: no previous prototype for function 'ZSTD_generateNxBytes' [-Wmissing-prototypes]
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
          ^
   arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:1497:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length)
   ^
   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 
   8 warnings generated.


vim +/ZSTD_createDCtx_advanced +126 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c

73f3d1b48f5069 Nick Terrell 2017-08-09  125  
73f3d1b48f5069 Nick Terrell 2017-08-09 @126  ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
73f3d1b48f5069 Nick Terrell 2017-08-09  127  {
73f3d1b48f5069 Nick Terrell 2017-08-09  128  	ZSTD_DCtx *dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  129  
73f3d1b48f5069 Nick Terrell 2017-08-09  130  	if (!customMem.customAlloc || !customMem.customFree)
73f3d1b48f5069 Nick Terrell 2017-08-09  131  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  132  
73f3d1b48f5069 Nick Terrell 2017-08-09  133  	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
73f3d1b48f5069 Nick Terrell 2017-08-09  134  	if (!dctx)
73f3d1b48f5069 Nick Terrell 2017-08-09  135  		return NULL;
73f3d1b48f5069 Nick Terrell 2017-08-09  136  	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
73f3d1b48f5069 Nick Terrell 2017-08-09  137  	ZSTD_decompressBegin(dctx);
73f3d1b48f5069 Nick Terrell 2017-08-09  138  	return dctx;
73f3d1b48f5069 Nick Terrell 2017-08-09  139  }
73f3d1b48f5069 Nick Terrell 2017-08-09  140  

:::::: The code at line 126 was first introduced by commit
:::::: 73f3d1b48f5069d46ba48aa28c2898dc93185560 lib: Add zstd modules

:::::: TO: Nick Terrell <terrelln@fb.com>
:::::: CC: Chris Mason <clm@fb.com>

---
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: 29398 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-02  2:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02  2:29 arch/mips/boot/compressed/../../../../lib/zstd/decompress.c:126:12: warning: no previous prototype for function 'ZSTD_createDCtx_advanced' kernel test robot
2021-09-02  2:29 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-03-24  1:29 kernel test robot
2021-03-24  1:29 ` kernel test robot
2021-03-07 17:19 kernel test robot
2021-03-07 17:19 ` 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.