|
@@ -92,7 +92,7 @@ void synchronize_srcu(struct srcu_struct *sp);
|
|
* relies on normal RCU, it can be called from the CPU which
|
|
* relies on normal RCU, it can be called from the CPU which
|
|
* is in the idle loop from an RCU point of view or offline.
|
|
* is in the idle loop from an RCU point of view or offline.
|
|
*/
|
|
*/
|
|
-static inline int srcu_read_lock_held(struct srcu_struct *sp)
|
|
|
|
|
|
+static inline int srcu_read_lock_held(const struct srcu_struct *sp)
|
|
{
|
|
{
|
|
if (!debug_lockdep_rcu_enabled())
|
|
if (!debug_lockdep_rcu_enabled())
|
|
return 1;
|
|
return 1;
|
|
@@ -101,7 +101,7 @@ static inline int srcu_read_lock_held(struct srcu_struct *sp)
|
|
|
|
|
|
#else /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
|
|
#else /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
|
|
|
|
|
|
-static inline int srcu_read_lock_held(struct srcu_struct *sp)
|
|
|
|
|
|
+static inline int srcu_read_lock_held(const struct srcu_struct *sp)
|
|
{
|
|
{
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|