From: Sudip Mukherjee Date: Mon, 23 May 2016 23:22:23 +0000 (-0700) Subject: m32r: fix build failure X-Git-Tag: v4.9.8~2028^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ededb49a9aa54960fce35c705d505d409f5b5483;p=platform%2Fkernel%2Flinux-rpi3.git m32r: fix build failure m32r allmodconfig build was failing with the error: ERROR: "smp_flush_cache_all" [drivers/misc/lkdtm.ko] undefined! lkdtm driver at drivers/misc is using flush_icache_range() which for m32r is defined as smp_flush_cache_all() if CONFIG_SMP is defined. But as smp_flush_cache_all() was not exported so the build was failing with the error of undefined symbol. Link: http://lkml.kernel.org/r/1464001182-8329-1-git-send-email-sudipm.mukherjee@gmail.com Signed-off-by: Sudip Mukherjee Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/m32r/kernel/smp.c b/arch/m32r/kernel/smp.c index 62d6961..564052e 100644 --- a/arch/m32r/kernel/smp.c +++ b/arch/m32r/kernel/smp.c @@ -164,6 +164,7 @@ void smp_flush_cache_all(void) spin_unlock(&flushcache_lock); preempt_enable(); } +EXPORT_SYMBOL(smp_flush_cache_all); void smp_flush_cache_all_interrupt(void) {