All of lore.kernel.org
 help / color / mirror / Atom feed
* [djwong-xfs:fuse-service-container 33/87] fs/fuse/file_iomap.c:112:10-13: Unneeded variable: "ret". Return "0" on line 126
@ 2025-12-17 14:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-17 14:22 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git fuse-service-container
head:   2e08cf085a3a45dfa83afdef3bfcc69b7e4a6684
commit: b12a7ff891210a972a6ccd32ec1d16e954d45b81 [33/87] fuse: implement the basic iomap mechanisms
config: arm-randconfig-r054-20251217 (https://download.01.org/0day-ci/archive/20251217/202512172229.s772GZJh-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0

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/202512172229.s772GZJh-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> fs/fuse/file_iomap.c:112:10-13: Unneeded variable: "ret". Return "0" on line 126
   fs/fuse/file_iomap.c:140:10-13: Unneeded variable: "ret". Return "0" on line 151
   fs/fuse/file_iomap.c:162:10-13: Unneeded variable: "ret". Return "0" on line 176

vim +112 fs/fuse/file_iomap.c

   102	
   103	/* Convert IOMAP_F_* mapping state flags to FUSE_IOMAP_F_* */
   104	#define XMAP(word) \
   105		if (iomap_f_flags & IOMAP_F_##word) \
   106			ret |= FUSE_IOMAP_F_##word
   107	#define YMAP(iword, oword) \
   108		if (iomap_f_flags & IOMAP_F_##iword) \
   109			ret |= FUSE_IOMAP_F_##oword
   110	static inline uint16_t fuse_iomap_flags_to_server(uint16_t iomap_f_flags)
   111	{
 > 112		uint16_t ret = 0;
   113	
   114		XMAP(NEW);
   115		XMAP(DIRTY);
   116		XMAP(SHARED);
   117		XMAP(MERGED);
   118		XMAP(BOUNDARY);
   119		XMAP(ANON_WRITE);
   120		XMAP(ATOMIC_BIO);
   121		YMAP(PRIVATE, WANT_IOMAP_END);
   122	
   123		XMAP(SIZE_CHANGED);
   124		XMAP(STALE);
   125	
 > 126		return ret;
   127	}
   128	#undef YMAP
   129	#undef XMAP
   130	

-- 
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-12-17 14:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 14:22 [djwong-xfs:fuse-service-container 33/87] fs/fuse/file_iomap.c:112:10-13: Unneeded variable: "ret". Return "0" on line 126 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.