[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221123065319.56756-1-zhengyongjun3@huawei.com>
Date: Wed, 23 Nov 2022 06:53:19 +0000
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <cluster-devel@...hat.com>, <linux-kernel@...r.kernel.org>
CC: <ccaulfie@...hat.com>, <teigland@...hat.com>,
<zhengbin13@...wei.com>
Subject: [PATCH -next] fs: dlm: Fix build error without DEBUG_LOCK_ALLOC
If CONFIG_DLM is y, DEBUG_LOCK_ALLOC is n, building fails:
fs/dlm/lowcomms.o: In function `lowcomms_queue_rwork':
lowcomms.c:(.text+0x2ac): undefined reference to `lockdep_is_held'
lowcomms.c:(.text+0x308): undefined reference to `lockdep_is_held'
fs/dlm/lowcomms.o: In function `lowcomms_queue_swork':
lowcomms.c:(.text+0x3e0): undefined reference to `lockdep_is_held'
fs/dlm/lowcomms.o: In function `restore_callbacks':
lowcomms.c:(.text+0xd8c): undefined reference to `lockdep_is_held'
lowcomms.c:(.text+0xdcc): undefined reference to `lockdep_is_held'
Make DLM select DEBUG_LOCK_ALLOC to fix this.
Fixes: dbb751ffab0b ("fs: dlm: parallelize lowcomms socket handling")
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
fs/dlm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/dlm/Kconfig b/fs/dlm/Kconfig
index 1105ce3c80cb..90a0861e7a29 100644
--- a/fs/dlm/Kconfig
+++ b/fs/dlm/Kconfig
@@ -5,6 +5,7 @@ menuconfig DLM
depends on SYSFS && CONFIGFS_FS && (IPV6 || IPV6=n)
select IP_SCTP
select SRCU
+ select DEBUG_LOCK_ALLOC
help
A general purpose distributed lock manager for kernel or userspace
applications.
--
2.17.1
Powered by blists - more mailing lists