Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp321646ybt; Wed, 8 Jul 2020 00:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN67kqfBMpMJgtZE7brq7z1L8663UDlPdFnCXe7JafX9NRuw1gdfeYInZRU+afqpNCRc0C X-Received: by 2002:a05:6402:1d3a:: with SMTP id dh26mr47015799edb.349.1594193216682; Wed, 08 Jul 2020 00:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594193216; cv=none; d=google.com; s=arc-20160816; b=JODXPRVepKqogcX9P5cRNWhZtqMcAs87pvG0y6sTKg4xMpQQlo3OjWjtVv/AJKVZ47 adVFAJoWX+j61bTTMAjRgVNu7yZQo0+OfkzfKsSOot9pT+TZ6UfLTdTNCvYhNIcnpBEg OpKGnYYs9FYodjRkeGKs+7yVAI4ew1C5/iHaOV9mSk7blhO4nQU0s/47nOv4zxUAV9MY DnR8JqDTHZWNc5oUzGd3jANCSx2+YGx5+ZoYK+ninM0fryQ73v4NIR8qNPzEJGECl5V0 D9fjljnTEBWaX4JoHcGTtvAV3SsBDT+l5o9HKKMbK1RZ74cExw/paX1T2/PzGL9VXhRr Biag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ols8fE88SOECty4ug3M3JHhI6m5+t3LRMsYguz2UCws=; b=Q6Ku3WIsxZ69gChVXT5q8KAOIWkHG+IOxtn0Eoj4OlRSO0ELQgAXHEcvu6o7ysfPL4 Cx/7T5d49nRnfBC+8c6j25SegNyvuxJoVCgGA1DfGqp7s/1jIAFhS7hi4xvGACCzJ7P9 uTmiFAOBMCTxVrJzFDYuHNJpOr76BPDAgpDkTCW8pR2Y3mRjLble4mtnQb9/+K/QU02g jDC63YPzilg3N4AwzKvoNx7pjGGKVhl5R4TxE/mqJQEwoFqB3z8xyrTVjnxpQBTyM3l5 dFJXkowc8hAZdrrV70Kb+UgSZnQI6s71oC0vqQ8tXCF+7dnx6qtTtvTHYi67n90814Lr b03g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERVIiViD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si14370536edr.578.2020.07.08.00.26.34; Wed, 08 Jul 2020 00:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ERVIiViD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730311AbgGHHXT (ORCPT + 99 others); Wed, 8 Jul 2020 03:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730190AbgGHHXT (ORCPT ); Wed, 8 Jul 2020 03:23:19 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D430C08C5F5 for ; Wed, 8 Jul 2020 00:23:18 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id y18so26248398lfh.11 for ; Wed, 08 Jul 2020 00:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ols8fE88SOECty4ug3M3JHhI6m5+t3LRMsYguz2UCws=; b=ERVIiViD/iI07aPNMiZegbsH2kVCDifsiyM7h9FotGZUkC+BE9yb5iEpRWefKTJnkd jReQfyFSiRV8jK7vXeMOXJeEAOLJT48CLEv3e2jRwzs4+OeYlSQC0NYsZFlvbGBnrDmI XvAq1Puv9oLu2GH99BVBlWbMYhsa4sL/iKLN6isDfuXORZ1GIEzSjU57Wq09WZrx4U3Y y2LPZLVrbECvVf9m+MD7bkPcBzaVrGLesjJhBKT4/FAabPEfAgEU13B+zk4z0+8lUBnk rX2KJK3j1Dt4ttJR41YT2eellrR5IHkjJwEQm6an1VijL05wsIEpFXsancfjD4bYgLQ1 mv+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ols8fE88SOECty4ug3M3JHhI6m5+t3LRMsYguz2UCws=; b=D94pl2WWsBojwm8eK/XyIBqCjKNrPYUBp++zg/i+XglpI+5HNc2cYgnvQcQUG59+ie eWYr1KJDu1PnO6USECFT+dQgsJL2WKEFzql5nGKTTZE/u5SKJBmE+asZIR6VR9fvKkUt I4fArL7TCWBB8liCivyVmRsdfbrIdpRRIKOSYKidGN1AQFtKIQPDbYAnjUAe7OSATNqA tM73IC6uctWflk3n98kBzViqs3O4eRPqJbg4HC8Z10gC9DxFrP/THWJTaNzhHTyhW8yu RWrSBHdG/psRZ8mMyXNT5CUP7XRjuAce8JI9vsKLUs2mQYFQ+dqqUNVBT77zmzB08xPv lguA== X-Gm-Message-State: AOAM5310DBuhgBAGLVlk/KVMJNX5SPQnKXGgYYgGoIxHufC/CEhyWDgL HYvOmxPwIaH5u4UoReh1dQqt6wi9yui75aAOQ3sSyg== X-Received: by 2002:a19:e05d:: with SMTP id g29mr35015008lfj.217.1594192997140; Wed, 08 Jul 2020 00:23:17 -0700 (PDT) MIME-Version: 1.0 References: <20200630133345.2232932-1-lee.jones@linaro.org> <20200630133345.2232932-11-lee.jones@linaro.org> In-Reply-To: <20200630133345.2232932-11-lee.jones@linaro.org> From: Linus Walleij Date: Wed, 8 Jul 2020 09:23:06 +0200 Message-ID: Subject: Re: [PATCH 10/10] gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse To: Lee Jones Cc: Bartosz Golaszewski , Linux ARM , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Asmaa Mnebhi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 3:34 PM Lee Jones wrote: > Sparse cannot peer into other functions to see when and if locks are > acquired and released, thus it simply warns that a 'context imbalance' > is detected instead. Let's be kind to Sparse and let it know that > this behaviour is intentional. > > drivers/gpio/gpio-mlxbf2.c:125:12: warning: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block > drivers/gpio/gpio-mlxbf2.c:151:13: warning: context imbalance in 'mlxbf2_gpio_lock_release' - unexpected unlock > > Cc: Asmaa Mnebhi > Signed-off-by: Lee Jones Patch applied! Yours, Linus Walleij