bianbu-linux-6.6/arch/um/include/shared
Guenter Roeck 097da1a44d um: Replace to_phys() and to_virt() with less generic function names
The UML function names to_virt() and to_phys() are exposed by UML
headers, and are very generic and may be defined by drivers.  As it
turns out, commit 9409c9b670 ("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 <dan.j.williams@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-07-14 11:57:27 -07:00
..
skas um: separate child and parent errors in clone stub 2021-02-12 21:34:33 +01:00
arch.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
as-layout.h um: remove process stub VMA 2021-02-12 21:37:38 +01:00
common-offsets.h um: common-offsets.h debriding... 2021-12-21 21:31:35 +01:00
elf_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
frame_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
init.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
irq_kern.h um: time-travel: rework interrupt handling in ext mode 2021-02-12 21:24:27 +01:00
irq_user.h um: header debriding - activate_ipi() 2021-12-21 21:31:35 +01:00
kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
kern_util.h um: remove a dangling extern of syscall_trace() 2021-12-21 21:31:35 +01:00
longjmp.h um: rename set_signals() to um_set_signals() 2021-12-21 21:13:44 +01:00
mem.h um: Replace to_phys() and to_virt() with less generic function names 2022-07-14 11:57:27 -07:00
mem_user.h um: header debriding - mem_user.h 2021-12-21 21:31:35 +01:00
net_kern.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
net_user.h um: header debriding - net_*.h 2021-12-21 21:31:35 +01:00
os.h um: Fix WRITE_ZEROES in the UBD Driver 2022-03-11 10:46:34 +01:00
ptrace_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
registers.h um: stop polluting the namespace with registers.h contents 2021-12-21 21:31:35 +01:00
sigio.h um: header debriding - sigio.h 2021-12-21 21:31:36 +01:00
timetravel.h um: expose time-travel mode to userspace side 2021-06-17 21:44:51 +02:00
um_malloc.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
user.h printk: Userspace format indexing support 2021-07-19 11:57:48 +02:00