History

[PATCH] timer: add lock annotation to lock_timer_base

lock_timer_base acquires a lock and returns with that lock held. Add a lock annotation to this function so that sparse can check callers for lock pairing, and so that sparse will not complain about this function since it intentionally uses the lock in this manner.

Josh Triplett committed 20 years ago

Commit 89e7e371 parent 650a8981 file · +1 −0Browse files

Unified · Split

kernel/timer.c+1−0
@@ -175,6 +175,7 @@ static inline void detach_timer(struct timer_list *timer, · 174 unmodified lines
175175 */
176176 static tvec_base_t *lock_timer_base(struct timer_list *timer,
177177 unsigned long *flags)
178+ __acquires(timer->base->lock)
178179 {
179180 tvec_base_t *base;
180181

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t