Re: [RFC 08/12] powerpc/pseries: Annotate the DTL debugfs read lock context

From: IBM

Date: Mon Sep 28 2026 - 22:11:21 EST


"Ritesh Harjani (IBM)" <ritesh.list@xxxxxxxxx> writes:

> Clang's context analysis reports:
> dtl.c: error: rw_semaphore 'dtl_access_lock' is still held at the end of function [-Werror,-Wthread-safety-analysis]
> dtl.c: error: releasing rw_semaphore 'dtl_access_lock' that was not held [-Werror,-Wthread-safety-analysis]
>
> Add the necessary annotations to phy_attest_sequence_{begin|end}(),
> to fix these errors for enabling Clang context analysis.

Sashiko pointed out:
"Does this commit message reference the wrong functions here?"

So here is the corrected version:
Add the necessary annotations to dtl_{enable|disable}(), dtl_file{open|release}(),
to fix these errors for enabling Clang context analysis.

I will wait for any review comments before revising v2.

-ritesh