thermal/drivers/armada: Fix missing bitfields include
Subsystems (2)
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")
Reported-by kernel test robot <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/thermal/armada_thermal.c | 1 + 1 file changed, 1 insertion(+)
drivers/thermal/armada_thermal.c +1 -0
@@ -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
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")Reported-by kernel test robot <[email protected]>Signed-off-by Daniel Lezcano <[email protected]>
Reviewed-by Miquel Raynal <[email protected]>