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

Sparse reports a warning at device_links_read_unlock()

warning:  warning: context imbalance in device_links_read_unlock()
 - unexpected unlock

The root cause is the missing annotation at device_links_read_unlock()
Add the missing __releases(&device_links_srcu) annotation

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