mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
to_virt() and to_phys() are very generic and may be defined by drivers. As it turns out, commit9409c9b670("pmem: refactor pmem_clear_poison()") did exactly that. This results in build errors such as the following when trying to build um:allmodconfig. drivers/nvdimm/pmem.c: In function ‘pmem_dax_zero_page_range’: ./arch/um/include/asm/page.h:105:20: error: too few arguments to function ‘to_phys’ 105 | #define __pa(virt) to_phys((void *) (unsigned long) (virt)) | ^~~~~~~ Use less generic function names for the um specific to_phys() and to_virt() functions to fix the problem and to avoid similar problems in the future. Fixes:9409c9b670("pmem: refactor pmem_clear_poison()") Cc: Dan Williams <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Acked-By: Anton Ivanov <[email protected]> Acked-by: Dan Williams <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>