[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251105-rfc-reset-include-bits-v1-1-d7e1bbc7e1ab@gmail.com>
Date: Wed, 05 Nov 2025 21:35:02 +0800
From: Encrow Thorne <jyc0019@...il.com>
To: Philipp Zabel <p.zabel@...gutronix.de>,
Troy Mitchell <troy.mitchell@...ux.dev>
Cc: linux-kernel@...r.kernel.org, Encrow Thorne <jyc0019@...il.com>
Subject: [PATCH RFC] reset: fix BIT macro reference
RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not
include bits.h or bitops.h. This causes compilation errors when
including reset.h standalone.
Include bits.h to make reset.h self-contained.
This patch is sent as RFC to discuss whether including bits.h in
reset.h is appropriate.
Signed-off-by: Encrow Thorne <jyc0019@...il.com>
---
include/linux/reset.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/reset.h b/include/linux/reset.h
index 840d75d172f6..d3102eef085e 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -5,6 +5,7 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/types.h>
+#include <linux/bits.h>
struct device;
struct device_node;
---
base-commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87
change-id: 20251105-rfc-reset-include-bits-4ec72344d1a3
Best regards,
--
Encrow Thorne <jyc0019@...il.com>
Powered by blists - more mailing lists