From be7f06fbc97515cc5f34bf02d2d88a07f96a36fd Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 15 Nov 2017 17:25:23 +0100 Subject: [PATCH] kernel/hammer2: Fix compilation without INVARIANTS. Reported-by: ohum --- sys/vfs/hammer2/hammer2_cluster.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vfs/hammer2/hammer2_cluster.c b/sys/vfs/hammer2/hammer2_cluster.c index 51e2ffb608..138a96c9ea 100644 --- a/sys/vfs/hammer2/hammer2_cluster.c +++ b/sys/vfs/hammer2/hammer2_cluster.c @@ -125,6 +125,7 @@ hammer2_cluster_type(hammer2_cluster_t *cluster) return 0; } +#ifdef INVARIANTS /* * Returns non-zero if the cluster's focus is flagged as being modified. * @@ -140,6 +141,7 @@ hammer2_cluster_modified(hammer2_cluster_t *cluster) } return 0; } +#endif /* * Returns the bref of the cluster's focus, sans any data-offset information -- 2.11.4.GIT