[PATCH] arm: bcm: Include missing errno.h

Matthias Brugger mbrugger at suse.com
Thu Mar 26 10:49:12 CET 2026



On 16/03/2026 00:58, Marek Vasut wrote:
> The msg.c file uses EIO macro defined in errno.h , include errno.h
> to avoid build failure:
> 
> "
> arch/arm/mach-bcm283x/msg.c: In function 'bcm2835_power_on_module':
> arch/arm/mach-bcm283x/msg.c:73:25: error: 'EIO' undeclared (first use in this function)
>     73 |                 return -EIO;
>        |                         ^~~
> "
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>

Acked-by: Matthias Brugger <mbrugger at suse.com>

> ---
> Cc: Matthias Brugger <mbrugger at suse.com>
> Cc: Peter Robinson <pbrobinson at gmail.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at lists.denx.de
> ---
>   arch/arm/mach-bcm283x/msg.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-bcm283x/msg.c b/arch/arm/mach-bcm283x/msg.c
> index 4993c0bdb81..05e1a02e80f 100644
> --- a/arch/arm/mach-bcm283x/msg.c
> +++ b/arch/arm/mach-bcm283x/msg.c
> @@ -7,6 +7,7 @@
>   #include <phys2bus.h>
>   #include <asm/arch/mbox.h>
>   #include <linux/delay.h>
> +#include <linux/errno.h>
>   
>   struct msg_set_power_state {
>   	struct bcm2835_mbox_hdr hdr;



More information about the U-Boot mailing list