* [chao:bugfix/common 7/7] fs/f2fs/file.c:41:9: warning: variable 'end' set but not used
@ 2025-05-19 16:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-19 16:05 UTC (permalink / raw)
To: Chao Yu, Chao Yu; +Cc: llvm, oe-kbuild-all, Chao Yu, Chao Yu
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head: e016c01f389556a6ba04208719f95895cf5a5a6c
commit: e016c01f389556a6ba04208719f95895cf5a5a6c [7/7] f2fs: fix to zero post-eof page
config: arm-randconfig-001-20250519 (https://download.01.org/0day-ci/archive/20250519/202505192317.v8BHsr1M-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250519/202505192317.v8BHsr1M-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505192317.v8BHsr1M-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/f2fs/file.c:41:9: warning: variable 'end' set but not used [-Wunused-but-set-variable]
41 | loff_t end;
| ^
1 warning generated.
vim +/end +41 fs/f2fs/file.c
37
38 static void f2fs_zero_post_eof_page(struct inode *inode, loff_t new_size)
39 {
40 loff_t old_size = i_size_read(inode);
> 41 loff_t end;
42
43 if (new_size < old_size)
44 return;
45
46 end = min(new_size, round_up(old_size, PAGE_SIZE));
47 truncate_pagecache(inode, old_size);
48 }
49
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-19 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-19 16:05 [chao:bugfix/common 7/7] fs/f2fs/file.c:41:9: warning: variable 'end' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox