Skip to content
Commit eb2fd9b4 authored by Tom Rix's avatar Tom Rix Committed by Hans de Goede
Browse files

platform/x86/intel: pmc/core: change pmc_lpm_modes to static



Sparse reports this issue
core.c: note: in included file:
core.h:239:12: warning: symbol 'pmc_lpm_modes' was not declared. Should it be static?

Global variables should not be defined in headers.  This only works
because core.h is only included by core.c. Single file use
variables should be static, so change its storage-class specifier
to static.

Signed-off-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20220423123048.591405-1-trix@redhat.com
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 00dd3ace
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment