Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2020 22:47:55 +0000 (UTC)
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362562 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202006232247.05NMltFt083762@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougm
Date: Tue Jun 23 22:47:54 2020
New Revision: 362562
URL: https://svnweb.freebsd.org/changeset/base/362562

Log:
  In r362552, RB_SET_PARENT is defined, and use in parens in
  RB_CLEAR_NODE.  But it is not an expression, and ought not to be
  enclosed in parens.  Remove them.
  
  Approved by:	markj
  Differential Revision:	https://reviews.freebsd.org/D25421

Modified:
  head/sys/compat/linuxkpi/common/include/linux/rbtree.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Tue Jun 23 21:44:00 2020	(r362561)
+++ head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Tue Jun 23 22:47:54 2020	(r362562)
@@ -60,7 +60,7 @@ RB_PROTOTYPE(linux_root, rb_node, __entry, panic_cmp);
 
 #define RB_EMPTY_ROOT(root)     RB_EMPTY((struct linux_root *)root)
 #define RB_EMPTY_NODE(node)     (RB_PARENT(node, __entry) == node)
-#define RB_CLEAR_NODE(node)     (RB_SET_PARENT(node, node, __entry))
+#define RB_CLEAR_NODE(node)     RB_SET_PARENT(node, node, __entry)
 
 #define	rb_insert_color(node, root)					\
 	linux_root_RB_INSERT_COLOR((struct linux_root *)(root), (node))



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