]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: silence one warning about pointer cast
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Jul 2019 13:55:13 +0000 (15:55 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 26 Jul 2019 01:37:56 +0000 (10:37 +0900)
It doesn't matter either way. Fixes #13174.

src/boot/efi/linux.c

index ad26cc510e9c0c516978793ec62b3b68dac6dd3a..5b623f4b71e20b8ad4df82be24a3c0bdcf77a2b4 100644 (file)
@@ -45,7 +45,7 @@ EFI_STATUS linux_exec(EFI_HANDLE *image,
 
         boot_params = (struct boot_params *) 0xFFFFFFFF;
         err = uefi_call_wrapper(BS->AllocatePages, 4, AllocateMaxAddress, EfiLoaderData,
-                                EFI_SIZE_TO_PAGES(0x4000), (UINTN *) &boot_params);
+                                EFI_SIZE_TO_PAGES(0x4000), (EFI_PHYSICAL_ADDRESS*) &boot_params);
         if (EFI_ERROR(err))
                 return err;