Skip to content

Commit 0412ddc

Browse files
committed
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>
1 parent 0375a73 commit 0412ddc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/sh/mm/tlb-sh5.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* sh64_tlb_init - Perform initial setup for the DTLB and ITLB.
1919
*/
20-
int __init sh64_tlb_init(void)
20+
int __cpuinit sh64_tlb_init(void)
2121
{
2222
/* Assign some sane DTLB defaults */
2323
cpu_data->dtlb.entries = 64;

0 commit comments

Comments
 (0)