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

Marek Vasut marek.vasut+renesas at mailbox.org
Mon Mar 16 00:58:06 CET 2026


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>
---
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;
-- 
2.51.0



More information about the U-Boot mailing list