[PATCH v2 25/26] rnbd: Enable lock context analysis

Bart Van Assche
2026-03-25T21:46:45Z

Let Clang verify lock and unlock calls. Enable lock context analysis in the
Makefile.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
drivers/block/rnbd/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/block/rnbd/Makefile b/drivers/block/rnbd/Makefile
index 208e5f865497..42c2cccdb53d 100644
--- a/drivers/block/rnbd/Makefile
+++ b/drivers/block/rnbd/Makefile
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later

+CONTEXT_ANALYSIS := y
+
ccflags-y := -I$(srctree)/drivers/infiniband/ulp/rtrs

rnbd-client-y := rnbd-clt.o \