Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2017 03:27:20 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313850 - in head/sys/cddl/dev/dtrace: amd64 i386
Message-ID:  <201702170327.v1H3RKK4078742@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Feb 17 03:27:20 2017
New Revision: 313850
URL: https://svnweb.freebsd.org/changeset/base/313850

Log:
  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

Modified:
  head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
  head/sys/cddl/dev/dtrace/i386/dtrace_subr.c

Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
==============================================================================
--- head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c	Fri Feb 17 00:50:00 2017	(r313849)
+++ head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c	Fri Feb 17 03:27:20 2017	(r313850)
@@ -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);

Modified: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c
==============================================================================
--- head/sys/cddl/dev/dtrace/i386/dtrace_subr.c	Fri Feb 17 00:50:00 2017	(r313849)
+++ head/sys/cddl/dev/dtrace/i386/dtrace_subr.c	Fri Feb 17 03:27:20 2017	(r313850)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702170327.v1H3RKK4078742>