Re: [PATCH v6 6/6] iio: pressure: dps310: check the lock markings with context analysis

From: Jonathan Cameron

Date: Sun Aug 30 2026 - 21:15:42 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 at W=1. It does run: dropping the lock around
> dps310_fill_scan() fails the build rather than going quietly.
>
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>

This does make me nervous, but I guess we need to test the water
at somepoint. Ideally I'd just flick it on for the whole IIO but
it is notorious for false positives.

--
Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>