git: b77bdfdb67c2 - main - vfs: fix non-INVARIANTS build after 5b5b7e2ca2fa9a2418dd51749f4ef6f881ae7179
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Sep 2022 10:45:41 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=b77bdfdb67c2e9660658a0373662e4263a905e90
commit b77bdfdb67c2e9660658a0373662e4263a905e90
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-09-17 10:45:12 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-09-17 10:45:12 +0000
vfs: fix non-INVARIANTS build after 5b5b7e2ca2fa9a2418dd51749f4ef6f881ae7179
Reported by: gj
---
sys/kern/vfs_lookup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 7fac64ff1b38..7e6ab13a4fd0 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -76,10 +76,10 @@ __FBSDID("$FreeBSD$");
#ifdef INVARIANTS
static void NDVALIDATE_impl(struct nameidata *, int);
-#endif
-
#define NDVALIDATE(ndp) NDVALIDATE_impl(ndp, __LINE__)
-
+#else
+#define NDVALIDATE(ndp)
+#endif
SDT_PROVIDER_DEFINE(vfs);
SDT_PROBE_DEFINE4(vfs, namei, lookup, entry, "struct vnode *", "char *",