@@ -448,7 +448,7 @@ static void print_lockdep_off(const char *bug_msg)
448
448
449
449
unsigned long nr_stack_trace_entries ;
450
450
451
- #if defined( CONFIG_TRACE_IRQFLAGS ) && defined( CONFIG_PROVE_LOCKING )
451
+ #ifdef CONFIG_PROVE_LOCKING
452
452
/*
453
453
* Stack-trace: tightly packed array of stack backtrace
454
454
* addresses. Protected by the graph_lock.
@@ -491,7 +491,7 @@ unsigned int max_lockdep_depth;
491
491
DEFINE_PER_CPU (struct lockdep_stats , lockdep_stats );
492
492
#endif
493
493
494
- #if defined( CONFIG_TRACE_IRQFLAGS ) && defined( CONFIG_PROVE_LOCKING )
494
+ #ifdef CONFIG_PROVE_LOCKING
495
495
/*
496
496
* Locking printouts:
497
497
*/
@@ -2969,7 +2969,7 @@ static void check_chain_key(struct task_struct *curr)
2969
2969
#endif
2970
2970
}
2971
2971
2972
- #if defined( CONFIG_TRACE_IRQFLAGS ) && defined( CONFIG_PROVE_LOCKING )
2972
+ #ifdef CONFIG_PROVE_LOCKING
2973
2973
static int mark_lock (struct task_struct * curr , struct held_lock * this ,
2974
2974
enum lock_usage_bit new_bit );
2975
2975
@@ -3608,7 +3608,7 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
3608
3608
return ret ;
3609
3609
}
3610
3610
3611
- #else /* defined(CONFIG_TRACE_IRQFLAGS) && defined( CONFIG_PROVE_LOCKING) */
3611
+ #else /* CONFIG_PROVE_LOCKING */
3612
3612
3613
3613
static inline int
3614
3614
mark_usage (struct task_struct * curr , struct held_lock * hlock , int check )
@@ -3627,7 +3627,7 @@ static inline int separate_irq_context(struct task_struct *curr,
3627
3627
return 0 ;
3628
3628
}
3629
3629
3630
- #endif /* defined(CONFIG_TRACE_IRQFLAGS) && defined( CONFIG_PROVE_LOCKING) */
3630
+ #endif /* CONFIG_PROVE_LOCKING */
3631
3631
3632
3632
/*
3633
3633
* Initialize a lock instance's lock-class mapping info:
@@ -4321,8 +4321,7 @@ static void __lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie cookie
4321
4321
*/
4322
4322
static void check_flags (unsigned long flags )
4323
4323
{
4324
- #if defined(CONFIG_PROVE_LOCKING ) && defined(CONFIG_DEBUG_LOCKDEP ) && \
4325
- defined(CONFIG_TRACE_IRQFLAGS )
4324
+ #if defined(CONFIG_PROVE_LOCKING ) && defined(CONFIG_DEBUG_LOCKDEP )
4326
4325
if (!debug_locks )
4327
4326
return ;
4328
4327
0 commit comments