Skip to content

Commit b459874

Browse files
paulmckrcufbq
authored andcommitted
srcu: Define SRCU_READ_FLAVOR_ALL in terms of symbols
This commit defines SRCU_READ_FLAVOR_ALL in terms of the SRCU_READ_FLAVOR_* definitions instead of a hexadecimal constant. Suggested-by: Neeraj Upadhyay <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: <[email protected]> Signed-off-by: Boqun Feng <[email protected]>
1 parent da2ac56 commit b459874

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/srcu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ int init_srcu_struct(struct srcu_struct *ssp);
4747
#define SRCU_READ_FLAVOR_NORMAL 0x1 // srcu_read_lock().
4848
#define SRCU_READ_FLAVOR_NMI 0x2 // srcu_read_lock_nmisafe().
4949
#define SRCU_READ_FLAVOR_LITE 0x4 // srcu_read_lock_lite().
50-
#define SRCU_READ_FLAVOR_ALL 0x7 // All of the above.
50+
#define SRCU_READ_FLAVOR_ALL (SRCU_READ_FLAVOR_NORMAL | SRCU_READ_FLAVOR_NMI | \
51+
SRCU_READ_FLAVOR_LITE) // All of the above.
5152

5253
#ifdef CONFIG_TINY_SRCU
5354
#include <linux/srcutiny.h>

0 commit comments

Comments
 (0)