Source-Changes-HG archive

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

[src/trunk]: src/sys/kern entropy(9): Include <sys/lwp.h> and <sys/proc.h> ex...



details:   https://anonhg.NetBSD.org/src/rev/af308f3e1272
branches:  trunk
changeset: 364416:af308f3e1272
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Mar 23 23:20:52 2022 +0000

description:
entropy(9): Include <sys/lwp.h> and <sys/proc.h> explicitly.

Now that we use curlwp, struct lwp::l_pflag, and LP_BOUND, let's not
rely on side-loads from other .h files.

diffstat:

 sys/kern/kern_entropy.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r cdd8704afbe9 -r af308f3e1272 sys/kern/kern_entropy.c
--- a/sys/kern/kern_entropy.c   Wed Mar 23 23:18:17 2022 +0000
+++ b/sys/kern/kern_entropy.c   Wed Mar 23 23:20:52 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_entropy.c,v 1.52 2022/03/23 23:18:17 riastradh Exp $      */
+/*     $NetBSD: kern_entropy.c,v 1.53 2022/03/23 23:20:52 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.52 2022/03/23 23:18:17 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.53 2022/03/23 23:20:52 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -93,10 +93,12 @@
 #include <sys/kernel.h>
 #include <sys/kmem.h>
 #include <sys/kthread.h>
+#include <sys/lwp.h>
 #include <sys/module_hook.h>
 #include <sys/mutex.h>
 #include <sys/percpu.h>
 #include <sys/poll.h>
+#include <sys/proc.h>
 #include <sys/queue.h>
 #include <sys/reboot.h>
 #include <sys/rnd.h>           /* legacy kernel API */



Home | Main Index | Thread Index | Old Index