Re: [PATCH v7 10/10] iio: pressure: dps310: check the lock markings with context analysis
From: Jonathan Cameron
Date: Sun Sep 20 2026 - 14:33:00 EST
> __must_hold() markings added earlier in this series are only
> documentation unless the file opts in, so switch the analysis on for
> dps310.o.
>
> Clean with clang 23.1.0 and CONFIG_WARN_CONTEXT_ANALYSIS=y. It does run:
> dropping the lock around dps310_fifo_drain() warns rather than going
> quietly.
>
> Assisted-by: LLM
> Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>
Longer term I'd like to spend the effort to get this to be useable
across much of IIO but baby steps. Hence enabling it just here for
now is fine.
Thanks,
Jonathan
--
Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>