Subject: compiling -current failed...
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 03/24/2007 22:06:47
Hi,
got this one w/ -current source from ~an hour or so ago:
compile PADDI/sys_lwp.o
cc1: warnings being treated as errors
/u/NetBSD/src/sys/kern/sys_lwp.c: In function 'sys__lwp_create':
/u/NetBSD/src/sys/kern/sys_lwp.c:113: warning: implicit declaration of function 'uvm_uarea_free'
--- sys_lwp.o ---
*** [sys_lwp.o] Error code 1
1 error
nbmake: stopped in /u/NetBSD/arch/i386/obj/sys/arch/i386/compile/PADDI
With the following two patches kernel compiles again:
cvs diff -u uvm_glue.c
Index: uvm_glue.c
===================================================================
RCS file: /cvsroot/src/sys/uvm/uvm_glue.c,v
retrieving revision 1.104
diff -u -r1.104 uvm_glue.c
--- uvm_glue.c 4 Mar 2007 06:03:48 -0000 1.104
+++ uvm_glue.c 24 Mar 2007 21:01:29 -0000
@@ -101,7 +101,7 @@
static struct simplelock uvm_uareas_slock = SIMPLELOCK_INITIALIZER;
#define UAREA_NEXTFREE(uarea) (*(vaddr_t *)(UAREA_TO_USER(uarea)))
-static void uvm_uarea_free(vaddr_t);
+void uvm_uarea_free(vaddr_t);
/*
* XXXCDC: do these really belong here?
@@ -312,7 +312,7 @@
* uvm_uarea_free: free a u-area; never blocks
*/
-static inline void
+void
uvm_uarea_free(vaddr_t uaddr)
{
simple_lock(&uvm_uareas_slock);
cvs diff -u uvm_extern.h
Index: uvm_extern.h
===================================================================
RCS file: /cvsroot/src/sys/uvm/uvm_extern.h,v
retrieving revision 1.128
diff -u -r1.128 uvm_extern.h
--- uvm_extern.h 4 Mar 2007 06:03:48 -0000 1.128
+++ uvm_extern.h 24 Mar 2007 21:05:17 -0000
@@ -581,6 +581,7 @@
void uvm_kick_scheduler(void);
void uvm_swapin(struct lwp *);
bool uvm_uarea_alloc(vaddr_t *);
+void uvm_uarea_free(vaddr_t);
void uvm_uarea_drain(bool);
int uvm_vslock(struct vmspace *, void *, size_t, vm_prot_t);
void uvm_vsunlock(struct vmspace *, void *, size_t);
--
===============================================================================
Dipl.-Inform. Kurt Schreiner Leiter der Bibliotheks-EDV
Johannes Gutenberg-Universitaet Mainz Tel. : +49 6131 39 25134
Universitaetsbibliothek Fax. : +49 6131 39 24159 o. 23976
Jakob Welder Weg 6, 55128 Mainz eMail : kurt.schreiner at uni-mainz.de
===============================================================================