Re: [PATCH] riscv: move flush_icache_range/user_range() after flush_icache_all()

2019-09-26 Thread Kefeng Wang
On 2019/9/26 14:52, Andreas Schwab wrote: > https://lore.kernel.org/linux-riscv/mvm7e9spggv@suse.de/ > > Andreas. > Hi Andreas, my change is wrong. For no SMP, lkdtm built ok because flush_icache_all() is defined as local_flush_icache_all() macro, but for SMP, the reason of build error

Re: [PATCH] riscv: move flush_icache_range/user_range() after flush_icache_all()

2019-09-26 Thread Andreas Schwab
https://lore.kernel.org/linux-riscv/mvm7e9spggv@suse.de/ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] riscv: move flush_icache_range/user_range() after flush_icache_all()

2019-09-25 Thread Kefeng Wang
Please ignore this version. On 2019/9/26 10:29, Kefeng Wang wrote: > When build lkdtm module, which used flush_icache_range(), error occurred, > > ERROR: "flush_icache_all" [drivers/misc/lkdtm/lkdtm.ko] undefined! > > Fix it. > > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou >

[PATCH] riscv: move flush_icache_range/user_range() after flush_icache_all()

2019-09-25 Thread Kefeng Wang
When build lkdtm module, which used flush_icache_range(), error occurred, ERROR: "flush_icache_all" [drivers/misc/lkdtm/lkdtm.ko] undefined! Fix it. Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Signed-off-by: Kefeng Wang --- arch/riscv/include/asm/cacheflush.h | 14 +++--- 1