summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2026-08-06 17:38:47 +0200
committerVasily Gorbik <gor@linux.ibm.com>2026-08-11 16:42:17 +0200
commitaa8db8e37ea036cff6f3c0ae00870f3ac5c13d1a (patch)
treecfa33373e7801c4bce7cd3a15d97ebe121fcb51c /scripts/patch-kernel
parentb99a102ede6a5f1ceb000f7d10ef7f8ef5d71f2a (diff)
downloadlinux-aa8db8e37ea036cff6f3c0ae00870f3ac5c13d1a.tar.gz
linux-aa8db8e37ea036cff6f3c0ae00870f3ac5c13d1a.zip
s390/vfio_ccw: Add __must_hold() attribute to vfio_ccw_sch_quiesce()
Add __must_hold() attribute to vfio_ccw_sch_quiesce() in order to let clang's context analysis know that sch->lock must be held on function entry. This can also be easily verified when inspecting the function. Without this annotation this leads to a valid warning when context analysis is enabled: drivers/s390/cio/vfio_ccw_drv.c:55:9: warning: expecting spinlock 'sch->lock' to be held at start of each loop [-Wthread-safety-analysis] 55 | ret = cio_cancel_halt_clear(sch, &iretry); | ^ Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions