Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178104217
D19409.1795973371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D19409.1795973371.diff
View Options
Index: sys/dev/random/fortuna.c
===================================================================
--- sys/dev/random/fortuna.c
+++ sys/dev/random/fortuna.c
@@ -35,10 +35,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/param.h>
#include <sys/limits.h>
#ifdef _KERNEL
-#include <sys/param.h>
#include <sys/fail.h>
#include <sys/kernel.h>
#include <sys/lock.h>
@@ -50,17 +50,7 @@
#include <sys/systm.h>
#include <machine/cpu.h>
-
-#include <crypto/rijndael/rijndael-api-fst.h>
-#include <crypto/sha2/sha256.h>
-
-#include <dev/random/hash.h>
-#include <dev/random/randomdev.h>
-#include <dev/random/random_harvestq.h>
-#include <dev/random/uint128.h>
-#include <dev/random/fortuna.h>
#else /* !_KERNEL */
-#include <sys/param.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
@@ -69,15 +59,18 @@
#include <threads.h>
#include "unit_test.h"
+#endif /* _KERNEL */
#include <crypto/rijndael/rijndael-api-fst.h>
#include <crypto/sha2/sha256.h>
#include <dev/random/hash.h>
#include <dev/random/randomdev.h>
+#ifdef _KERNEL
+#include <dev/random/random_harvestq.h>
+#endif
#include <dev/random/uint128.h>
#include <dev/random/fortuna.h>
-#endif /* _KERNEL */
/* Defined in FS&K */
#define RANDOM_FORTUNA_NPOOLS 32 /* The number of accumulation pools */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 5:29 PM (6 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42093458
Default Alt Text
D19409.1795973371.diff (1 KB)
Attached To
Mode
D19409: fortuna: Deduplicate kernel vs user includes
Attached
Detach File
Event Timeline