diff options
| author | Guenter Roeck <[email protected]> | 2022-07-14 18:46:00 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-07-14 18:57:27 +0000 |
| commit | 097da1a44d1aef15739214fecf8f4c63792bb665 (patch) | |
| tree | 5ee789d67802eba5580688df2cbd3e297e654829 /scripts/clang-tools/gen_compile_commands.py | |
| parent | Merge tag 'sound-5.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff) | |
| download | kernel-097da1a44d1aef15739214fecf8f4c63792bb665.tar.gz kernel-097da1a44d1aef15739214fecf8f4c63792bb665.zip | |
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 9409c9b6709e ("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: 9409c9b6709e ("pmem: refactor pmem_clear_poison()")
Cc: Dan Williams <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
