lockdep: reduce the ifdeffery
[firefly-linux-kernel-4.4.55.git] / kernel / lockdep_proc.c
index 58f35e586ee3b508e693e3cd010a69982ae76b5f..2fde34127e2ee663a3ecf9a1d3b05101096153b6 100644 (file)
@@ -271,8 +271,10 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
        if (nr_list_entries)
                factor = sum_forward_deps / nr_list_entries;
 
+#ifdef CONFIG_PROVE_LOCKING
        seq_printf(m, " dependency chains:             %11lu [max: %lu]\n",
                        nr_lock_chains, MAX_LOCKDEP_CHAINS);
+#endif
 
 #ifdef CONFIG_TRACE_IRQFLAGS
        seq_printf(m, " in-hardirq chains:             %11u\n",