Re: [PATCH 1/2] EFI: move efi_mem_type() to common code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> On 24.08.17 at 11:18, <ard.biesheuvel@xxxxxxxxxx> wrote:
> On 24 August 2017 at 10:11, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>> --- 4.13-rc6-EFI.orig/drivers/firmware/efi/efi.c
>> +++ 4.13-rc6-EFI/drivers/firmware/efi/efi.c
>> @@ -819,6 +819,35 @@ u64 __weak efi_mem_attributes(unsigned l
>>         return 0;
>>  }
>>
>> +/*
>> + * efi_mem_type - lookup memmap type for physical address
>> + * @phys_addr: the physical address to lookup
>> + *
>> + * Search in the EFI memory map for the region covering @phys_addr.
>> + * Returns the EFI memory type if the region was found in the memory
>> + * map, EFI_RESERVED_TYPE (zero) otherwise.
>> + *
>> + * Despite being marked __weak, most architectures should *not*
>> + * override this function. It is __weak solely for the benefit
>> + * of ia64 which has a funky EFI memory map that doesn't work
>> + * the same way as other architectures.
>> + */
>> +u32 __weak efi_mem_type(unsigned long phys_addr)
> 
> Why is this __weak now?

As the comment (matching the one ahead of efi_mem_attributes())
says, in particular for ia64 to be able to override it.

Jan

--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux