Commit 0412ddc82223ea2bb3a9db21355e5fe0862a97e5

Authored by Paul Mundt
1 parent 0375a73c6f

sh64: Fix up section mismatch warnings.

WARNING: vmlinux.o(.cpuinit.text+0x280): Section mismatch in reference from the function cpu_probe() to the function .init.text:sh64_tlb_init()
The function __cpuinit cpu_probe() references
a function __init sh64_tlb_init().
If sh64_tlb_init is only used by cpu_probe then
annotate sh64_tlb_init with a matching annotation.

sh64_tlb_init() simply needs to be __cpuinit annotated, so fix that up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/sh/mm/tlb-sh5.c
... ... @@ -17,7 +17,7 @@
17 17 /**
18 18 * sh64_tlb_init - Perform initial setup for the DTLB and ITLB.
19 19 */
20   -int __init sh64_tlb_init(void)
  20 +int __cpuinit sh64_tlb_init(void)
21 21 {
22 22 /* Assign some sane DTLB defaults */
23 23 cpu_data->dtlb.entries = 64;