lkml.org 
[lkml]   [2014]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch/avr32/mm/cache.c: export symbol flush_icache_range() for module using

After this patch, our linux kernel can pass "avr32-linux-" allmodconfig
(it contents quite a few of warnings, but after check, I guess they are
not kernel's issue).

:-)

Thanks.


On 03/09/2014 05:35 AM, Chen Gang wrote:
> Need export symbol flush_icache_range() to modules, just like another
> platforms have done, or can not pass compiling.
>
> The related error (with allmodconfig under avr32):
>
> ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
>
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> arch/avr32/mm/cache.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/avr32/mm/cache.c b/arch/avr32/mm/cache.c
> index 6a46ecd..85d635c 100644
> --- a/arch/avr32/mm/cache.c
> +++ b/arch/avr32/mm/cache.c
> @@ -111,6 +111,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
> __flush_icache_range(start & ~(linesz - 1),
> (end + linesz - 1) & ~(linesz - 1));
> }
> +EXPORT_SYMBOL(flush_icache_range);
>
> /*
> * This one is called from __do_fault() and do_swap_page().
>


--
Chen Gang

Open, share and attitude like air, water and life which God blessed


\
 
 \ /
  Last update: 2014-03-08 23:21    [W:0.066 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site