BACKPORT: rcu: Remove __read_mostly annotations from rcu_scheduler_active externs

Remove the __read_mostly attributes from the rcu_scheduler_active
extern declarations, because these attributes are ignored for
prototypes and we'd have to include the full <linux/cache.h> header
to gain this functionally pointless attribute defined.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

Fixes: 273bbfc4d7 ("BACKPORT: printk: stop including cache.h from printk.h")
(cherry picked from commit e6339d3b443c436c3b8f45eefec2212a8c07065d)
Change-Id: I99290b2608f5374fb818697a244f09c93400ad9c
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
Ingo Molnar
2022-01-14 16:16:55 -08:00
committed by Treehugger Robot
parent 4baff5cba1
commit 02ac822b3d
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ static inline int rcu_preempt_depth(void)
/* Internal to kernel */
void rcu_init(void);
extern int rcu_scheduler_active __read_mostly;
extern int rcu_scheduler_active;
void rcu_sched_clock_irq(int user);
void rcu_report_dead(unsigned int cpu);
void rcutree_migrate_callbacks(int cpu);

View File

@@ -62,7 +62,7 @@ static inline void rcu_irq_exit_check_preempt(void) { }
void exit_rcu(void);
void rcu_scheduler_starting(void);
extern int rcu_scheduler_active __read_mostly;
extern int rcu_scheduler_active;
void rcu_end_inkernel_boot(void);
bool rcu_inkernel_boot_has_ended(void);
bool rcu_is_watching(void);