@@ -70,7 +70,8 @@ preserve_pci_rom_image(efi_pci_io_protocol_t *pci, struct pci_setup_rom **__rom)
7070
7171 size = romsize + sizeof (* rom );
7272
73- status = efi_call_early (allocate_pool , EFI_LOADER_DATA , size , & rom );
73+ status = efi_call_early (allocate_pool , EFI_LOADER_DATA , size ,
74+ (void * * )& rom );
7475 if (status != EFI_SUCCESS ) {
7576 efi_printk (sys_table , "Failed to allocate memory for 'rom'\n" );
7677 return status ;
@@ -195,9 +196,9 @@ static void retrieve_apple_device_properties(struct boot_params *boot_params)
195196 struct setup_data * data , * new ;
196197 efi_status_t status ;
197198 u32 size = 0 ;
198- void * p ;
199+ apple_properties_protocol_t * p ;
199200
200- status = efi_call_early (locate_protocol , & guid , NULL , & p );
201+ status = efi_call_early (locate_protocol , & guid , NULL , ( void * * ) & p );
201202 if (status != EFI_SUCCESS )
202203 return ;
203204
@@ -212,7 +213,8 @@ static void retrieve_apple_device_properties(struct boot_params *boot_params)
212213
213214 do {
214215 status = efi_call_early (allocate_pool , EFI_LOADER_DATA ,
215- size + sizeof (struct setup_data ), & new );
216+ size + sizeof (struct setup_data ),
217+ (void * * )& new );
216218 if (status != EFI_SUCCESS ) {
217219 efi_printk (sys_table , "Failed to allocate memory for 'properties'\n" );
218220 return ;
0 commit comments