reset: fix BIT macro reference
PATCH v3 1/1 reset: fix BIT macro reference
RESET_CONTROL_FLAGS_BIT_* macros use BIT(), but reset.h does not include bits.h. This causes compilation errors when including reset.h standalone.
Include bits.h to make reset.h self-contained.
---
Changes in v3:
- Fix commit message.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Add header in alphabetical order.
- 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
@@ -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]>
Quoted 10 lines · Encrow Thorne
RESET_CONTROL_FLAGS_BIT_* macros use
BIT(), butreset.hdoes not includebits.h. This causes compilation errors when includingreset.hstandalone.Include
bits.hto makereset.hself-contained.Suggested-by Troy Mitchell <[email protected]>Reviewed-by Troy Mitchell <[email protected]>Reviewed-by Philipp Zabel <[email protected]>Signed-off-by Encrow Thorne <[email protected]>
Applied to reset/next, thanks!
[1/1] reset: fix BIT macro reference
https://git.pengutronix.de/cgit/pza/linux/commit/?id=dae9b0708255
regards
Philipp