···832832 const void *data, size_t size,833833 efi_element_handler_t (*get_handler_for_guid)(const efi_guid_t *));834834835835-/**836836- * efi_range_is_wc - check the WC bit on an address range837837- * @start: starting kvirt address838838- * @len: length of range839839- *840840- * Consult the EFI memory map and make sure it's ok to set this range WC.841841- * Returns true or false.842842- */843843-static inline int efi_range_is_wc(unsigned long start, unsigned long len)844844-{845845- unsigned long i;846846-847847- for (i = 0; i < len; i += (1UL << EFI_PAGE_SHIFT)) {848848- unsigned long paddr = __pa(start + i);849849- if (!(efi_mem_attributes(paddr) & EFI_MEMORY_WC))850850- return 0;851851- }852852- /* The range checked out */853853- return 1;854854-}855855-856835/*857836 * We play games with efi_enabled so that the compiler will, if858837 * possible, remove EFI-related code altogether.