From: Jan Janssen Date: Mon, 1 May 2023 09:31:52 +0000 (+0200) Subject: boot: Fix EFI_SIZE_TO_PAGES macro X-Git-Tag: v254-rc1~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fd3ee69169af2b34ca636bccde57e9cef71260d;p=thirdparty%2Fsystemd.git boot: Fix EFI_SIZE_TO_PAGES macro --- diff --git a/src/boot/efi/efi.h b/src/boot/efi/efi.h index 4e51078d3de..b8d193154ea 100644 --- a/src/boot/efi/efi.h +++ b/src/boot/efi/efi.h @@ -165,7 +165,7 @@ typedef struct { #define EFI_OS_INDICATIONS_JSON_CONFIG_DATA_REFRESH 0x80U #define EFI_PAGE_SIZE 4096U -#define EFI_SIZE_TO_PAGES(s) ((s) + 0xFFFU) >> 12U +#define EFI_SIZE_TO_PAGES(s) (((s) + 0xFFFU) >> 12U) /* These are common enough to warrant forward declaration. We also give them a * shorter name for convenience. */