Skip to content
Snippets Groups Projects
Commit acd51562 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Hans de Goede
Browse files

platform/x86: amd-pmc: Shuffle location of amd_pmc_get_smu_version()


When CONFIG_DEBUG_FS is disabled, amd_pmc_get_smu_version() is unused:

  drivers/platform/x86/amd-pmc.c:196:12: warning: unused function 'amd_pmc_get_smu_version' [-Wunused-function]
  static int amd_pmc_get_smu_version(struct amd_pmc_dev *dev)
             ^
  1 warning generated.

Eliminate the warning by moving amd_pmc_get_smu_version() to the
CONFIG_DEBUG_FS block where it is used.

Fixes: b0c07116 ("platform/x86: amd-pmc: Avoid reading SMU version at probe time")
Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220418213800.21257-1-nathan@kernel.org


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent b0c07116
No related branches found
No related tags found
Loading
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