git: e6fb3b518ac4 - main - vfs: unbreak builds when MAC is not defined

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Tue, 20 Oct 2026 05:50:04 UTC
The branch main has been updated by mjg:

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

commit e6fb3b518ac453a714dcf2fa3fbb84f31907d84c
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2026-10-20 05:49:18 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2026-10-20 05:49:18 +0000

    vfs: unbreak builds when MAC is not defined
    
    Sorts out powerpc.QORIQ64 build failure.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/sys/vnode.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 39b8c4fb1952..06cec78992cf 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1002,6 +1002,10 @@ void	vop_mkdir_debugpost(void *a, int rc);
 
 void	vop_rename_fail(struct vop_rename_args *ap);
 
+#ifndef MAC
+#define mac_vnode_check_stat(active_cred, file_cred, vp)	0
+#endif
+
 #define	vop_stat_helper_pre(ap)	({						\
 	struct vop_stat_args *_ap = (ap);					\
 	int _error;								\
@@ -1016,6 +1020,11 @@ void	vop_rename_fail(struct vop_rename_args *ap);
 	_error;									\
 })
 
+
+#ifndef MAC
+#undef mac_vnode_check_stat
+#endif
+
 #define	vop_stat_helper_post(ap, error)	({					\
 	struct vop_stat_args *_ap = (ap);					\
 	int _error = (error);							\