On Mon, Aug 18, 2014 at 8:35 AM, Max Filippov <jcmvbkbc@xxxxxxxxx> wrote: > On Mon, Aug 18, 2014 at 8:24 AM, Pranith Kumar <bobby.prani@xxxxxxxxx> wrote: >> Fix building errors occuring due to a missing export of flush_icache_range() in >> architectures missing the export. > > Can you be a little more specific here, what build errors? kisskb.ellerman.id.au/kisskb/buildresult/11677809/ ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined! > [...] > >> diff --git a/arch/frv/include/asm/cacheflush.h b/arch/frv/include/asm/cacheflush.h >> index edbac54..07ee4b3 100644 >> --- a/arch/frv/include/asm/cacheflush.h >> +++ b/arch/frv/include/asm/cacheflush.h >> @@ -72,6 +72,7 @@ static inline void flush_icache_range(unsigned long start, unsigned long end) >> { >> frv_cache_wback_inv(start, end); >> } >> +EXPORT_SYMBOL(flush_icache_range); > > EXPORT_SYMBOL should not be placed into header file as it defines > a non-static variable. Indeed. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html