Remove opt_random.h header pollution from sys/random.h by moving
RANDOM_LOADABLE and RANDOM_YARROW's definitions from opt_random.h to opt_global.h This unbreaks `make depend` in sys/modules with multiple drivers (tmpfs, etc) after r286839 X-MFC with: r286839 Reviewed by: imp Submitted by: lwhsu Differential Revision: D3486
This commit is contained in:
parent
b684727b07
commit
7afd9bf059
@ -947,11 +947,11 @@ RCTL opt_global.h
|
||||
# Random number generator(s)
|
||||
# Which CSPRNG hash we get.
|
||||
# If Yarrow is not chosen, Fortuna is selected.
|
||||
RANDOM_YARROW opt_random.h
|
||||
RANDOM_YARROW opt_global.h
|
||||
# With this, no entropy processor is loaded, but the entropy
|
||||
# harvesting infrastructure is present. This means an entropy
|
||||
# processor may be loaded as a module.
|
||||
RANDOM_LOADABLE opt_random.h
|
||||
RANDOM_LOADABLE opt_global.h
|
||||
# This turns on high-rate and potentially expensive harvesting in
|
||||
# the uma slab allocator.
|
||||
RANDOM_ENABLE_UMA opt_global.h
|
||||
|
@ -33,8 +33,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "opt_random.h"
|
||||
|
||||
#if !defined(KLD_MODULE)
|
||||
#if defined(RANDOM_LOADABLE) && defined(RANDOM_YARROW)
|
||||
#error "Cannot define both RANDOM_LOADABLE and RANDOM_YARROW"
|
||||
|
Loading…
x
Reference in New Issue
Block a user