]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86/intel/pmt: fix build dependency for kunit test
authorArnd Bergmann <arnd@arndb.de>
Mon, 14 Jul 2025 08:15:43 +0000 (10:15 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 21 Jul 2025 13:59:23 +0000 (16:59 +0300)
commit5a9fffd8a533bfb2688ec69dd6d1b6e53ef1177a
tree558fe85bed99b8a40fbad33037c3c1aa0d74b91c
parentb5f20799f164053a0fbf7c61b3c99f8cf9cf0656
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: b9707d46a959 ("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>
drivers/platform/x86/intel/pmt/Kconfig