Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jaegeuk-f2fs:dev-test 188/191] fs/f2fs/super.c:5283:6: warning: unused variable 'i'
@ 2025-05-13 12:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-13 12:20 UTC (permalink / raw)
  To: Hongbo Li
  Cc: llvm, oe-kbuild-all, linux-f2fs-devel, Jaegeuk Kim, Eric Sandeen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
head:   7274f75b0d876f1cc87349fe8e5c8b45f90695c5
commit: 33605141d92b1eb2a5e625a79abe35856a588662 [188/191] f2fs: switch to the new mount api
config: i386-buildonly-randconfig-2003-20250513 (https://download.01.org/0day-ci/archive/20250513/202505132038.wjQGfZCG-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250513/202505132038.wjQGfZCG-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/202505132038.wjQGfZCG-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/f2fs/super.c:5283:6: warning: unused variable 'i' [-Wunused-variable]
    5283 |         int i;
         |             ^
   fs/f2fs/super.c:370:20: warning: unused function 'ctx_set_flags' [-Wunused-function]
     370 | static inline void ctx_set_flags(struct f2fs_fs_context *ctx,
         |                    ^~~~~~~~~~~~~
   2 warnings generated.


vim +/i +5283 fs/f2fs/super.c

  5279	
  5280	static void f2fs_fc_free(struct fs_context *fc)
  5281	{
  5282		struct f2fs_fs_context *ctx = fc->fs_private;
> 5283		int i;
  5284	
  5285		if (!ctx)
  5286			return;
  5287	

-- 
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-13 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 12:20 [jaegeuk-f2fs:dev-test 188/191] fs/f2fs/super.c:5283:6: warning: unused variable 'i' 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