diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 5b04c4095c8d0e8717ca0ca489a285612cc31584..583d9ff0a571a4c75a1370472e9c03ff7333a076 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -178,7 +178,7 @@ config PACK_STACK
 
 config SMALL_STACK
 	bool "Use 4kb/8kb for kernel stack instead of 8kb/16kb"
-	depends on PACK_STACK
+	depends on PACK_STACK && !LOCKDEP
 	help
 	  If you say Y here and the compiler supports the -mkernel-backchain
 	  option the kernel will use a smaller kernel stack size. For 31 bit