Skip to contentSkip to conversation

thermal/drivers/armada: Fix missing bitfields include

PATCH In review Daniel Lezcano 2 participants 2 messages Aug 11

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

PATCH 1/1 thermal/drivers/armada: Fix missing bitfields include

From: Daniel Lezcano <[email protected]>

Add the missing include leading to the error:

error: implicit declaration of function ‘FIELD_GET’ [-Werror=implicit-function-declaration]
184 | if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR)

      |                     ^~~~~~~~~

cc1: all warnings being treated as errors

Fixes cbe31d5ce498 ("thermal/drivers/armada: Use bitfield and bitmask macros")
---
 drivers/thermal/armada_thermal.c | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/armada_thermal.c +1 -0
index 912c68a44bdc..ff63b4f2b977 100644
@@ -4,6 +4,7 @@
  *
  * Copyright (C) 2013 Marvell
  */
+#include <linux/bitfield.h>
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/io.h>
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Daniel Lezcano

From: Daniel Lezcano <[email protected]>

Add the missing include leading to the error:

error: implicit declaration of function ‘FIELD_GET’ [-Werror=implicit-function-declaration]
184 | if (FIELD_GET(MON_FAULT_STATUS_MASK, val) == MON_FAULT_LVL1_UPR)

Quoted 7 lines
      |                     ^~~~~~~~~

cc1: all warnings being treated as errors

Fixes cbe31d5ce498 ("thermal/drivers/armada: Use bitfield and bitmask macros")