[PATCH 0/3] s390: Enable CONTEXT_ANALYSIS for cio and virtio
Heiko Carstens <[email protected]>
| Newsgroups | org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
Enable CONTEXT_ANALYSYS for cio and virtio.
Static code checking for acquiring and releasing locks used to be done
with sparse. That was removed with [1] and replaced with a clang based
approach [2]. The new approach requires that each subsystem needs to be
explicitly enabled for checking.
Do that for cio and virtio. Add a __must_hold() attribute to
vfio_ccw_sch_quiesce() to address the only valid warning.
Then enable CONTEXT_ANALYSIS for both cio and virtio.
Christian, Claudio, Janosch, I think it would make most sense if this
goes via kvms390.
Thanks,
Heiko
[1] 5b63d0ae94cc ("compiler-context-analysis: Remove Sparse support")
[2] 3269701cb256 ("compiler-context-analysis: Add infrastructure for Context Analysis with Clang")
Heiko Carstens (3):
s390/vfio_ccw: Add __must_hold() attribute to vfio_ccw_sch_quiesce()
s390/cio: Enable CONTEXT_ANALYSIS
s390/virtio: Enable CONTEXT_ANALYSIS
drivers/s390/cio/Makefile | 2 ++
drivers/s390/cio/vfio_ccw_drv.c | 1 +
drivers/s390/cio/vfio_ccw_private.h | 3 ++-
drivers/s390/virtio/Makefile | 2 ++
4 files changed, 7 insertions(+), 1 deletion(-)
--
2.53.0