Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

efi: Drop unused efi_range_is_wc() function

efi_range_is_wc() has no callers, so remove it.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

-21
-21
include/linux/efi.h
··· 832 832 const void *data, size_t size, 833 833 efi_element_handler_t (*get_handler_for_guid)(const efi_guid_t *)); 834 834 835 - /** 836 - * efi_range_is_wc - check the WC bit on an address range 837 - * @start: starting kvirt address 838 - * @len: length of range 839 - * 840 - * Consult the EFI memory map and make sure it's ok to set this range WC. 841 - * Returns true or false. 842 - */ 843 - static inline int efi_range_is_wc(unsigned long start, unsigned long len) 844 - { 845 - unsigned long i; 846 - 847 - for (i = 0; i < len; i += (1UL << EFI_PAGE_SHIFT)) { 848 - unsigned long paddr = __pa(start + i); 849 - if (!(efi_mem_attributes(paddr) & EFI_MEMORY_WC)) 850 - return 0; 851 - } 852 - /* The range checked out */ 853 - return 1; 854 - } 855 - 856 835 /* 857 836 * We play games with efi_enabled so that the compiler will, if 858 837 * possible, remove EFI-related code altogether.