diff options
author | J. R. Okajima <[email protected]> | 2024-07-23 16:40:17 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-09-01 20:43:32 -0700 |
commit | e0ba72e3a4422c4255fa80191a637d7c65ef4c59 (patch) | |
tree | 7c3f9910f8a0afa1cc7313af4cbb30dc1f7862f7 | |
parent | 8af2caf7307d8002d88c377c58eba8cae75a2109 (diff) |
lockdep: upper limit LOCKDEP_CHAINS_BITS
CONFIG_LOCKDEP_CHAINS_BITS value decides the size of chain_hlocks[] in
kernel/locking/lockdep.c, and it is checked by add_chain_cache() with
BUILD_BUG_ON((1UL << 24) <= ARRAY_SIZE(chain_hlocks));
This patch is just to silence BUILD_BUG_ON().
See also https://lore.kernel.org/all/30795.1620913191@jrobl/
[[email protected]: fix minor checkpatch issues in commit log]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: J. R. Okajima <[email protected]>
Signed-off-by: Carlos Llamas <[email protected]>
Acked-by: Tetsuo Handa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | lib/Kconfig.debug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index bf0995d328b3..a81d452941ce 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1515,7 +1515,7 @@ config LOCKDEP_BITS config LOCKDEP_CHAINS_BITS int "Bitsize for MAX_LOCKDEP_CHAINS" depends on LOCKDEP && !LOCKDEP_SMALL - range 10 30 + range 10 21 default 16 help Try increasing this value if you hit "BUG: MAX_LOCKDEP_CHAINS too low!" message. |