[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200223231711.157699-24-jbi.octave@gmail.com>
Date: Sun, 23 Feb 2020 23:17:04 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: boqun.feng@...il.com
Cc: jbi.octave@...il.com, linux-kernel@...r.kernel.org,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <lenb@...nel.org>,
linux-acpi@...r.kernel.org (open list:ACPI)
Subject: [PATCH 23/30] ACPI: OSL: Add missing annotation for acpi_os_release_lock()
Sparse reports a warning at acpi_os_release_lock()
warning: context imbalance in acpi_os_release_lock() - unexpected unlock
The root cause is the missing annotation at acpi_os_release_lock()
Add the missing annotation __releases(lockp)
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
drivers/acpi/osl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 7094abc5ffc6..762c5d50b8fe 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1610,6 +1610,7 @@ acpi_cpu_flags acpi_os_acquire_lock(acpi_spinlock lockp)
*/
void acpi_os_release_lock(acpi_spinlock lockp, acpi_cpu_flags flags)
+ __releases(lockp)
{
spin_unlock_irqrestore(lockp, flags);
}
--
2.24.1
Powered by blists - more mailing lists