git: fe6aee442d4d - main - vfs_subr.c: fix signature mismatch for close method

From: ShengYi Hung <aokblast_at_FreeBSD.org>
Date: Sun, 18 Oct 2026 02:29:45 UTC
The branch main has been updated by aokblast:

URL: https://cgit.FreeBSD.org/src/commit/?id=fe6aee442d4de11864f511509ece76286b73f5b9

commit fe6aee442d4de11864f511509ece76286b73f5b9
Author:     ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-05-23 14:43:06 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-10-18 02:29:41 +0000

    vfs_subr.c: fix signature mismatch for close method
    
    Reviewed by:    jhb
    Differential Revision:  https://reviews.freebsd.org/D49166
---
 sys/kern/vfs_subr.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index b4eb776e9158..e2d43025e588 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -5374,7 +5374,7 @@ vn_pollrecord(struct vnode *vp, struct thread *td, int events)
 /*
  * Routine to create and manage a filesystem syncer vnode.
  */
-#define sync_close ((int (*)(struct  vop_close_args *))nullop)
+static int	sync_close(struct vop_close_args *);
 static int	sync_fsync(struct  vop_fsync_args *);
 static int	sync_inactive(struct  vop_inactive_args *);
 static int	sync_reclaim(struct  vop_reclaim_args *);
@@ -5468,6 +5468,12 @@ vfs_deallocate_syncvnode(struct mount *mp)
 		vrele(vp);
 }
 
+static int
+sync_close(struct vop_close_args *ap __unused)
+{
+	return (0);
+}
+
 /*
  * Do a lazy sync of the filesystem.
  */