[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904-mfd-tps6594-core-fix-bitfield-h-v1-1-5d0f00cfe58f@kernel.org>
Date: Thu, 04 Sep 2025 18:26:12 -0700
From: Nathan Chancellor <nathan@...nel.org>
To: Lee Jones <lee@...nel.org>, Job Sava <jsava@...ticallink.com>,
Michael Walle <mwalle@...nel.org>
Cc: linux-kernel@...r.kernel.org, Nathan Chancellor <nathan@...nel.org>
Subject: [PATCH] mfd: tps6594: Explicitly include bitfield.h
After a recent change that started using FIELD_GET() in tps6594-core.c,
there is an error when bitfield.h is not implicitly included, such as
when building allmodconfig for ARCH=hexagon:
drivers/mfd/tps6594-core.c:767:7: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
767 | if (FIELD_GET(TPS65224_MASK_EN_PB_VSENSE_CONFIG, pwr_on) == TPS65224_EN_SEL_PB ||
| ^
Explicitly include bitfield.h to resolve the errors.
Fixes: d766ca01c208 ("mfd: tps6594: Add power button functionality")
Signed-off-by: Nathan Chancellor <nathan@...nel.org>
---
It looks like this should go into ib-mfd-input-6.18.
---
drivers/mfd/tps6594-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/tps6594-core.c b/drivers/mfd/tps6594-core.c
index 7127af7142f5..8b26c4127472 100644
--- a/drivers/mfd/tps6594-core.c
+++ b/drivers/mfd/tps6594-core.c
@@ -10,6 +10,7 @@
* Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/
*/
+#include <linux/bitfield.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
---
base-commit: a4eb677652a5da4d8e7271c0c0c8719c39f10e36
change-id: 20250904-mfd-tps6594-core-fix-bitfield-h-74a2e3d632fc
Best regards,
--
Nathan Chancellor <nathan@...nel.org>
Powered by blists - more mailing lists