Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern kern/init_main.c: Get extern lwp0 from sys/lwp.h.



details:   https://anonhg.NetBSD.org/src/rev/a5b4ef597ece
branches:  trunk
changeset: 372055:a5b4ef597ece
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:20:47 2022 +0000

description:
kern/init_main.c: Get extern lwp0 from sys/lwp.h.

diffstat:

 sys/kern/init_main.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 2a6b603be61f -r a5b4ef597ece sys/kern/init_main.c
--- a/sys/kern/init_main.c      Wed Oct 26 23:20:36 2022 +0000
+++ b/sys/kern/init_main.c      Wed Oct 26 23:20:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.540 2022/07/21 14:07:16 simonb Exp $   */
+/*     $NetBSD: init_main.c,v 1.541 2022/10/26 23:20:47 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.540 2022/07/21 14:07:16 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.541 2022/10/26 23:20:47 riastradh Exp $");
 
 #include "opt_cnmagic.h"
 #include "opt_ddb.h"
@@ -138,6 +138,7 @@
 #include <sys/kernel.h>
 #include <sys/mount.h>
 #include <sys/proc.h>
+#include <sys/lwp.h>
 #include <sys/kthread.h>
 #include <sys/resourcevar.h>
 #include <sys/signalvar.h>
@@ -230,7 +231,6 @@
 
 #include <sys/userconf.h>
 
-extern struct lwp lwp0;
 extern time_t rootfstime;
 
 #ifndef curlwp



Home | Main Index | Thread Index | Old Index