Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Sudip Mukherjee and committed by
Linus Torvalds
ededb49a 7639dad9

+1
+1
arch/m32r/kernel/smp.c
··· 164 164 spin_unlock(&flushcache_lock); 165 165 preempt_enable(); 166 166 } 167 + EXPORT_SYMBOL(smp_flush_cache_all); 167 168 168 169 void smp_flush_cache_all_interrupt(void) 169 170 {