svn commit: r356342 - head/sys/sys

Mateusz Guzik mjg at FreeBSD.org
Sat Jan 4 00:44:54 UTC 2020


Author: mjg
Date: Sat Jan  4 00:44:53 2020
New Revision: 356342
URL: https://svnweb.freebsd.org/changeset/base/356342

Log:
  vfs: remove CTASSERT from VOP_UNLOCK_FLAGS
  
  gcc does not like it and it's not worth working around just for that
  compiler.

Modified:
  head/sys/sys/vnode.h

Modified: head/sys/sys/vnode.h
==============================================================================
--- head/sys/sys/vnode.h	Sat Jan  4 00:44:49 2020	(r356341)
+++ head/sys/sys/vnode.h	Sat Jan  4 00:44:53 2020	(r356342)
@@ -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);					\


More information about the svn-src-all mailing list