Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2019 07:43:16 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351182 - head/sys/vm
Message-ID:  <201908180743.x7I7hG3j068269@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Sun Aug 18 07:43:15 2019
New Revision: 351182
URL: https://svnweb.freebsd.org/changeset/base/351182

Log:
  vm_phys_avail_find is only used on NUMA kernels.  Fix a build error.

Modified:
  head/sys/vm/vm_phys.c

Modified: head/sys/vm/vm_phys.c
==============================================================================
--- head/sys/vm/vm_phys.c	Sun Aug 18 07:06:31 2019	(r351181)
+++ head/sys/vm/vm_phys.c	Sun Aug 18 07:43:15 2019	(r351182)
@@ -1538,6 +1538,7 @@ vm_phys_avail_check(int i)
 /*
  * Return the index of an overlapping phys_avail entry or -1.
  */
+#ifdef NUMA
 static int
 vm_phys_avail_find(vm_paddr_t pa)
 {
@@ -1548,6 +1549,7 @@ vm_phys_avail_find(vm_paddr_t pa)
 			return (i);
 	return (-1);
 }
+#endif
 
 /*
  * Return the index of the largest entry.



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