]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Add missing annotation for device_links_write_lock()
authorJules Irenge <jbi.octave@gmail.com>
Fri, 14 Feb 2020 20:47:29 +0000 (20:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 18:15:20 +0000 (19:15 +0100)
commitb6cf60ae951eb0543b0275c12a8207eb87d2e828
tree6d5d79906119bd5710b60f6eafc5e23e538e970d
parentdf9802708d41e709fdcb5c2f5a0c95d97340f0e5
driver core: Add missing annotation for device_links_write_lock()

Sparse reports a warning at device_links_write_lock()

warning: context imbalance in evice_links_write_lock()
 - wrong count at exit

The root cause is the missing annotation at device_links_write_lock()
Add the missing __acquires(&device_links_srcu) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/20200214204741.94112-19-jbi.octave@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c