git: 47218e711e70 - main - Include opt_platform.h to ensure FDT is defined
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Oct 2022 16:39:47 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=47218e711e70fdcca08b6f4bd05a60c986a87e41 commit 47218e711e70fdcca08b6f4bd05a60c986a87e41 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-10-04 16:31:01 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-10-04 16:38:56 +0000 Include opt_platform.h to ensure FDT is defined We need to include opt_platform.h as it's where FDT will be defined. Sponsored by: The FreeBSD Foundation --- sys/dev/extres/hwreset/hwreset_if.m | 2 ++ sys/dev/iicbus/pmic/rockchip/rk8xx.c | 2 ++ sys/dev/xdma/xdma_if.m | 2 ++ 3 files changed, 6 insertions(+) diff --git a/sys/dev/extres/hwreset/hwreset_if.m b/sys/dev/extres/hwreset/hwreset_if.m index f1816f9ef81f..87f1cb0da244 100644 --- a/sys/dev/extres/hwreset/hwreset_if.m +++ b/sys/dev/extres/hwreset/hwreset_if.m @@ -26,6 +26,8 @@ # $FreeBSD$ # +#include "opt_platform.h" + #ifdef FDT #include <sys/types.h> #include <dev/ofw/ofw_bus.h> diff --git a/sys/dev/iicbus/pmic/rockchip/rk8xx.c b/sys/dev/iicbus/pmic/rockchip/rk8xx.c index bf6e5833665a..bd23516dd2c4 100644 --- a/sys/dev/iicbus/pmic/rockchip/rk8xx.c +++ b/sys/dev/iicbus/pmic/rockchip/rk8xx.c @@ -25,6 +25,8 @@ * SUCH DAMAGE. */ +#include "opt_platform.h" + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); diff --git a/sys/dev/xdma/xdma_if.m b/sys/dev/xdma/xdma_if.m index cbf0c8e8cb05..61c711d6e24a 100644 --- a/sys/dev/xdma/xdma_if.m +++ b/sys/dev/xdma/xdma_if.m @@ -30,6 +30,8 @@ # $FreeBSD$ # +#include "opt_platform.h" + #include <machine/bus.h> #ifdef FDT