Skip to content

Commit 5a9fffd

Browse files
arndbij-intel
authored andcommitted
platform/x86/intel/pmt: fix build dependency for kunit test
When INTEL_PMT_TELEMETRY is in a loadable module, the discovery test cannot be built-in: x86_64-linux-ld: drivers/platform/x86/intel/pmt/discovery-kunit.o: in function `test_intel_pmt_get_regions_by_feature': discovery-kunit.c:(.text+0x29d): undefined reference to `intel_pmt_get_regions_by_feature' x86_64-linux-ld: discovery-kunit.c:(.text+0x2c3): undefined reference to `intel_pmt_put_feature_group' Add a Kconfig dependency to prevent this. Fixes: b9707d4 ("platform/x86/intel/pmt: KUNIT test for PMT Enhanced Discovery API") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20250714081559.4056777-1-arnd@kernel.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent b5f2079 commit 5a9fffd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/platform/x86/intel/pmt

drivers/platform/x86/intel/pmt/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ config INTEL_PMT_DISCOVERY
5555
config INTEL_PMT_KUNIT_TEST
5656
tristate "KUnit tests for Intel PMT driver"
5757
depends on INTEL_PMT_DISCOVERY
58+
depends on INTEL_PMT_TELEMETRY || !INTEL_PMT_TELEMETRY
5859
depends on KUNIT
5960
help
6061
Enable this option to compile and run a suite of KUnit tests for the Intel

0 commit comments

Comments
 (0)