aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Przywara2020-11-04 01:00:31 +0000
committerAndre Przywara2021-01-11 23:19:34 +0000
commit00f8e9c2da2a4aaeb762652e4f029d796eec3c86 (patch)
treedd9186dd90def0f6b3d8ce577b8c1ea0a23061ec
parentacd832cd8c3c981cc1c52d85edabf00a462680b4 (diff)
sunxi: Fix is_boot0_magic macro
The is_boot0_magic macro is missing parentheses around the macro argument, breaking any usage with a more complex argument. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
-rw-r--r--arch/arm/include/asm/arch-sunxi/spl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/spl.h b/arch/arm/include/asm/arch-sunxi/spl.h
index 7b99c1aa12d..58cdf806d9a 100644
--- a/arch/arm/include/asm/arch-sunxi/spl.h
+++ b/arch/arm/include/asm/arch-sunxi/spl.h
@@ -19,8 +19,7 @@
#define SUNXI_BOOTED_FROM_MMC0_HIGH 0x10
#define SUNXI_BOOTED_FROM_MMC2_HIGH 0x12
-
-#define is_boot0_magic(addr) (memcmp((void *)addr, BOOT0_MAGIC, 8) == 0)
+#define is_boot0_magic(addr) (memcmp((void *)(addr), BOOT0_MAGIC, 8) == 0)
uint32_t sunxi_get_boot_device(void);