svn commit: r295625 - head/sys/kern

Adrian Chadd adrian at FreeBSD.org
Mon Feb 15 14:34:37 UTC 2016


Author: adrian
Date: Mon Feb 15 14:34:35 2016
New Revision: 295625
URL: https://svnweb.freebsd.org/changeset/base/295625

Log:
  Allow MIPS INTRNG code to be built without FDT support.
  
  This patch allows the newly imported INTRNG code to be built without necessarily
  having FDT support in the kernel.  This may be useful for some MIPS platforms
  that wish to move to INTRNG, but not to FDT at the same time.
  
  Basically all the code is already within ifdef's where FDT is concerned,
  it's just the headers that aren't.
  
  Submitted by:	Stanislav Galabov <sgalabov at gmail.com>
  Differential Revision:	https://reviews.freebsd.org/D5249

Modified:
  head/sys/kern/subr_intr.c

Modified: head/sys/kern/subr_intr.c
==============================================================================
--- head/sys/kern/subr_intr.c	Mon Feb 15 12:34:47 2016	(r295624)
+++ head/sys/kern/subr_intr.c	Mon Feb 15 14:34:35 2016	(r295625)
@@ -60,11 +60,13 @@ __FBSDID("$FreeBSD$");
 #include <machine/smp.h>
 #include <machine/stdarg.h>
 
+#ifdef FDT
 #include <dev/ofw/openfirm.h>
 #include <dev/ofw/ofw_bus.h>
 #include <dev/ofw/ofw_bus_subr.h>
 
 #include <dev/fdt/fdt_common.h>
+#endif
 
 #ifdef DDB
 #include <ddb/ddb.h>


More information about the svn-src-head mailing list