projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd832c
)
sunxi: Fix is_boot0_magic macro
author
Andre Przywara
<andre.przywara@arm.com>
Wed, 4 Nov 2020 01:00:31 +0000
(
01:00
+0000)
committer
Andre Przywara
<andre.przywara@arm.com>
Mon, 11 Jan 2021 23:19:34 +0000
(23:19 +0000)
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>
arch/arm/include/asm/arch-sunxi/spl.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-sunxi/spl.h
b/arch/arm/include/asm/arch-sunxi/spl.h
index 7b99c1aa12de449fd148fd59d8ab9247713fb56d..58cdf806d9a9324373e452635bc7d66ba07f8fa5 100644
(file)
--- 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);