Skip to content

Commit

Permalink
arch/avr32/mm/cache.c: export symbol flush_icache_range() for module …
Browse files Browse the repository at this point in the history
…using

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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
  • Loading branch information
Chen Gang authored and Hans-Christian Egtvedt committed Mar 31, 2014
1 parent 8acc872 commit 2601566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/avr32/mm/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit 2601566

Please sign in to comment.