]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86/amd/pmf: Fix undefined reference to platform_profile
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Fri, 19 Aug 2022 08:38:58 +0000 (14:08 +0530)
committerHans de Goede <hdegoede@redhat.com>
Wed, 24 Aug 2022 08:29:14 +0000 (10:29 +0200)
commit4eb7d3adc0590db33aee5cf4baad230e3503fb4f
treeae819488e88b1e9223261af5108781484765d0a7
parent9f6eb29c5b19dc6d0e00f1e197fd6f1a36a542ac
platform/x86/amd/pmf: Fix undefined reference to platform_profile

Its reported that amd-pmf driver when built with config which does not
have ACPI_PLATFORM_PROFILE set/enabled throws a undefined references to
symbols used.

ld: vmlinux.o: in function `amd_pmf_init_sps':
drivers/platform/x86/amd/pmf/sps.c:132: undefined reference to `platform_profile_register'
ld: vmlinux.o: in function `amd_pmf_deinit_sps':
drivers/platform/x86/amd/pmf/sps.c:142: undefined reference to `platform_profile_remove'

Fix it by adding a "select" to the Kconfig.

Fixes: f3e11f9f79fe ("platform/x86/amd/pmf: Add support for PMF core layer")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20220819083858.3987590-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/Kconfig