Skip to contentSkip to conversation

thermal/drivers/qcom/spm mbg tm: Fix missing bitfield header

PATCH In review Daniel Lezcano 2 participants 2 messages Aug 11

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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")
---
 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
index fa2f10002253..0492d5eeca01 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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")
---
 drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry