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

x86/ioremap: Remove unused size parameter in remapping functions

The size parameter of functions memremap_is_efi_data(),
memremap_is_setup_data() and early_memremap_is_setup_data() is not used.
Remove it.

[ bp: Massage commit message. ]

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241123114221.149383-4-bhe@redhat.com

authored by

Baoquan He and committed by
Borislav Petkov (AMD)
525077ae 095ac6fa

+7 -10
+7 -10
arch/x86/mm/ioremap.c
··· 593 593 * Examine the physical address to determine if it is EFI data. Check 594 594 * it against the boot params structure and EFI tables and memory types. 595 595 */ 596 - static bool memremap_is_efi_data(resource_size_t phys_addr, 597 - unsigned long size) 596 + static bool memremap_is_efi_data(resource_size_t phys_addr) 598 597 { 599 598 u64 paddr; 600 599 ··· 704 705 return false; 705 706 } 706 707 707 - static bool memremap_is_setup_data(resource_size_t phys_addr, 708 - unsigned long size) 708 + static bool memremap_is_setup_data(resource_size_t phys_addr) 709 709 { 710 710 return __memremap_is_setup_data(phys_addr, false); 711 711 } 712 712 713 - static bool __init early_memremap_is_setup_data(resource_size_t phys_addr, 714 - unsigned long size) 713 + static bool __init early_memremap_is_setup_data(resource_size_t phys_addr) 715 714 { 716 715 return __memremap_is_setup_data(phys_addr, true); 717 716 } ··· 732 735 return false; 733 736 734 737 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { 735 - if (memremap_is_setup_data(phys_addr, size) || 736 - memremap_is_efi_data(phys_addr, size)) 738 + if (memremap_is_setup_data(phys_addr) || 739 + memremap_is_efi_data(phys_addr)) 737 740 return false; 738 741 } 739 742 ··· 758 761 encrypted_prot = true; 759 762 760 763 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { 761 - if (early_memremap_is_setup_data(phys_addr, size) || 762 - memremap_is_efi_data(phys_addr, size)) 764 + if (early_memremap_is_setup_data(phys_addr) || 765 + memremap_is_efi_data(phys_addr)) 763 766 encrypted_prot = false; 764 767 } 765 768