projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0a6aa3
)
efi: arm: force use of unsigned type for EFI_PHYS_ALIGN
author
Ard Biesheuvel
<ardb@kernel.org>
Sun, 13 Dec 2020 15:07:03 +0000
(16:07 +0100)
committer
Ard Biesheuvel
<ardb@kernel.org>
Mon, 14 Dec 2020 15:25:06 +0000
(16:25 +0100)
Ensure that EFI_PHYS_ALIGN is an unsigned type, to prevent spurious
warnings from the type checks in the definition of the max() macro.
Link:
https://lore.kernel.org/linux-efi/20201213151306.73558-1-ardb@kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/include/asm/efi.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/efi.h
b/arch/arm/include/asm/efi.h
index abae071a02e16d2a0dc7a7ced80dbcdcbd6edfdc..9de7ab2ce05d93cbff125e4ad46bc82a68a65c80 100644
(file)
--- a/
arch/arm/include/asm/efi.h
+++ b/
arch/arm/include/asm/efi.h
@@
-71,7
+71,7
@@
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
* here throws off the memory allocation logic, so let's use the lowest power
* of two greater than 2 MiB and greater than TEXT_OFFSET.
*/
-#define EFI_PHYS_ALIGN max(
SZ_2M
, roundup_pow_of_two(TEXT_OFFSET))
+#define EFI_PHYS_ALIGN max(
UL(SZ_2M)
, roundup_pow_of_two(TEXT_OFFSET))
/* on ARM, the initrd should be loaded in a lowmem region */
static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)