From 952f59535103117d7346efa5e601a1e56139940d Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sat, 4 Jan 2020 00:44:53 +0000 Subject: [PATCH] vfs: remove CTASSERT from VOP_UNLOCK_FLAGS gcc does not like it and it's not worth working around just for that compiler. --- sys/sys/vnode.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index a6cf9628292..82692de345c 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -960,8 +960,6 @@ void vn_fsid(struct vnode *vp, struct vattr *va); int _flags = (flags); \ int _error; \ \ - CTASSERT(__builtin_constant_p(flags) ? \ - (flags & ~(LK_INTERLOCK | LK_RELEASE)) == 0 : 1); \ if ((_flags & ~(LK_INTERLOCK | LK_RELEASE)) != 0) \ panic("%s: unsupported flags %x\n", __func__, flags); \ _error = VOP_UNLOCK(_vp); \