All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [djwong-xfs:fuse-service-container 33/87] fs/fuse/file_iomap.c:112:10-13: Unneeded variable: "ret". Return "0" on line 126
Date: Wed, 17 Dec 2025 22:22:13 +0800	[thread overview]
Message-ID: <202512172229.s772GZJh-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-12-17 14:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202512172229.s772GZJh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=darrick.wong@oracle.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.