Module Name:    src
Committed By:   riastradh
Date:           Wed Mar 23 23:20:52 UTC 2022

Modified Files:
        src/sys/kern: kern_entropy.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/kern/kern_entropy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_entropy.c
diff -u src/sys/kern/kern_entropy.c:1.52 src/sys/kern/kern_entropy.c:1.53
--- src/sys/kern/kern_entropy.c:1.52	Wed Mar 23 23:18:17 2022
+++ src/sys/kern/kern_entropy.c	Wed Mar 23 23:20:52 2022
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: kern_entropy
 #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 */

Reply via email to