* fs/f2fs/compress.c:276 lz4_decompress_pages() warn: should '((1) << 12) << dic->log_cluster_size' be a 64 bit
@ 2020-10-30 3:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-30 3:39 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2780 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
CC: Jaegeuk Kim <jaegeuk@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 07e0887302450a62f51dba72df6afb5fabb23d1c
commit: 4c8ff7095bef64fc47e996a938f7d57f9e077da3 f2fs: support data compression
date: 10 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 10 months ago
config: nios2-randconfig-m031-20201030 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
fs/f2fs/compress.c:276 lz4_decompress_pages() warn: should '((1) << 12) << dic->log_cluster_size' be a 64 bit type?
Old smatch warnings:
fs/f2fs/compress.c:212 lzo_decompress_pages() warn: should '((1) << 12) << dic->log_cluster_size' be a 64 bit type?
vim +276 fs/f2fs/compress.c
4c8ff7095bef64f Chao Yu 2019-11-01 262
4c8ff7095bef64f Chao Yu 2019-11-01 263 static int lz4_decompress_pages(struct decompress_io_ctx *dic)
4c8ff7095bef64f Chao Yu 2019-11-01 264 {
4c8ff7095bef64f Chao Yu 2019-11-01 265 int ret;
4c8ff7095bef64f Chao Yu 2019-11-01 266
4c8ff7095bef64f Chao Yu 2019-11-01 267 ret = LZ4_decompress_safe(dic->cbuf->cdata, dic->rbuf,
4c8ff7095bef64f Chao Yu 2019-11-01 268 dic->clen, dic->rlen);
4c8ff7095bef64f Chao Yu 2019-11-01 269 if (ret < 0) {
4c8ff7095bef64f Chao Yu 2019-11-01 270 printk_ratelimited("%sF2FS-fs (%s): lz4 decompress failed, ret:%d\n",
4c8ff7095bef64f Chao Yu 2019-11-01 271 KERN_ERR, F2FS_I_SB(dic->inode)->sb->s_id, ret);
4c8ff7095bef64f Chao Yu 2019-11-01 272 return -EIO;
4c8ff7095bef64f Chao Yu 2019-11-01 273 }
4c8ff7095bef64f Chao Yu 2019-11-01 274
4c8ff7095bef64f Chao Yu 2019-11-01 275 if (ret != PAGE_SIZE << dic->log_cluster_size) {
4c8ff7095bef64f Chao Yu 2019-11-01 @276 printk_ratelimited("%sF2FS-fs (%s): lz4 invalid rlen:%zu, "
4c8ff7095bef64f Chao Yu 2019-11-01 277 "expected:%lu\n", KERN_ERR,
4c8ff7095bef64f Chao Yu 2019-11-01 278 F2FS_I_SB(dic->inode)->sb->s_id,
4c8ff7095bef64f Chao Yu 2019-11-01 279 dic->rlen,
4c8ff7095bef64f Chao Yu 2019-11-01 280 PAGE_SIZE << dic->log_cluster_size);
4c8ff7095bef64f Chao Yu 2019-11-01 281 return -EIO;
4c8ff7095bef64f Chao Yu 2019-11-01 282 }
4c8ff7095bef64f Chao Yu 2019-11-01 283 return 0;
4c8ff7095bef64f Chao Yu 2019-11-01 284 }
4c8ff7095bef64f Chao Yu 2019-11-01 285
---
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: 23095 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-30 3:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-30 3:39 fs/f2fs/compress.c:276 lz4_decompress_pages() warn: should '((1) << 12) << dic->log_cluster_size' be a 64 bit 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.