]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs/ntfs3: make ntfs_writeback_ops static
authorsunliming <sunliming@kylinos.cn>
Wed, 7 Jan 2026 07:37:09 +0000 (15:37 +0800)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 15 Jan 2026 04:58:00 +0000 (05:58 +0100)
Fix below sparse warnings:
fs/ntfs3/inode.c:972:34: sparse: sparse: symbol 'ntfs_writeback_ops' was not declared.
Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601061424.nbKLNwC5-lkp@intel.com/
Signed-off-by: sunliming <sunliming@kylinos.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c

index b969ad7c32584466efa81791521e35f57a7b4ab3..636aa77e20e4e98f01367cad429b1229166ca841 100644 (file)
@@ -969,7 +969,7 @@ static ssize_t ntfs_writeback_range(struct iomap_writepage_ctx *wpc,
 }
 
 
-const struct iomap_writeback_ops ntfs_writeback_ops = {
+static const struct iomap_writeback_ops ntfs_writeback_ops = {
        .writeback_range = ntfs_writeback_range,
        .writeback_submit = iomap_ioend_writeback_submit,
 };