hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I90I68 CVE: NA
---------------------------
Fix the compile error when compiling hisi_hbmdev.ko and COMPILE_TEST is open. The reason is that cpu_l2c_id is not exported in ARCH x86_64.
ERROR: modpost: "cpu_l2c_id" [drivers/soc/hisilicon/hisi_hbmdev.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 make[1]: *** [/home/jenkins/agent/workspace/multiarch/openeuler/x86-64/kernel/openeuler/kernel/Makefile:1874: modpost] Error 2 make: *** [Makefile:234: __sub-make] Error 2
Signed-off-by: Zhang Zekun zhangzekun11@huawei.com --- drivers/soc/hisilicon/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/soc/hisilicon/Kconfig b/drivers/soc/hisilicon/Kconfig index 0a07d0e266a5..9af3e61313ce 100644 --- a/drivers/soc/hisilicon/Kconfig +++ b/drivers/soc/hisilicon/Kconfig @@ -5,7 +5,7 @@ menu "Hisilicon SoC drivers"
config HISI_HBMDEV tristate "add extra support for hbm memory device" - depends on ACPI_HOTPLUG_MEMORY + depends on ACPI_HOTPLUG_MEMORY && ARCH_HISI select ACPI_CONTAINER help This driver add two extra supports for memory devices. The driver @@ -20,7 +20,7 @@ config HISI_HBMDEV
config HISI_HBMCACHE tristate "HBM cache memory device" - depends on ACPI + depends on ACPI && ARCH_HISI help This driver provids methods to control the power of hbm cache device in hisi soc. Use hbm as a cache can take advantage of hbm's high @@ -31,7 +31,7 @@ config HISI_HBMCACHE
config HISI_HBMDEV_ACLS bool "Add support for HISI ACLS repair" - depends on HISI_HBMDEV + depends on HISI_HBMDEV && ARCH_HISI help Add ACLS support for hbm device, which can be used to query and repair hardware error in HBM devices. This feature need to work with