Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Sep 2022 10:45:41 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b77bdfdb67c2 - main - vfs: fix non-INVARIANTS build after 5b5b7e2ca2fa9a2418dd51749f4ef6f881ae7179
Message-ID:  <202209171045.28HAjfmW099970@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209171045.28HAjfmW099970>