History

locking/lockdep: Remove useless conditional macro

Since #defined(CONFIG_PROVE_LOCKING) is used in the scope of #ifdef CONFIG_PROVE_LOCKING, it can be removed.

Yuyang Du committed 7 years ago

Commit e7a38f61 parent c52478f1 file · +3 −3Browse files

Showing the changes to kernel/locking (1 of 1 file). Show all

Unified · Split

kernel/locking/lockdep.c+3−3
@@ -1674,7 +1674,7 @@ check_redundant(struct lock_list *root, struct lock_class *target, · 1673 unmodified lines
16741674 return result;
16751675 }
16761676
1677−#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_PROVE_LOCKING)
1677+#ifdef CONFIG_TRACE_IRQFLAGS
16781678
16791679 static inline int usage_accumulate(struct lock_list *entry, void *mask)
16801680 {
@@ -2152,7 +2152,7 @@ static inline void inc_chains(void) · 471 unmodified lines
21522152 nr_process_chains++;
21532153 }
21542154
2155−#endif
2155+#endif /* CONFIG_TRACE_IRQFLAGS */
21562156
21572157 static void
21582158 print_deadlock_scenario(struct held_lock *nxt, struct held_lock *prv)
@@ -2829,7 +2829,7 @@ static inline int validate_chain(struct task_struct *curr, · 670 unmodified lines
28292829 {
28302830 return 1;
28312831 }
2832−#endif
2832+#endif /* CONFIG_PROVE_LOCKING */
28332833
28342834 /*
28352835 * We are building curr_chain_key incrementally, so double-check

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