Skip to content

Commit

Permalink
entropy(9): Include <sys/lwp.h> and <sys/proc.h> explicitly.
Browse files Browse the repository at this point in the history
Now that we use curlwp, struct lwp::l_pflag, and LP_BOUND, let's not
rely on side-loads from other .h files.
  • Loading branch information
riastradh authored and riastradh committed Mar 23, 2022
1 parent 67cbad1 commit 7f4f5a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/kern/kern_entropy.c
@@ -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.
Expand Down Expand Up @@ -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>
Expand All @@ -93,10 +93,12 @@ __KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.52 2022/03/23 23:18:17 riastradh
#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 */
Expand Down

0 comments on commit 7f4f5a2

Please sign in to comment.