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
73a4c21f28
commit
a757985cec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129887
@ -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…
Reference in New Issue
Block a user