Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1784314ybv; Sun, 23 Feb 2020 15:19:41 -0800 (PST) X-Google-Smtp-Source: APXvYqx7OvuQjCRyQoFsgG7zfNHgfBVpoL5YzgxV6laYNBpA9mut1tw513JBIL1SUP2S7lyrm3kw X-Received: by 2002:aca:aa05:: with SMTP id t5mr10590084oie.93.1582499981169; Sun, 23 Feb 2020 15:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582499981; cv=none; d=google.com; s=arc-20160816; b=NU8Ir0QG3iE1xbfYoyJMvo2efrs+X0nWrWNAQPw07NRZEeCl9WVI8dstR8qn0FjaNJ dIopzaU1BdpfzCCLQJ/CnCI7VNis8hgD6Kp99CcuzYGtHfsHnZ7I+DM4+ykc82cPGZeG LYoXNVsBW9VOH2WHVQuJ1cDGZfrJy0qtgd0T9+kPdJyshnbyza2sA+egXxSedhuYkG5i d+O7m6tXvlpjawQQkF/HSqtiTbl502+Y8N6PvEgzJ/QGNEMuB8sWCJmJbDqh+PEVbx22 SafQLhxGcUa9H6kmeUdKeZpuSEnJgB/U5+OPAHyMHDsi0s3zc2MiVzcF2hsbhIGf9KjO 2y0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ccYGGn1uhoFTFXxc2+BMi8Zd6VbgRQR/G4zbVgFlOUE=; b=kWE7CSGFqkyA6Qp6LnbfN5xZa2yZnXYxCjfvaIVriO88SZFRulSGviN7bm0ZgVo37I iIZfUNySr9PGraHkEN0dRo15w5yMuj9TyNNTM+65B+kawwN3OXhbVQP4D43q8EF/e+3P 5K33GCnLaz1LpDqiZ9wIvjvdLbzd+nktoIZB9oRbjeA2k1VuKDTE4+uQSHKn51f8f0QA VhthrgF+oQ8ytHmVZaw5KOcCxj+k3FmlVPHFkNUW5kCSycJS09d2oubV1jAM2EjWQOgz SWnZkPIoeUF3u6nHj4Pggs8bj/WkwBskH2QZNp8LuPGikJKlkfoTg9ia9CZWxSRJ4Wof 0zyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4STgYyA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si5170114oto.102.2020.02.23.15.19.28; Sun, 23 Feb 2020 15:19:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4STgYyA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgBWXS4 (ORCPT + 99 others); Sun, 23 Feb 2020 18:18:56 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45117 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727714AbgBWXSX (ORCPT ); Sun, 23 Feb 2020 18:18:23 -0500 Received: by mail-wr1-f66.google.com with SMTP id g3so8198972wrs.12; Sun, 23 Feb 2020 15:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ccYGGn1uhoFTFXxc2+BMi8Zd6VbgRQR/G4zbVgFlOUE=; b=r4STgYyAZux/o3Dt72R5Ko6iVKcPclN6D+za76CjVEHXwp2xpo50t4Sk2ftvec+6md qufUrxwUIfQPvTvKCHy5caU007cv6vV0VC09jtOMlIJm0BOGfHS9ExLutNgwTkM6j4b0 JRQP1r9UZXQG0Y2MiBZvzKAiTtKxzm8J8HMw/ozs9pAohsOLmO7RmE7jjQxI42KQA6lo TIz2mOQgcSYOgjylKHxSus783f3EKk3emoFKntkmZQxUbB+/eYMSxPXra0jFrFb+x6O3 tM4tHlI6rVujFLcvUW271ltzJfVXg7OFLxE4Tirir3h/jq0MiGeWQBEkjMuKtyXoWydc En7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ccYGGn1uhoFTFXxc2+BMi8Zd6VbgRQR/G4zbVgFlOUE=; b=sikWP39GkGFe12Ls2TIbT3r97w2rqw3hdUiAfa6oYUQvWLP6FXc88MnZ/rTAgk/FMD h0kDwh0NJs0TrDa1MPATPWBzON15QeMeA+lhUxVWEuMO/HJqHScvWui8uKi2+aa5piZE FHEL5IRWtDr5+HQemGOvKKsWpvMRihkikSWPK2WUSLxHuSLn/+07r0BHK12mEqGjI9tm o36/uFpc0nKWpmo+guL1tRFgpmRCkeZzVsFtNl+ioIVDf8/jBLnhCVYEe2+JesNXBUSc vYkqmhg9PnoNldAbBqGj6Y/vwCY9zUC6UG1UUH8abFT1KQqD/dGfosUNnaeuRGsqAUTm Q6gw== X-Gm-Message-State: APjAAAXbIvzlsihWLMce+bMfxW0Y80EXjrS3bYIo5OdVRrr31wkcfnU3 raml30ilGCSI5YTWp4ty8Q== X-Received: by 2002:a5d:4443:: with SMTP id x3mr2849788wrr.379.1582499902227; Sun, 23 Feb 2020 15:18:22 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id q6sm8968203wrf.67.2020.02.23.15.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:21 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI) Subject: [PATCH 22/30] ACPI: OSL: Add missing annotation for acpi_os_acquire_lock() Date: Sun, 23 Feb 2020 23:17:03 +0000 Message-Id: <20200223231711.157699-23-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200223231711.157699-1-jbi.octave@gmail.com> References: <0/30> <20200223231711.157699-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at acpi_os_acquire_lock() warning: context imbalance in acpi_os_acquire_lock() - unexpected unlock The root cause is the missing annotation at acpi_os_acquire_lock() Add the missing annotation __acquires(lockp) Signed-off-by: Jules Irenge --- drivers/acpi/osl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 41168c027a5a..7094abc5ffc6 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1598,6 +1598,7 @@ void acpi_os_delete_lock(acpi_spinlock handle) */ acpi_cpu_flags acpi_os_acquire_lock(acpi_spinlock lockp) + __acquires(lockp) { acpi_cpu_flags flags; spin_lock_irqsave(lockp, flags); -- 2.24.1