* [paragon-software-group-ntfs3:master 16/16] fs/ntfs3/inode.c:1024 ntfs_writepages() error: uninitialized symbol 'folio'.
@ 2026-01-05 12:10 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2026-01-05 12:10 UTC (permalink / raw)
To: oe-kbuild, Konstantin Komarov; +Cc: lkp, oe-kbuild-all, ntfs3
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-05 12:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 12:10 [paragon-software-group-ntfs3:master 16/16] fs/ntfs3/inode.c:1024 ntfs_writepages() error: uninitialized symbol 'folio' Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox