srcu: Allocate per-CPU data for DEFINE_SRCU() in modules
[sfrench/cifs-2.6.git] / include / linux / module.h
index 188998d3dca94162aedd5cbfdf18708fa016c1e4..1455812dd325c516b18465fdda603582ce22b827 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/rbtree_latch.h>
 #include <linux/error-injection.h>
 #include <linux/tracepoint-defs.h>
+#include <linux/srcu.h>
 
 #include <linux/percpu.h>
 #include <asm/module.h>
@@ -450,6 +451,10 @@ struct module {
        unsigned int num_tracepoints;
        tracepoint_ptr_t *tracepoints_ptrs;
 #endif
+#ifdef CONFIG_TREE_SRCU
+       unsigned int num_srcu_structs;
+       struct srcu_struct **srcu_struct_ptrs;
+#endif
 #ifdef CONFIG_BPF_EVENTS
        unsigned int num_bpf_raw_events;
        struct bpf_raw_event_map *bpf_raw_events;