Skip to content

Commit 44d6b1f

Browse files
bebarinoRussell King
authored and
Russell King
committed
ARM: 7667/1: perf: Fix section mismatch on armpmu_init()
WARNING: vmlinux.o(.text+0xfb80): Section mismatch in reference from the function armpmu_register() to the function .init.text:armpmu_init() The function armpmu_register() references the function __init armpmu_init(). This is often because armpmu_register lacks a __init annotation or the annotation of armpmu_init is wrong. Just drop the __init marking on armpmu_init() because armpmu_register() no longer has an __init marking. Acked-by: Will Deacon <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent b8083f8 commit 44d6b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/perf_event.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ const struct dev_pm_ops armpmu_dev_pm_ops = {
484484
SET_RUNTIME_PM_OPS(armpmu_runtime_suspend, armpmu_runtime_resume, NULL)
485485
};
486486

487-
static void __init armpmu_init(struct arm_pmu *armpmu)
487+
static void armpmu_init(struct arm_pmu *armpmu)
488488
{
489489
atomic_set(&armpmu->active_events, 0);
490490
mutex_init(&armpmu->reserve_mutex);

0 commit comments

Comments
 (0)