oe-kbuild.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [dhowells-fs:cifs-netfs 7/40] fs/netfs/direct_write.c:165 netfs_unbuffered_write_iter() error: uninitialized symbol 'end'.
Date: Thu, 18 Apr 2024 13:51:28 +0800	[thread overview]
Message-ID: <202404181313.r7xPKXaJ-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: David Howells <dhowells@redhat.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git cifs-netfs
head:   8dc73cdbbce16b41d4de537600385262aa8b7613
commit: 3a3871ab79037b2330014b3cbe16676c74e10c00 [7/40] mm: Provide a means of invalidation without using launder_folio
:::::: branch date: 15 hours ago
:::::: commit date: 17 hours ago
config: i386-randconfig-141-20240418 (https://download.01.org/0day-ci/archive/20240418/202404181313.r7xPKXaJ-lkp@intel.com/config)
compiler: gcc-10 (Ubuntu 10.5.0-1ubuntu1) 10.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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202404181313.r7xPKXaJ-lkp@intel.com/

New smatch warnings:
fs/netfs/direct_write.c:165 netfs_unbuffered_write_iter() error: uninitialized symbol 'end'.

Old smatch warnings:
fs/netfs/direct_write.c:169 netfs_unbuffered_write_iter() error: uninitialized symbol 'end'.

vim +/end +165 fs/netfs/direct_write.c

153a9961b55110 David Howells 2022-02-21  118  
153a9961b55110 David Howells 2022-02-21  119  /**
153a9961b55110 David Howells 2022-02-21  120   * netfs_unbuffered_write_iter - Unbuffered write to a file
153a9961b55110 David Howells 2022-02-21  121   * @iocb: IO state structure
153a9961b55110 David Howells 2022-02-21  122   * @from: iov_iter with data to write
153a9961b55110 David Howells 2022-02-21  123   *
153a9961b55110 David Howells 2022-02-21  124   * Do an unbuffered write to a file, writing the data directly to the server
153a9961b55110 David Howells 2022-02-21  125   * and not lodging the data in the pagecache.
153a9961b55110 David Howells 2022-02-21  126   *
153a9961b55110 David Howells 2022-02-21  127   * Return:
153a9961b55110 David Howells 2022-02-21  128   * * Negative error code if no data has been written at all of
153a9961b55110 David Howells 2022-02-21  129   *   vfs_fsync_range() failed for a synchronous write
153a9961b55110 David Howells 2022-02-21  130   * * Number of bytes written, even for truncated writes
153a9961b55110 David Howells 2022-02-21  131   */
153a9961b55110 David Howells 2022-02-21  132  ssize_t netfs_unbuffered_write_iter(struct kiocb *iocb, struct iov_iter *from)
153a9961b55110 David Howells 2022-02-21  133  {
153a9961b55110 David Howells 2022-02-21  134  	struct file *file = iocb->ki_filp;
3a3871ab79037b David Howells 2024-03-27  135  	struct address_space *mapping = file->f_mapping;
3a3871ab79037b David Howells 2024-03-27  136  	struct inode *inode = mapping->host;
153a9961b55110 David Howells 2022-02-21  137  	struct netfs_inode *ictx = netfs_inode(inode);
100ccd18bb41ea David Howells 2023-11-24  138  	unsigned long long end;
153a9961b55110 David Howells 2022-02-21  139  	ssize_t ret;
3a3871ab79037b David Howells 2024-03-27  140  	loff_t pos = iocb->ki_pos;
153a9961b55110 David Howells 2022-02-21  141  
3a3871ab79037b David Howells 2024-03-27  142  	_enter("%llx,%zx,%llx", pos, iov_iter_count(from), i_size_read(inode));
153a9961b55110 David Howells 2022-02-21  143  
ca9ca1a5d5a980 David Howells 2024-01-29  144  	if (!iov_iter_count(from))
ca9ca1a5d5a980 David Howells 2024-01-29  145  		return 0;
ca9ca1a5d5a980 David Howells 2024-01-29  146  
153a9961b55110 David Howells 2022-02-21  147  	trace_netfs_write_iter(iocb, from);
4088e389476e3b David Howells 2024-01-05  148  	netfs_stat(&netfs_n_rh_dio_write);
153a9961b55110 David Howells 2022-02-21  149  
153a9961b55110 David Howells 2022-02-21  150  	ret = netfs_start_io_direct(inode);
153a9961b55110 David Howells 2022-02-21  151  	if (ret < 0)
153a9961b55110 David Howells 2022-02-21  152  		return ret;
153a9961b55110 David Howells 2022-02-21  153  	ret = generic_write_checks(iocb, from);
ca9ca1a5d5a980 David Howells 2024-01-29  154  	if (ret <= 0)
153a9961b55110 David Howells 2022-02-21  155  		goto out;
153a9961b55110 David Howells 2022-02-21  156  	ret = file_remove_privs(file);
153a9961b55110 David Howells 2022-02-21  157  	if (ret < 0)
153a9961b55110 David Howells 2022-02-21  158  		goto out;
153a9961b55110 David Howells 2022-02-21  159  	ret = file_update_time(file);
153a9961b55110 David Howells 2022-02-21  160  	if (ret < 0)
153a9961b55110 David Howells 2022-02-21  161  		goto out;
3a3871ab79037b David Howells 2024-03-27  162  	if (iocb->ki_flags & IOCB_NOWAIT) {
3a3871ab79037b David Howells 2024-03-27  163  		/* We could block if there are any pages in the range. */
3a3871ab79037b David Howells 2024-03-27  164  		ret = -EAGAIN;
3a3871ab79037b David Howells 2024-03-27 @165  		if (filemap_range_has_page(mapping, pos, end))

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-04-18  5:52 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=202404181313.r7xPKXaJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).