diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-06-20 07:01:43 +0000 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-07-03 22:42:32 +0000 |
| commit | d684e0a52d36f8939eda30a0f31ee235ee4ee741 (patch) | |
| tree | 22055e041368168e5bb52395a8076ad5e3de8212 /scripts/clang-tools/gen_compile_commands.py | |
| parent | mm: userfaultfd: fix UFFDIO_CONTINUE on fallocated shmem pages (diff) | |
| download | kernel-d684e0a52d36f8939eda30a0f31ee235ee4ee741.tar.gz kernel-d684e0a52d36f8939eda30a0f31ee235ee4ee741.zip | |
sh: convert nommu io{re,un}map() to static inline functions
Recently, nommu iounmap() was converted from a static inline function to a
macro again, basically reverting commit 4580ba4ad2e6b8dd ("sh: Convert
iounmap() macros to inline functions"). With -Werror, this leads to build
failures like:
drivers/iio/adc/xilinx-ams.c: In function `ams_iounmap_ps':
drivers/iio/adc/xilinx-ams.c:1195:14: error: unused variable `ams' [-Werror=unused-variable]
1195 | struct ams *ams = data;
| ^~~
Fix this by replacing the macros for ioremap() and iounmap() by static
inline functions, based on <asm-generic/io.h>.
Link: https://lkml.kernel.org/r/8d1b1766260961799b04035e7bc39a7f59729f72.1655708312.git.geert+renesas@glider.be
Fixes: 13f1fc870dd74713 ("sh: move the ioremap implementation out of line")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Jonathan Cameron <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
