Skip to content
Snippets Groups Projects
Commit 37460754 authored by David Arcari's avatar David Arcari
Browse files

intel_idle: Add __init annotation to matchup_vm_state_with_baremetal()

JIRA: https://issues.redhat.com/browse/RHEL-11351



commit b2918089
Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Date:   Tue Jun 27 19:50:48 2023 +0200

    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: 0fac214b ("intel_idle: Add a "Long HLT" C1 state for the VM guest mode")
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>

Signed-off-by: default avatarDavid Arcari <darcari@redhat.com>
parent 1ca0b161
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment