Skip to contentSkip to conversation

gpio: do not include <asm/arch/gpio.h> on ARCH_QEMU

PATCH New Harm Berntsen 2 participants 2 messages Oct 30, 2020 – Jan 19, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 gpio: do not include <asm/arch/gpio.h> on ARCH_QEMU

As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for QEMU.

---

?arch/arm/include/asm/gpio.h | 3 ++-
?1 file changed, 2 insertions(+), 1 deletion(-)

arch/arm/include/asm/gpio.h +0 -0
index 6ecb876eda..7609367884 100644
@@ -3,7 +3,8 @@

????????!defined(CONFIG_ARCH_BCM6858) && !defined(CONFIG_ARCH_BCM63158) && \
????????!defined(CONFIG_ARCH_ROCKCHIP) && !defined(CONFIG_ARCH_ASPEED) && \
????????!defined(CONFIG_ARCH_U8500) && !defined(CONFIG_CORTINA_PLATFORM) && \
-???????!defined(CONFIG_TARGET_BCMNS3) && !defined(CONFIG_TARGET_TOTAL_COMPUTE) +???????!defined(CONFIG_TARGET_BCMNS3) && !defined(CONFIG_TARGET_TOTAL_COMPUTE) && \
+???????!defined(CONFIG_ARCH_QEMU)
?#include <asm/arch/gpio.h>
?#endif
?#include <asm-generic/gpio.h>

#1 lore raw

PATCH 1/3 gpio: do not include <asm/arch/gpio.h> on ARCH_QEMU

Quoted 5 lines · Harm Berntsen

As no gpio.h is defined for this architecture, to avoid compilation failure, do not include <asm/arch/gpio.h> for QEMU.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/192fa17c/attachment.sig>