From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9F07EB64DC for ; Thu, 29 Jun 2023 12:27:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231956AbjF2M1R (ORCPT ); Thu, 29 Jun 2023 08:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232307AbjF2M05 (ORCPT ); Thu, 29 Jun 2023 08:26:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F197A10FD; Thu, 29 Jun 2023 05:26:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7F34E61540; Thu, 29 Jun 2023 12:26:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3B77C433C8; Thu, 29 Jun 2023 12:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688041576; bh=LS52vXkYfLsp8nOl2NekhIKUNII1QAdyPvLr7arBdP0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mRxW0wUiy6WtBT08Rz/9diVeNseJ0fg3hzY3GLMmm0VovfhydkgknKPbpmuhCnQyy UuRR1DXAGwNS0pxytNA/D/fC/yS6gqlOzLv2F8LHnZ6IPqCE2fsNIpPAex/4/aUKb9 oqvuUaPFHfmQlWAlRY0Bhq1c/CYNPnXFj0F3lY3TAR48JFrmDRpO3bKj5LlO9wSe9S uoU++8QfLbXsg3gLPjXVeDE0WgsPkxv46bo2PTBG3AVYorqOT30hW7oT8Ivpf4aQUb qsAcLobA6uY7SFlX+aMl629GlhVHlPai7tJ62jBnNGiQsJOCF5xvBMFrVpX2+mupKZ w4Ki2FQ/ZB7jQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1qEqj5-0005zd-75; Thu, 29 Jun 2023 14:26:19 +0200 Date: Thu, 29 Jun 2023 14:26:19 +0200 From: Johan Hovold To: Dmitry Baryshkov Cc: Maximilian Luz , Bjorn Andersson , Andy Gross , Konrad Dybcio , Ard Biesheuvel , Rob Herring , Krzysztof Kozlowski , Sudeep Holla , Ilias Apalodimas , Srinivas Kandagatla , Sumit Garg , Steev Klimaszewski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/4] firmware: Add support for Qualcomm UEFI Secure Application Message-ID: References: <20230305022119.1331495-1-luzmaximilian@gmail.com> <20230305022119.1331495-5-luzmaximilian@gmail.com> <2eb4abde-579f-94ef-b6c3-81ef197329d0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2eb4abde-579f-94ef-b6c3-81ef197329d0@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue, Mar 07, 2023 at 05:51:35PM +0200, Dmitry Baryshkov wrote: > On 05/03/2023 04:21, Maximilian Luz wrote: > > +static struct qcuefi_client *qcuefi_acquire(void) > > Doesn't this need the __locks annotation? No, the mutex implementation does not use sparse annotation so adding __acquires() here will instead introduce new warnings. > > +{ > > + mutex_lock(&__qcuefi_lock); > > + return __qcuefi; > > +} Johan