Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2020 00:44:54 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356342 - head/sys/sys
Message-ID:  <202001040044.0040isC1057109@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);					\



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