diff options
author | Ren Zhijie <renzhijie2@huawei.com> | 2022-05-05 20:19:58 +0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-05-06 13:02:56 +0200 |
commit | 17faaacac3c92abde4019600e107c10c367d74f2 (patch) | |
tree | 6f07957f7f186152d99f921adb81ad58940e1579 /drivers/platform/x86/pmc_atom.c | |
parent | 4555906fdcafa253135bd6daaa8faede61d73ee9 (diff) | |
download | linux-17faaacac3c92abde4019600e107c10c367d74f2.tar.bz2 |
platform/x86: amd-pmc: Fix build error unused-function
If CONFIG_SUSPEND and CONFIG_DEBUG_FS are not set.
compile error:
drivers/platform/x86/amd-pmc.c:323:12: error: ‘get_metrics_table’ defined but not used [-Werror=unused-function]
static int get_metrics_table(struct amd_pmc_dev *pdev, struct smu_metrics *table)
^~~~~~~~~~~~~~~~~
drivers/platform/x86/amd-pmc.c:298:12: error: ‘amd_pmc_idlemask_read’ defined but not used [-Werror=unused-function]
static int amd_pmc_idlemask_read(struct amd_pmc_dev *pdev, struct device *dev,
^~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/amd-pmc.c:196:12: error: ‘amd_pmc_get_smu_version’ defined but not used [-Werror=unused-function]
static int amd_pmc_get_smu_version(struct amd_pmc_dev *dev)
^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
To fix building warning, wrap all related code with CONFIG_SUSPEND or CONFIG_DEBUG_FS.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ren Zhijie <renzhijie2@huawei.com>
Link: https://lore.kernel.org/r/20220505121958.138905-1-renzhijie2@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/pmc_atom.c')
0 files changed, 0 insertions, 0 deletions