aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-09-16 12:02:43 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-09-24 04:48:32 -0400
commita5ecddfe0bf82c92cc2e47385e287b21361a8d70 (patch)
treea1c69472eb635a60768b5f0cc6b2a346806c03aa
parent8dd1fe1594a712eb326e1607c694fbd1baf85f4b (diff)
lockdep: make MAX_LOCKDEP_SUBCLASSES unconditionally visible
This define is needed by i2c_adapter_depth() to detect if we don't exceed the maximum number of lock subclasses. Make it visible even if lockdep is disabled. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: Peter Rosin <peda@axentia.se> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r--include/linux/lockdep.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index eabe0138eb06..c1458fede1f9 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -16,6 +16,8 @@ struct lockdep_map;
16extern int prove_locking; 16extern int prove_locking;
17extern int lock_stat; 17extern int lock_stat;
18 18
19#define MAX_LOCKDEP_SUBCLASSES 8UL
20
19#ifdef CONFIG_LOCKDEP 21#ifdef CONFIG_LOCKDEP
20 22
21#include <linux/linkage.h> 23#include <linux/linkage.h>
@@ -29,8 +31,6 @@ extern int lock_stat;
29 */ 31 */
30#define XXX_LOCK_USAGE_STATES (1+3*4) 32#define XXX_LOCK_USAGE_STATES (1+3*4)
31 33
32#define MAX_LOCKDEP_SUBCLASSES 8UL
33
34/* 34/*
35 * NR_LOCKDEP_CACHING_CLASSES ... Number of classes 35 * NR_LOCKDEP_CACHING_CLASSES ... Number of classes
36 * cached in the instance of lockdep_map 36 * cached in the instance of lockdep_map