Skip to content

Commit 4bfb0ec

Browse files
krzkandersson
authored andcommitted
firmware: qcom: uefisecapp: Annotate acquiring locks for context tracking
qcuefi_acquire() and qcuefi_release() end with mutex locked or unlocked respectively, so annotate them so the lock usage will be tracked by context tracking tools. Note that mutex is tracked since commit 370f0a3 ("locking/mutex: Support Clang's context analysis"). Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260216091525.107935-5-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 055d79a commit 4bfb0ec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/firmware/qcom/qcom_qseecom_uefisecapp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ static int qcuefi_set_reference(struct qcuefi_client *qcuefi)
710710
}
711711

712712
static struct qcuefi_client *qcuefi_acquire(void)
713+
__acquires(__qcuefi_lock)
713714
{
714715
mutex_lock(&__qcuefi_lock);
715716
if (!__qcuefi) {
@@ -720,6 +721,7 @@ static struct qcuefi_client *qcuefi_acquire(void)
720721
}
721722

722723
static void qcuefi_release(void)
724+
__releases(__qcuefi_lock)
723725
{
724726
mutex_unlock(&__qcuefi_lock);
725727
}

0 commit comments

Comments
 (0)