Commit 11756acb authored by Zhang Zekun's avatar Zhang Zekun
Browse files

ACPI/HMAT: Fix compile error when CONFIG_ACPI_HMAT is not enabled

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAPHFQ



------------------------------------------------

Fix compile error when CONFIG_ACPI_HMAT is not enabled:
j
../drivers/acpi/acpi_memhotplug.c: In function ‘acpi_memory_enable_device’:
../drivers/acpi/acpi_memhotplug.c:236:5: error: implicit declaration of function ‘hmat_restore_target’; did you mean ‘mte_restore_tags’? [-Werror=implicit-function-declaration]
     hmat_restore_target(node);
     ^~~~~~~~~~~~~~~~~~~
     mte_restore_tags

Fixes: 2e1b00fc ("ACPI/HMAT: Add missing locality information for hot-added device")
Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
parent c431540f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -265,6 +265,10 @@ void acpi_init_lpit(void);
#else
static inline void acpi_init_lpit(void) { }
#endif
#ifdef CONFIG_ACPI_HMAT
void hmat_restore_target(int nid);
#else
static inline void hmat_restore_target(int nid) {}
#endif

#endif /* _ACPI_INTERNAL_H_ */