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 <sgala...@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>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to