File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ static inline bool inode_to_wb_is_valid(struct inode *inode)
332
332
* holding either @inode->i_lock, @inode->i_mapping->tree_lock, or the
333
333
* associated wb's list_lock.
334
334
*/
335
- static inline struct bdi_writeback * inode_to_wb (struct inode * inode )
335
+ static inline struct bdi_writeback * inode_to_wb (const struct inode * inode )
336
336
{
337
337
#ifdef CONFIG_LOCKDEP
338
338
WARN_ON_ONCE (debug_locks &&
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ void synchronize_srcu(struct srcu_struct *sp);
92
92
* relies on normal RCU, it can be called from the CPU which
93
93
* is in the idle loop from an RCU point of view or offline.
94
94
*/
95
- static inline int srcu_read_lock_held (struct srcu_struct * sp )
95
+ static inline int srcu_read_lock_held (const struct srcu_struct * sp )
96
96
{
97
97
if (!debug_lockdep_rcu_enabled ())
98
98
return 1 ;
@@ -101,7 +101,7 @@ static inline int srcu_read_lock_held(struct srcu_struct *sp)
101
101
102
102
#else /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
103
103
104
- static inline int srcu_read_lock_held (struct srcu_struct * sp )
104
+ static inline int srcu_read_lock_held (const struct srcu_struct * sp )
105
105
{
106
106
return 1 ;
107
107
}
Original file line number Diff line number Diff line change @@ -1445,10 +1445,8 @@ do { \
1445
1445
} while (0)
1446
1446
1447
1447
#ifdef CONFIG_LOCKDEP
1448
- static inline bool lockdep_sock_is_held (const struct sock * csk )
1448
+ static inline bool lockdep_sock_is_held (const struct sock * sk )
1449
1449
{
1450
- struct sock * sk = (struct sock * )csk ;
1451
-
1452
1450
return lockdep_is_held (& sk -> sk_lock ) ||
1453
1451
lockdep_is_held (& sk -> sk_lock .slock );
1454
1452
}
You can’t perform that action at this time.
0 commit comments