1
0
Fork 0
alistair23-linux/arch/nds32/include/asm
Mike Rapoport ff60c02a97 asm-generic/nds32: don't redefine cacheflush primitives
commit 4f0bd80813 upstream.

The commit c296d4dc13 ("asm-generic: fix a compilation warning") changed
asm-generic/cachflush.h to use static inlines instead of macros and as a
result the nds32 build with CONFIG_CPU_CACHE_ALIASING=n fails:

  CC      init/main.o
In file included from arch/nds32/include/asm/cacheflush.h:43,
                 from include/linux/highmem.h:12,
                 from include/linux/pagemap.h:11,
                 from include/linux/blkdev.h:16,
                 from include/linux/blk-cgroup.h:23,
                 from include/linux/writeback.h:14,
                 from init/main.c:44:
include/asm-generic/cacheflush.h:50:20: error: static declaration of 'flush_icache_range' follows non-static declaration
 static inline void flush_icache_range(unsigned long start, unsigned long end)
                    ^~~~~~~~~~~~~~~~~~
In file included from include/linux/highmem.h:12,
                 from include/linux/pagemap.h:11,
                 from include/linux/blkdev.h:16,
                 from include/linux/blk-cgroup.h:23,
                 from include/linux/writeback.h:14,
                 from init/main.c:44:
arch/nds32/include/asm/cacheflush.h:11:6: note: previous declaration of 'flush_icache_range' was here
 void flush_icache_range(unsigned long start, unsigned long end);
      ^~~~~~~~~~~~~~~~~~

Surround the inline functions in asm-generic/cacheflush.h by ifdef's so
that architectures could override them and add the required overrides to
nds32.

Fixes: c296d4dc13 ("asm-generic: fix a compilation warning")
Link: https://lore.kernel.org/lkml/201912212139.yptX8CsV%25lkp@intel.com/
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Greentime Hu <green.hu@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:48:43 +01:00
..
Kbuild treewide: Add SPDX license identifier - Kbuild 2019-05-30 11:32:33 -07:00
assembler.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
barrier.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
bitfield.h nds32: Avoid IEX status being incorrectly modified 2019-05-31 15:23:26 +08:00
cache.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
cache_info.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
cacheflush.h asm-generic/nds32: don't redefine cacheflush primitives 2020-01-17 19:48:43 +01:00
current.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
delay.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
elf.h nds32 patches for 5.2-rc1 2019-05-17 10:17:29 -07:00
fixmap.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
fpu.h nds32: Avoid IEX status being incorrectly modified 2019-05-31 15:23:26 +08:00
fpuemu.h nds32: add new emulations for floating point instruction 2019-05-31 15:23:26 +08:00
ftrace.h nds32/ftrace: Support dynamic function tracer 2018-09-04 14:45:18 +08:00
futex.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
highmem.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
io.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
irqflags.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
l2_cache.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
linkage.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
memory.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
mmu.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
mmu_context.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
module.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
nds32.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
nds32_fpu_inst.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
page.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
perf_event.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
pgalloc.h mm: remove quicklist page table caches 2019-09-24 15:54:09 -07:00
pgtable.h mm: consolidate pgtable_cache_init() and pgd_cache_init() 2019-09-24 15:54:09 -07:00
pmu.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
proc-fns.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
processor.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
ptrace.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
sfp-machine.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
shmparam.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
stacktrace.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
string.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
suspend.h nds32: Power management for nds32 2018-11-06 18:01:41 +08:00
swab.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
syscall.h nds32: fix asm/syscall.h 2019-07-16 19:23:24 -07:00
syscalls.h nds32: Avoid IEX status being incorrectly modified 2019-05-31 15:23:26 +08:00
thread_info.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
tlb.h nds32 patches for 5.2-rc1 2019-05-17 10:17:29 -07:00
tlbflush.h nds32 patches for 5.2-rc1 2019-05-17 10:17:29 -07:00
uaccess.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
unistd.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
vdso.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00
vdso_datapage.h nds32: Fix vDSO clock_getres() 2019-05-16 15:07:08 +08:00
vdso_timer_info.h nds32: Use the correct style for SPDX License Identifier 2019-05-07 17:52:09 +08:00