[PATCH 09/10] ARM: psci: make header self contained
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jan 9 01:27:23 PST 2024
On 09.01.24 10:16, Sascha Hauer wrote:
> arch/arm/include/asm/psci.h uses struct device_node, so include of.h
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
> arch/arm/include/asm/psci.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h
> index dbb9adfc3e..f8fc2a8471 100644
> --- a/arch/arm/include/asm/psci.h
> +++ b/arch/arm/include/asm/psci.h
> @@ -6,6 +6,8 @@
> #ifndef __ARM_PSCI_H__
> #define __ARM_PSCI_H__
>
> +#include <of.h>
Only a pointer is used, so please just forward declare struct device_node.
Cheers,
Ahmad
> +
> #define ARM_PSCI_VER(major, minor) (((major) << 16) | (minor))
> #define ARM_PSCI_VER_1_0 ARM_PSCI_VER(1,0)
> #define ARM_PSCI_VER_0_2 ARM_PSCI_VER(0,2)
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list