]> Git Repo - linux.git/commit
intel_idle: Add __init annotation to matchup_vm_state_with_baremetal()
authorRafael J. Wysocki <[email protected]>
Tue, 27 Jun 2023 17:50:48 +0000 (19:50 +0200)
committerRafael J. Wysocki <[email protected]>
Wed, 28 Jun 2023 17:09:55 +0000 (19:09 +0200)
commitb2918089d5cb452e928ad9f86c5ee601c592cee3
tree018d5c2b63ef6ef5b0f484527bd824568e9a334e
parent0fac214bb75ee64d7b9e6521d53f8251a4d324ea
intel_idle: Add __init annotation to matchup_vm_state_with_baremetal()

The caller of (recently added) matchup_vm_state_with_baremetal() is an
__init function and it uses some __initdata data structures, so add the
__init annotation to it for consistency.

This addresses the following build warnings:

WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x51 (section: .text) -> intel_idle_max_cstate_reached (section: .init.text)
WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x62 (section: .text) -> cpuidle_state_table (section: .init.data)
WARNING: modpost: vmlinux: section mismatch in reference: matchup_vm_state_with_baremetal+0x79 (section: .text) -> icpu (section: .init.data)

Fixes: 0fac214bb75e ("intel_idle: Add a "Long HLT" C1 state for the VM guest mode")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Reviewed-by: Randy Dunlap <[email protected]>
drivers/idle/intel_idle.c
This page took 0.054584 seconds and 4 git commands to generate.