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

Jinpu Wang
2026-03-26T06:59:03Z

On Wed, Mar 25, 2026 at 10:46 PM Bart Van Assche <bvanassche@acm.org> wrote:
>
> Let Clang verify lock and unlock calls. Enable lock context analysis in the
> Makefile.
>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Jack Wang <jinpu.wang@ionos.com>

>
> ---
> 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 \