Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: st: Annotate st_pinconf_dbg_show() as holding mutex

st_pinconf_dbg_show() unlocks and locks the pinctrl_dev mutex, so it
must be called by the pinctrl core with the mutex hold. Annotate the
function with sparse __must_hold, so any changes in pinctrl locking will
be statically detected.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
76d41576 e2c58cbe

+1
+1
drivers/pinctrl/pinctrl-st.c
··· 987 987 988 988 static void st_pinconf_dbg_show(struct pinctrl_dev *pctldev, 989 989 struct seq_file *s, unsigned pin_id) 990 + __must_hold(&pctldev->mutex) 990 991 { 991 992 struct st_pio_control *pc; 992 993 unsigned long config;