Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2019 21:53:05 +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: r356028 - head/sys/vm
Message-ID:  <201912222153.xBMLr5ok025720@repo.freebsd.org>

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



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