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 <Neeraj.Upadhyay@amd.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Andrii Nakryiko <andrii@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Kent Overstreet <kent.overstreet@linux.dev> Cc: <bpf@vger.kernel.org> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
1 parent da2ac56 commit b459874

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)