Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Suggested-by: Troy Mitchell <troy.mitchell@linux.dev>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.dev>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Encrow Thorne <jyc0019@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Encrow Thorne and committed by
Philipp Zabel
f3d8b64e cea5d43b

+1
+1
include/linux/reset.h
··· 2 2 #ifndef _LINUX_RESET_H_ 3 3 #define _LINUX_RESET_H_ 4 4 5 + #include <linux/bits.h> 5 6 #include <linux/err.h> 6 7 #include <linux/errno.h> 7 8 #include <linux/types.h>