aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShyam Sundar S K <[email protected]>2023-05-16 13:15:31 +0530
committerHans de Goede <[email protected]>2023-05-16 10:36:55 +0200
commit506ed33d0767edbada4c8fc7c268b1730c14791e (patch)
treef05e6a9390381d535f334c9d068cb64972f87158
parent63b5dbfdb770254c4fdb58d22b62458308685592 (diff)
platform/x86/amd/pmf: Fix compiler warnings in static slider
This patch fixes warnings with -Wmissing-prototypes: warning: no previous prototype for 'source_as_str' [-Wmissing-prototypes] warning: no previous prototype for 'slider_as_str' [-Wmissing-prototypes] Fixes: a82ebb3d800d ("platform/x86/amd/pmf: Add PMF acpi debug support") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Suggested-by: Patil Rajesh Reddy <[email protected]> Signed-off-by: Shyam Sundar S K <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r--drivers/platform/x86/amd/pmf/sps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/amd/pmf/sps.c b/drivers/platform/x86/amd/pmf/sps.c
index 0a4d0549ea03..445ff053b4df 100644
--- a/drivers/platform/x86/amd/pmf/sps.c
+++ b/drivers/platform/x86/amd/pmf/sps.c
@@ -13,7 +13,7 @@
static struct amd_pmf_static_slider_granular config_store;
#ifdef CONFIG_AMD_PMF_DEBUG
-const char *slider_as_str(unsigned int state)
+static const char *slider_as_str(unsigned int state)
{
switch (state) {
case POWER_MODE_PERFORMANCE:
@@ -27,7 +27,7 @@ const char *slider_as_str(unsigned int state)
}
}
-const char *source_as_str(unsigned int state)
+static const char *source_as_str(unsigned int state)
{
switch (state) {
case POWER_SOURCE_AC: