thermal/drivers/qcom/spm mbg tm: Fix missing bitfield header
Subsystems (3)
PATCH 1/1 thermal/drivers/qcom/spm mbg tm: Fix missing bitfield header
From: Daniel Lezcano <[email protected]>
Add missing bitfield header leading to the error:
Quoted 1 line
Quoted 1 line
drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
184 | if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR)
| ^~~~~~~~~Fixes c3dce117333c ( "thermal/drivers/qcom: Add support for Qualcomm MBG thermal monitoring")
Reported-by kernel test robot <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/qcom/qcom-spmi-mbg-tm.c +1 -1
@@ -2,7 +2,7 @@/* * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ - +#include <linux/bitfield.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/module.h>
Signature · 1 line
2.43.0
Quoted 8 lines · Daniel Lezcano
From: Daniel Lezcano <[email protected]>
Add missing bitfield header leading to the error:
Quoted 1 line
Quoted 1 line
drivers/thermal/qcom/qcom-spmi-mbg-tm.c:184:21: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]184 | if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR) | ^~~~~~~~~
Quoted 8 lines
Fixes c3dce117333c ( "thermal/drivers/qcom: Add support for Qualcomm MBG thermal monitoring")Reported-by kernel test robot <[email protected]>Signed-off-by Daniel Lezcano <[email protected]>--- drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry