aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/srcutiny.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-06-16 16:07:24 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-08-16 14:27:01 -0700
commited2b9e1b6d82c729b2757b449097f28f108b023b (patch)
tree2f0786f1c4ef39a38dbfffbd85dd0866d24e88da /include/linux/srcutiny.h
parentrcu: Clarify rcu_is_watching() kernel-doc comment (diff)
downloadwireguard-linux-ed2b9e1b6d82c729b2757b449097f28f108b023b.tar.xz
wireguard-linux-ed2b9e1b6d82c729b2757b449097f28f108b023b.zip
srcu,notifier: Remove #ifdefs in favor of SRCU Tiny srcu_usage
This commit removes two #ifdef directives from include/linux/notifier.h by causing SRCU Tiny to provide a dummy srcu_usage structure and a dummy __SRCU_USAGE_INIT() macro. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matthias Brugger <matthias.bgg@gmail.com> Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl> Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com> Cc: Sachin Sant <sachinp@linux.ibm.com> Cc: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/srcutiny.h')
-rw-r--r--include/linux/srcutiny.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/srcutiny.h b/include/linux/srcutiny.h
index ebd72491af99..447133171d95 100644
--- a/include/linux/srcutiny.h
+++ b/include/linux/srcutiny.h
@@ -48,6 +48,10 @@ void srcu_drive_gp(struct work_struct *wp);
#define DEFINE_STATIC_SRCU(name) \
static struct srcu_struct name = __SRCU_STRUCT_INIT(name, name, name)
+// Dummy structure for srcu_notifier_head.
+struct srcu_usage { };
+#define __SRCU_USAGE_INIT(name) { }
+
void synchronize_srcu(struct srcu_struct *ssp);
/*