From 93b4268fb794d334b913eb76a68e37597ad51caa Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sat, 5 Oct 2024 21:40:38 -0600 Subject: mb/google/*: Explicitly include static.h for DEV_PTR As per commit 05a13e7ed9b9 ("sconfig: Move (WEAK_)DEV_PTR from device.h to static.h"), sources that require access to devicetree static devices should directly include static.h. This allows static.h to be removed from device.h, eliminating unnecessary dependencies on the devicetree for objects that only need the device types and function declarations. The DEV_PTR macro resolves to names declared in static_devices.h, which is then included in static.h, so include the header whenever the macro is used. Change-Id: I05662e601af00866b7f26f4c6c6794b491bf676e Signed-off-by: Nicholas Chin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84678 Reviewed-by: Angel Pons Reviewed-by: Jayvik Desai Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/hades/variant.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mainboard/google/brya/variants/hades') diff --git a/src/mainboard/google/brya/variants/hades/variant.c b/src/mainboard/google/brya/variants/hades/variant.c index 48e2652e8e..7a258fbf40 100644 --- a/src/mainboard/google/brya/variants/hades/variant.c +++ b/src/mainboard/google/brya/variants/hades/variant.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3