MIPS: Make declarations and definitions of tlbmiss_handler_setup_pgd match.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 21 Mar 2013 10:28:10 +0000 (11:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Apr 2013 11:04:11 +0000 (13:04 +0200)
commit0bfbf6a256348b1543e638c7d7b2f3004b289fdb
tree2726d73cb4e301a6f4410b298eac90eedada0009
parent86a1708a9d5423f93e8f23d05d219ac6c6297b37
MIPS: Make declarations and definitions of tlbmiss_handler_setup_pgd match.

tlbmiss_handler_setup_pgd is run-time generated code and it was convenient
to pretend the symbol was an array in the generator but a function for
the users.  LTO gcc won't tolerate this kind of lie anymore so solve the
problem through a cast and function pointer instead.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mmu_context.h
arch/mips/mm/tlbex.c