Re: [PATCH v11 5/5] iio: pressure: dps310: assert the lock at runtime too

From: Andy Shevchenko

Date: Fri Oct 02 2026 - 04:02:24 EST


On Fri, Oct 02, 2026 at 10:25:26AM +0300, Rupesh Majhi wrote:
> __must_hold() is clang only and does nothing in GCC builds. Add
> lockdep_assert_held() next to each, so lockdep catches a missing lock
> too.

Suggested-by?

But we need to hear from Jonathan and others if they like these annotations in
a mere IIO driver.

--
With Best Regards,
Andy Shevchenko