* [PATCH] efi: arm: force use of unsigned type for EFI_PHYS_ALIGN
@ 2020-12-13 15:13 Ard Biesheuvel
2020-12-15 11:17 ` [tip: efi/core] " tip-bot2 for Ard Biesheuvel
0 siblings, 1 reply; 2+ messages in thread
From: Ard Biesheuvel @ 2020-12-13 15:13 UTC (permalink / raw)
To: linux-efi; +Cc: Ard Biesheuvel
Ensure that EFI_PHYS_ALIGN is an unsigned type, to prevent spurious
warnings from the type checks in the definition of the max() macro.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
arch/arm/include/asm/efi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/efi.h b/arch/arm/include/asm/efi.h
index abae071a02e1..9de7ab2ce05d 100644
--- 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)
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip: efi/core] efi: arm: force use of unsigned type for EFI_PHYS_ALIGN
2020-12-13 15:13 [PATCH] efi: arm: force use of unsigned type for EFI_PHYS_ALIGN Ard Biesheuvel
@ 2020-12-15 11:17 ` tip-bot2 for Ard Biesheuvel
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Ard Biesheuvel @ 2020-12-15 11:17 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Ard Biesheuvel, x86, linux-kernel
The following commit has been merged into the efi/core branch of tip:
Commit-ID: d72c8b0e1cacc39495cd413433d260e8ae59374a
Gitweb: https://git.kernel.org/tip/d72c8b0e1cacc39495cd413433d260e8ae59374a
Author: Ard Biesheuvel <ardb@kernel.org>
AuthorDate: Sun, 13 Dec 2020 16:07:03 +01:00
Committer: Ard Biesheuvel <ardb@kernel.org>
CommitterDate: Mon, 14 Dec 2020 16:25:06 +01:00
efi: arm: force use of unsigned type for EFI_PHYS_ALIGN
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/efi.h b/arch/arm/include/asm/efi.h
index abae071..9de7ab2 100644
--- 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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-15 11:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-13 15:13 [PATCH] efi: arm: force use of unsigned type for EFI_PHYS_ALIGN Ard Biesheuvel
2020-12-15 11:17 ` [tip: efi/core] " tip-bot2 for Ard Biesheuvel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.