diff options
author | Tom Rix <trix@redhat.com> | 2022-04-23 14:30:48 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-04-27 16:50:25 +0200 |
commit | b4e74f6842d4928d5d95935b1a058d503c103ed7 (patch) | |
tree | 891d257161098559fc40056bc88c9233790971f6 /drivers | |
parent | platform/x86/intel/sdsi: Fix bug in multi packet reads (diff) | |
download | linux-b4e74f6842d4928d5d95935b1a058d503c103ed7.tar.xz linux-b4e74f6842d4928d5d95935b1a058d503c103ed7.zip |
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: Tom Rix <trix@redhat.com>
Reviewed-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20220423123048.591405-1-trix@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/intel/pmc/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/pmc/core.h b/drivers/platform/x86/intel/pmc/core.h index a46d3b53bf61..7a059e02c265 100644 --- a/drivers/platform/x86/intel/pmc/core.h +++ b/drivers/platform/x86/intel/pmc/core.h @@ -236,7 +236,7 @@ enum ppfear_regs { #define ADL_LPM_STATUS_LATCH_EN_OFFSET 0x1704 #define ADL_LPM_LIVE_STATUS_OFFSET 0x1764 -const char *pmc_lpm_modes[] = { +static const char *pmc_lpm_modes[] = { "S0i2.0", "S0i2.1", "S0i2.2", |