From: Dan Carpenter <dan.carpenter@linaro.org>
To: oe-kbuild@lists.linux.dev,
Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, ntfs3@lists.linux.dev
Subject: [paragon-software-group-ntfs3:master 16/16] fs/ntfs3/inode.c:1024 ntfs_writepages() error: uninitialized symbol 'folio'.
Date: Mon, 5 Jan 2026 15:10:10 +0300 [thread overview]
Message-ID: <202601010513.axd56bks-lkp@intel.com> (raw)
tree: https://github.com/Paragon-Software-Group/linux-ntfs3.git master
head: 099ef9ab9203dff327f2d61e44773f9acbc01f13
commit: 099ef9ab9203dff327f2d61e44773f9acbc01f13 [16/16] fs/ntfs3: implement iomap-based file operations
config: um-randconfig-r072-20260101 (https://download.01.org/0day-ci/archive/20260101/202601010513.axd56bks-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.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 <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202601010513.axd56bks-lkp@intel.com/
smatch warnings:
fs/ntfs3/inode.c:1024 ntfs_writepages() error: uninitialized symbol 'folio'.
vim +/folio +1024 fs/ntfs3/inode.c
099ef9ab9203df Konstantin Komarov 2025-12-26 1002 static int ntfs_writepages(struct address_space *mapping,
099ef9ab9203df Konstantin Komarov 2025-12-26 1003 struct writeback_control *wbc)
099ef9ab9203df Konstantin Komarov 2025-12-26 1004 {
099ef9ab9203df Konstantin Komarov 2025-12-26 1005 int err;
099ef9ab9203df Konstantin Komarov 2025-12-26 1006 struct inode *inode = mapping->host;
099ef9ab9203df Konstantin Komarov 2025-12-26 1007 struct ntfs_inode *ni = ntfs_i(inode);
099ef9ab9203df Konstantin Komarov 2025-12-26 1008 struct iomap_writepage_ctx wpc = {
099ef9ab9203df Konstantin Komarov 2025-12-26 1009 .inode = mapping->host,
099ef9ab9203df Konstantin Komarov 2025-12-26 1010 .wbc = wbc,
099ef9ab9203df Konstantin Komarov 2025-12-26 1011 .ops = &ntfs_writeback_ops,
099ef9ab9203df Konstantin Komarov 2025-12-26 1012 };
099ef9ab9203df Konstantin Komarov 2025-12-26 1013
099ef9ab9203df Konstantin Komarov 2025-12-26 1014 /* Avoid any operation if inode is bad. */
099ef9ab9203df Konstantin Komarov 2025-12-26 1015 if (unlikely(is_bad_ni(ni)))
099ef9ab9203df Konstantin Komarov 2025-12-26 1016 return -EINVAL;
099ef9ab9203df Konstantin Komarov 2025-12-26 1017
099ef9ab9203df Konstantin Komarov 2025-12-26 1018 if (unlikely(ntfs3_forced_shutdown(inode->i_sb)))
099ef9ab9203df Konstantin Komarov 2025-12-26 1019 return -EIO;
099ef9ab9203df Konstantin Komarov 2025-12-26 1020
099ef9ab9203df Konstantin Komarov 2025-12-26 1021 if (is_resident(ni)) {
099ef9ab9203df Konstantin Komarov 2025-12-26 1022 struct folio *folio;
099ef9ab9203df Konstantin Komarov 2025-12-26 1023
099ef9ab9203df Konstantin Komarov 2025-12-26 @1024 while ((folio = writeback_iter(mapping, wbc, folio, &err)))
^^^^^
Uninitialized.
099ef9ab9203df Konstantin Komarov 2025-12-26 1025 err = ntfs_resident_writepage(folio, wbc);
099ef9ab9203df Konstantin Komarov 2025-12-26 1026
82cae269cfa953 Konstantin Komarov 2021-08-13 1027 return err;
82cae269cfa953 Konstantin Komarov 2021-08-13 1028 }
82cae269cfa953 Konstantin Komarov 2021-08-13 1029
099ef9ab9203df Konstantin Komarov 2025-12-26 1030 return iomap_writepages(&wpc);
099ef9ab9203df Konstantin Komarov 2025-12-26 1031 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-01-05 12:10 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=202601010513.axd56bks-lkp@intel.com \
--to=dan.carpenter@linaro.org \
--cc=almaz.alexandrovich@paragon-software.com \
--cc=lkp@intel.com \
--cc=ntfs3@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--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