Include <machine/bus.h> and <machine/resource.h> here (only in the
kernel). No other sys/*.h file requires machine/foo.h to be included before it. In addition, all the files that include rman.h would need to include those two anyway. From these two perspectives, it is traditional to include things like this. This lets us stop treating sys/rman.h specially in every bus frontend file.
This commit is contained in:
parent
0f1ef0c8cb
commit
77bfa810cc
@ -34,6 +34,9 @@
|
||||
|
||||
#ifndef _KERNEL
|
||||
#include <sys/queue.h>
|
||||
#else
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#endif
|
||||
|
||||
#define RF_ALLOCATED 0x0001 /* resource has been reserved */
|
||||
|
Loading…
x
Reference in New Issue
Block a user