fs/ntfs3: make ntfs_writeback_ops static
PATCH 1/1 fs/ntfs3: make ntfs_writeback_ops static
From: sunliming <[email protected]>
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 <[email protected]>
Signed-off-by sunliming <[email protected]>
--- fs/ntfs3/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/inode.c +1 -1
@@ -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, };
Signature · 1 line
2.25.1
Quoted 18 lines · On 1/7/26 08:37, [email protected] wrote:
From: sunliming <[email protected]>
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 <[email protected]>Signed-off-by sunliming <[email protected]>--- fs/ntfs3/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ntfs3/inode.c +0
-0
fs/ntfs3/inode.c static ssize_t ntfs_writeback_range(struct iomap_writepage_ctx *wpc, · line 975
Quoted 8 lines
fs/ntfs3/inode.c +1
-1@@ -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, };
Applied, will be sent in the next pull request, thanks.
Regards,
Konstantin