From 25919b752b8a89c61e6c8f9ef0e533b49578d768 Mon Sep 17 00:00:00 2001 From: leoliu-oc Date: Mon, 29 Jan 2024 17:11:56 +0800 Subject: [PATCH] cputemp: zhaoxin: fix HWMON_THERMAL namespace not import issue. zhaoxin inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8ZP5Z CVE: NA ----------------- The function "hwmon_device_register_for_thermal" needs "MODULE_IMPORT_NS(HWMON_THERMAL);" to use it. Signed-off-by: leoliu-oc --- drivers/hwmon/zhaoxin-cputemp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/zhaoxin-cputemp.c b/drivers/hwmon/zhaoxin-cputemp.c index 00037e9cc91e..8ded06f15356 100644 --- a/drivers/hwmon/zhaoxin-cputemp.c +++ b/drivers/hwmon/zhaoxin-cputemp.c @@ -326,6 +326,7 @@ static void __exit zhaoxin_cputemp_exit(void) MODULE_DESCRIPTION("Zhaoxin CPU temperature monitor"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(HWMON_THERMAL); module_init(zhaoxin_cputemp_init) module_exit(zhaoxin_cputemp_exit) -- Gitee