All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Li <philip.li@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: lib/zstd/common/entropy_common.c:257:1: warning: the frame size of 1056 bytes is larger than 1024 bytes
Date: Sun, 13 Feb 2022 21:11:38 +0800	[thread overview]
Message-ID: <YgkDigfDPLJHV9Cw@rli9-dbox> (raw)
In-Reply-To: <202202131904.0y0h7bnY-lkp@intel.com>

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

On Sun, Feb 13, 2022 at 07:51:37PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   b81b1829e7e39f6cebdf6e4d5484eacbceda8554
> commit: e0c1b49f5b674cca7b10549c53b3791d0bbc90a8 lib: zstd: Upgrade to latest upstream zstd version 1.4.10
> date:   3 months ago
> config: powerpc-randconfig-r035-20220213 (https://download.01.org/0day-ci/archive/20220213/202202131904.0y0h7bnY-lkp(a)intel.com/config)
> compiler: powerpc-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=e0c1b49f5b674cca7b10549c53b3791d0bbc90a8
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout e0c1b49f5b674cca7b10549c53b3791d0bbc90a8
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/mtd/devices/ lib/zstd/
> 
> 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 >>):
> 
>    lib/zstd/common/entropy_common.c: In function 'HUF_readStats':
> >> lib/zstd/common/entropy_common.c:257:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Sorry for the false positive, kindly ignore this report.

>      257 | }
>          | ^
> 
> 
> vim +257 lib/zstd/common/entropy_common.c
> 
>    242	
>    243	
>    244	/*! HUF_readStats() :
>    245	    Read compact Huffman tree, saved by HUF_writeCTable().
>    246	    `huffWeight` is destination buffer.
>    247	    `rankStats` is assumed to be a table of at least HUF_TABLELOG_MAX U32.
>    248	    @return : size read from `src` , or an error Code .
>    249	    Note : Needed by HUF_readCTable() and HUF_readDTableX?() .
>    250	*/
>    251	size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats,
>    252	                     U32* nbSymbolsPtr, U32* tableLogPtr,
>    253	                     const void* src, size_t srcSize)
>    254	{
>    255	    U32 wksp[HUF_READ_STATS_WORKSPACE_SIZE_U32];
>    256	    return HUF_readStats_wksp(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */ 0);
>  > 257	}
>    258	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: Philip Li <philip.li@intel.com>
To: kernel test robot <lkp@intel.com>
Cc: Nick Terrell <terrelln@fb.com>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: Re: lib/zstd/common/entropy_common.c:257:1: warning: the frame size of 1056 bytes is larger than 1024 bytes
Date: Sun, 13 Feb 2022 21:11:38 +0800	[thread overview]
Message-ID: <YgkDigfDPLJHV9Cw@rli9-dbox> (raw)
In-Reply-To: <202202131904.0y0h7bnY-lkp@intel.com>

On Sun, Feb 13, 2022 at 07:51:37PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   b81b1829e7e39f6cebdf6e4d5484eacbceda8554
> commit: e0c1b49f5b674cca7b10549c53b3791d0bbc90a8 lib: zstd: Upgrade to latest upstream zstd version 1.4.10
> date:   3 months ago
> config: powerpc-randconfig-r035-20220213 (https://download.01.org/0day-ci/archive/20220213/202202131904.0y0h7bnY-lkp@intel.com/config)
> compiler: powerpc-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=e0c1b49f5b674cca7b10549c53b3791d0bbc90a8
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout e0c1b49f5b674cca7b10549c53b3791d0bbc90a8
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/mtd/devices/ lib/zstd/
> 
> 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 >>):
> 
>    lib/zstd/common/entropy_common.c: In function 'HUF_readStats':
> >> lib/zstd/common/entropy_common.c:257:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Sorry for the false positive, kindly ignore this report.

>      257 | }
>          | ^
> 
> 
> vim +257 lib/zstd/common/entropy_common.c
> 
>    242	
>    243	
>    244	/*! HUF_readStats() :
>    245	    Read compact Huffman tree, saved by HUF_writeCTable().
>    246	    `huffWeight` is destination buffer.
>    247	    `rankStats` is assumed to be a table of at least HUF_TABLELOG_MAX U32.
>    248	    @return : size read from `src` , or an error Code .
>    249	    Note : Needed by HUF_readCTable() and HUF_readDTableX?() .
>    250	*/
>    251	size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats,
>    252	                     U32* nbSymbolsPtr, U32* tableLogPtr,
>    253	                     const void* src, size_t srcSize)
>    254	{
>    255	    U32 wksp[HUF_READ_STATS_WORKSPACE_SIZE_U32];
>    256	    return HUF_readStats_wksp(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, wksp, sizeof(wksp), /* bmi2 */ 0);
>  > 257	}
>    258	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

  reply	other threads:[~2022-02-13 13:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13 11:51 lib/zstd/common/entropy_common.c:257:1: warning: the frame size of 1056 bytes is larger than 1024 bytes kernel test robot
2022-02-13 11:51 ` kernel test robot
2022-02-13 13:11 ` Philip Li [this message]
2022-02-13 13:11   ` Philip Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YgkDigfDPLJHV9Cw@rli9-dbox \
    --to=philip.li@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.