]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Fix EFI_SIZE_TO_PAGES macro
authorJan Janssen <medhefgo@web.de>
Mon, 1 May 2023 09:31:52 +0000 (11:31 +0200)
committerJan Janssen <medhefgo@web.de>
Mon, 1 May 2023 17:08:12 +0000 (19:08 +0200)
src/boot/efi/efi.h

index 4e51078d3de9c4b413170201980f00493fb2f8c4..b8d193154ea23130d63ad5d8927191d65dc15771 100644 (file)
@@ -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. */