ACPI: OSL: Add missing __acquires/__releases annotations
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:17:03 +0000 (23:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 Mar 2020 09:40:48 +0000 (10:40 +0100)
commit2288eba5ca746e4095ecb483463d8bc4e4d7b2fd
treed98140aa2a97977d54e468625d7d12ebdd7386a5
parent98d54f81e36ba3bf92172791eba5ca5bd813989b
ACPI: OSL: Add missing __acquires/__releases annotations

Sparse reports a warnings at acpi_os_acquire_lock() and
acpi_os_release_lock():

warning: context imbalance in acpi_os_acquire_lock() - unexpected unlock

warning: context imbalance in acpi_os_release_lock() - unexpected unlock

which result from missing __acquires/__releases annotations.

Add the annotations as appropriate to get rid of the warnings.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
[ rjw: Two patches merged into one, subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c