Hi,

on a RAMDISK kernel this function is not used, thus clang complains.
Simply guard it with SMALL_KERNEL, like the rest of that part of the
code.

ok?

Patrick

diff --git a/sys/uvm/uvm_addr.c b/sys/uvm/uvm_addr.c
index af33700273b..4527e1fda78 100644
--- a/sys/uvm/uvm_addr.c
+++ b/sys/uvm/uvm_addr.c
@@ -82,6 +82,7 @@ struct uaddr_pivot_state {
        struct uaddr_pivot               up_pivots[NUM_PIVOTS];
 };
 
+#ifndef SMALL_KERNEL
 /*
  * Free space comparison.
  * Compares smaller free-space before larger free-space.
@@ -94,6 +95,7 @@ uvm_mapent_fspace_cmp(const struct vm_map_entry *e1,
                return (e1->fspace < e2->fspace ? -1 : 1);
        return (e1->start < e2->start ? -1 : e1->start > e2->start);
 }
+#endif /* !SMALL_KERNEL */
 
 /* Forward declaration (see below). */
 extern const struct uvm_addr_functions uaddr_kernel_functions;

Reply via email to