Skip to contentSkip to conversation

reset: fix BIT macro reference

PATCH Superseded Encrow Thorne 3 participants 5 messages Nov 5, 2025 – Nov 10, 2025 Reset controller framework

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 include/linux/reset.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/reset.h +1 -0
index 840d75d172f6..44f9e3415f92 100644
@@ -2,6 +2,7 @@
 #ifndef _LINUX_RESET_H_
 #define _LINUX_RESET_H_
 
+#include <linux/bits.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/types.h>

---
base-commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87
change-id: 20251105-rfc-reset-include-bits-4ec72344d1a3

Best regards,

Signature · 1 line
Encrow Thorne <[email protected]>
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 2 lines · Encrow Thorne

RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not include bits.h or bitops.h. This causes compilation errors when

                 ^^^^^^^^^^^

Troy suggested "or bitops.h" can be dropped.

Quoted 11 lines

including reset.h standalone.

Include bits.h to make reset.h self-contained.

---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.

These should be replaced with a short description of the changes relative to v1.

Otherwise,

regards
Philipp

#2 lore raw
Quoted 18 lines · Philipp Zabel
Quoted 2 lines · Encrow Thorne

RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not include bits.h or bitops.h. This causes compilation errors when

                 ^^^^^^^^^^^

Troy suggested "or bitops.h" can be dropped.

Quoted 11 lines

including reset.h standalone.

Include bits.h to make reset.h self-contained.

---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.

Quoted 4 lines

These should be replaced with a short description of the changes relative to v1.

Sorry for the oversight on my side regarding the “Changes in v2” placeholders. Do you recommend I resend a corrected v2 now, or wait and include it in a v3? Thanks for your guidance.

-Encrow

Quoted 6 lines

Otherwise,

regards
Philipp

#3 lore raw
Quoted 19 lines · Encrow Thorne
Quoted 18 lines · Philipp Zabel
Quoted 2 lines · Encrow Thorne

RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not include bits.h or bitops.h. This causes compilation errors when

                 ^^^^^^^^^^^

Troy suggested "or bitops.h" can be dropped.

Quoted 11 lines

including reset.h standalone.

Include bits.h to make reset.h self-contained.

---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.

Quoted 7 lines
Quoted 4 lines

These should be replaced with a short description of the changes relative to v1.

Sorry for the oversight on my side regarding the “Changes in v2” placeholders. Do you recommend I resend a corrected v2 now, or wait and include it in a v3? Thanks for your guidance.

Send v3 when you are ready.

- Troy

#4 lore raw
In reply to Encrow Thorne
Quoted 6 lines · Encrow Thorne

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.

Quoted 8 lines

---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/[email protected]

What's that?

- Troy

Quoted 25 lines
---
 include/linux/reset.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/reset.h +1 -1
index 840d75d172f6..44f9e3415f92 100644
@@ -2,6 +2,7 @@
 #ifndef _LINUX_RESET_H_
 #define _LINUX_RESET_H_
 
+#include <linux/bits.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 
---

base-commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87
change-id: 20251105-rfc-reset-include-bits-4ec72344d1a3

Best regards,

Signature · 1 line
Encrow Thorne <[email protected]>