vfs: remove CTASSERT from VOP_UNLOCK_FLAGS

gcc does not like it and it's not worth working around just for that
compiler.
This commit is contained in:
Mateusz Guzik 2020-01-04 00:44:53 +00:00
parent 64a3ba61a5
commit 952f595351

View File

@ -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); \