From 355920c5b7ac9de10746af1c20c16d1ab082faa1 Mon Sep 17 00:00:00 2001 From: adrian Date: Mon, 15 Feb 2016 14:34:35 +0000 Subject: 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 Differential Revision: https://reviews.freebsd.org/D5249 --- sys/kern/subr_intr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/subr_intr.c') diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c index 813f9ec..9e7fcaf 100644 --- a/sys/kern/subr_intr.c +++ b/sys/kern/subr_intr.c @@ -60,11 +60,13 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef FDT #include #include #include #include +#endif #ifdef DDB #include -- cgit v1.1 From 61f10a29362c4e14144c2ca4ffb4eef6e7f5e192 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 15 Feb 2016 17:05:03 +0000 Subject: Remove an unused FDT header, fdt_common.h should only be needed in a few places, mostly in sys/dev/fdt and legacy code. Sponsored by: ABT Systems Ltd --- sys/kern/subr_intr.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/subr_intr.c') diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c index 9e7fcaf..7b5b77d 100644 --- a/sys/kern/subr_intr.c +++ b/sys/kern/subr_intr.c @@ -64,8 +64,6 @@ __FBSDID("$FreeBSD$"); #include #include #include - -#include #endif #ifdef DDB -- cgit v1.1