Skip to contentSkip to conversation

fs/ntfs3: make ntfs_writeback_ops static

PATCH Applied [email protected] 2 participants 2 messages Jan 7 – Jan 16 NTFS3 filesystem

lore
Share & tools
lore
#0 lore raw

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?

---
 fs/ntfs3/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/inode.c +1 -1
index b969ad7c3258..636aa77e20e4 100644
@@ -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
maintainer Applied
#1 lore raw
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?

---
  fs/ntfs3/inode.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/ntfs3/inode.c +0 -0
index b969ad7c3258..636aa77e20e4 100644

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