diff mbox series

[3/4] xfs: make xfs_iomap_page_ops static

Message ID 167149471429.336919.12382220831144249809.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series xfs: random fixes for 6.2, part 3 | expand

Commit Message

Darrick J. Wong Dec. 20, 2022, 12:05 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Shut up the sparse warnings about this variable that isn't referenced
anywhere else.

Fixes: cd89a0950c40 ("xfs: use iomap_valid method to detect stale cached iomaps")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 fs/xfs/xfs_iomap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dave Chinner Dec. 20, 2022, 4:49 a.m. UTC | #1
On Mon, Dec 19, 2022 at 04:05:14PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Shut up the sparse warnings about this variable that isn't referenced
> anywhere else.
> 
> Fixes: cd89a0950c40 ("xfs: use iomap_valid method to detect stale cached iomaps")
> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
> ---
>  fs/xfs/xfs_iomap.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
> index 669c1bc5c3a7..fc1946f80a4a 100644
> --- a/fs/xfs/xfs_iomap.c
> +++ b/fs/xfs/xfs_iomap.c
> @@ -83,7 +83,7 @@ xfs_iomap_valid(
>  	return true;
>  }
>  
> -const struct iomap_page_ops xfs_iomap_page_ops = {
> +static const struct iomap_page_ops xfs_iomap_page_ops = {
>  	.iomap_valid		= xfs_iomap_valid,
>  };

Oops, yeah.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
diff mbox series

Patch

diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index 669c1bc5c3a7..fc1946f80a4a 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -83,7 +83,7 @@  xfs_iomap_valid(
 	return true;
 }
 
-const struct iomap_page_ops xfs_iomap_page_ops = {
+static const struct iomap_page_ops xfs_iomap_page_ops = {
 	.iomap_valid		= xfs_iomap_valid,
 };