thermal: int340x: processor_thermal: Fix build error
PATCH 1/1 thermal: int340x: processor_thermal: Fix build error
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c: In function ‘send_mbox_cmd’:drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c:79:16:
error: implicit declaration of function ‘readq’; did you mean ‘readl’? [-Werror=implicit-function-declaration]
*cmd_resp = readq((void __iomem *) (proc_priv->mmio_base + MBOX_OFFSET_DATA));
^~~~~
readlAdd missing include to fix this.
--- drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c | 1 + 1 file changed, 1 insertion(+)
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c +1 -0
@@ -7,6 +7,7 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include "processor_thermal_device.h" #define MBOX_CMD_WORKLOAD_TYPE_READ 0x0E
Signature · 1 line
2.17.1
Quoted 11 lines · YueHaibing
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c: In function ‘send_mbox_cmd’:drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c:79:16:
error: implicit declaration of function ‘readq’; did you mean ‘readl’? [-Werror=implicit-function-declaration]
*cmd_resp=readq((void __iomem *) (proc_priv->mmio_base + MBOX_OFFSET_DATA));
^~~~~
readlAdd missing include to fix this.
Have you checked a patch titled "thermal/drivers/int340x: limit Kconfig to 64-bit"?
Thanks,
Srinivas
Quoted 22 lines
Fixes aeb58c860dc5 ("thermal/drivers/int340x: processor_thermal:Suppot 64 bit RFIM responses")
Signed-off-by YueHaibing <[email protected]>---
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c | 1 +1 file changed, 1 insertion(+)diff --git
a/drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.cb/drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.cindexa86521973dad..01008ae00e7f100644drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c +1
-0@@ -7,6 +7,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include "processor_thermal_device.h"
#define MBOX_CMD_WORKLOAD_TYPE_READ 0x0E
Quoted 11 lines · Srinivas Pandruvada
Quoted 10 lines · YueHaibing
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c: In function ‘send_mbox_cmd’:drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c:79:16:
error: implicit declaration of function ‘readq’; did you mean ‘readl’? [-Werror=implicit-function-declaration]
*cmd_resp=readq((void __iomem *) (proc_priv->mmio_base + MBOX_OFFSET_DATA));
^~~~~
readl
Quoted 3 lines
Quoted 1 line
Add missing include to fix this.
Have you checked a patch titled "thermal/drivers/int340x: limit
Kconfigto 64-bit"?
Thanks for your info, the patch fix the issue.
Quoted 30 lines
Thanks,
SrinivasQuoted 20 lines
Fixes aeb58c860dc5 ("thermal/drivers/int340x: processor_thermal:Suppot 64 bit RFIM responses")
Signed-off-by YueHaibing <[email protected]>---
drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c | 1 +1 file changed, 1 insertion(+)diff --git
a/drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.cb/drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.cindexa86521973dad..01008ae00e7f100644drivers/thermal/intel/int340x_thermal/processor_thermal_mbox.c +1
-0@@ -7,6 +7,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include "processor_thermal_device.h"Quoted 2 lines
#define MBOX_CMD_WORKLOAD_TYPE_READ 0x0E.