Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] thermal/drivers/qcom/spm mbg tm: Fix missing bitfield header
@ 2026-08-11  9:49 Daniel Lezcano
  2026-08-11 14:09 ` Dmitry Baryshkov
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Lezcano @ 2026-08-11  9:49 UTC (permalink / raw)
  To: rafael, daniel.lezcano
  Cc: quic_skakitap, linux-kernel, linux-pm, Daniel Lezcano,
	kernel test robot, Amit Kucheria, Thara Gopinath, Zhang Rui,
	Lukasz Luba, open list:QUALCOMM TSENS THERMAL DRIVER

From: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>

Add missing bitfield header leading to the error:

>> 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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202608080800.RfxKb9uR-lkp@intel.com/
Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
---
 drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
index fa2f10002253..0492d5eeca01 100644
--- a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
+++ b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
@@ -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>
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-11 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11  9:49 [PATCH] thermal/drivers/qcom/spm mbg tm: Fix missing bitfield header Daniel Lezcano
2026-08-11 14:09 ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox