mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
rcu: Glue ASCII strings together
Split strings make it difficult to find the code that resulted in a given console message, so this commit glues split strings back together despite the resulting long lines. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
cb1e78cfa2
commit
41f4abd92a
1 changed files with 5 additions and 10 deletions
|
@ -479,11 +479,9 @@ static inline void rcu_preempt_sleep_check(void)
|
||||||
do { \
|
do { \
|
||||||
rcu_preempt_sleep_check(); \
|
rcu_preempt_sleep_check(); \
|
||||||
rcu_lockdep_assert(!lock_is_held(&rcu_bh_lock_map), \
|
rcu_lockdep_assert(!lock_is_held(&rcu_bh_lock_map), \
|
||||||
"Illegal context switch in RCU-bh" \
|
"Illegal context switch in RCU-bh read-side critical section"); \
|
||||||
" read-side critical section"); \
|
|
||||||
rcu_lockdep_assert(!lock_is_held(&rcu_sched_lock_map), \
|
rcu_lockdep_assert(!lock_is_held(&rcu_sched_lock_map), \
|
||||||
"Illegal context switch in RCU-sched"\
|
"Illegal context switch in RCU-sched read-side critical section"); \
|
||||||
" read-side critical section"); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else /* #ifdef CONFIG_PROVE_RCU */
|
#else /* #ifdef CONFIG_PROVE_RCU */
|
||||||
|
@ -518,16 +516,14 @@ static inline void rcu_preempt_sleep_check(void)
|
||||||
#define __rcu_dereference_check(p, c, space) \
|
#define __rcu_dereference_check(p, c, space) \
|
||||||
({ \
|
({ \
|
||||||
typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \
|
typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \
|
||||||
rcu_lockdep_assert(c, "suspicious rcu_dereference_check()" \
|
rcu_lockdep_assert(c, "suspicious rcu_dereference_check() usage"); \
|
||||||
" usage"); \
|
|
||||||
rcu_dereference_sparse(p, space); \
|
rcu_dereference_sparse(p, space); \
|
||||||
smp_read_barrier_depends(); \
|
smp_read_barrier_depends(); \
|
||||||
((typeof(*p) __force __kernel *)(_________p1)); \
|
((typeof(*p) __force __kernel *)(_________p1)); \
|
||||||
})
|
})
|
||||||
#define __rcu_dereference_protected(p, c, space) \
|
#define __rcu_dereference_protected(p, c, space) \
|
||||||
({ \
|
({ \
|
||||||
rcu_lockdep_assert(c, "suspicious rcu_dereference_protected()" \
|
rcu_lockdep_assert(c, "suspicious rcu_dereference_protected() usage"); \
|
||||||
" usage"); \
|
|
||||||
rcu_dereference_sparse(p, space); \
|
rcu_dereference_sparse(p, space); \
|
||||||
((typeof(*p) __force __kernel *)(p)); \
|
((typeof(*p) __force __kernel *)(p)); \
|
||||||
})
|
})
|
||||||
|
@ -542,8 +538,7 @@ static inline void rcu_preempt_sleep_check(void)
|
||||||
({ \
|
({ \
|
||||||
typeof(p) _________p1 = ACCESS_ONCE(p); \
|
typeof(p) _________p1 = ACCESS_ONCE(p); \
|
||||||
rcu_lockdep_assert(c, \
|
rcu_lockdep_assert(c, \
|
||||||
"suspicious rcu_dereference_index_check()" \
|
"suspicious rcu_dereference_index_check() usage"); \
|
||||||
" usage"); \
|
|
||||||
smp_read_barrier_depends(); \
|
smp_read_barrier_depends(); \
|
||||||
(_________p1); \
|
(_________p1); \
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue