Directly include needed headers rather than relying on pollution.

We get machine/cpu.h via kmem.h -> proc.h -> _vm_domain.h -> seq.h.

Reported by:	Ryan Libby
Sponsored by:	Dell EMC Isilon
X-MFC with:	r313841
This commit is contained in:
markj 2017-02-17 03:27:20 +00:00
parent 55c2f9636a
commit b12a88ae0f
2 changed files with 4 additions and 0 deletions

View File

@ -41,7 +41,9 @@
#include <sys/dtrace_impl.h>
#include <sys/dtrace_bsd.h>
#include <machine/clock.h>
#include <machine/cpufunc.h>
#include <machine/frame.h>
#include <machine/psl.h>
#include <vm/pmap.h>
extern void dtrace_getnanotime(struct timespec *tsp);

View File

@ -42,7 +42,9 @@
#include <sys/dtrace_impl.h>
#include <sys/dtrace_bsd.h>
#include <machine/clock.h>
#include <machine/cpufunc.h>
#include <machine/frame.h>
#include <machine/psl.h>
#include <vm/pmap.h>
extern uintptr_t kernelbase;