svn commit: r356028 - head/sys/vm

Doug Moore dougm at FreeBSD.org
Sun Dec 22 21:53:06 UTC 2019


Author: dougm
Date: Sun Dec 22 21:53:05 2019
New Revision: 356028
URL: https://svnweb.freebsd.org/changeset/base/356028

Log:
  Fix typo using RB_INITIALIZER.
  
  The macro RB_INITIALIZER ignores its argument, but is documented to
  require "&head" as argument to initialize "head".  So using
  "_vm_phys_fictitious_tree" as the argument to initialize
  "vm_phys_fictitious_tree" is an inconsequential error, corrected here.
  
  Discussed with: alc

Modified:
  head/sys/vm/vm_phys.c

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c	Sun Dec 22 20:36:57 2019	(r356027)
+++ head/sys/vm/vm_phys.c	Sun Dec 22 21:53:05 2019	(r356028)
@@ -88,7 +88,7 @@ static int vm_phys_fictitious_cmp(struct vm_phys_ficti
     struct vm_phys_fictitious_seg *);
 
 RB_HEAD(fict_tree, vm_phys_fictitious_seg) vm_phys_fictitious_tree =
-    RB_INITIALIZER(_vm_phys_fictitious_tree);
+    RB_INITIALIZER(&vm_phys_fictitious_tree);
 
 struct vm_phys_fictitious_seg {
 	RB_ENTRY(vm_phys_fictitious_seg) node;


More information about the svn-src-head mailing list