Thread (5 messages) flat view 5 messages, 3 authors, 2d ago
WARM2d

[PATCH net-next 0/2] drivers/s390/net: Enable CONTEXT_ANALYSIS

From: Heiko Carstens <hca@linux.ibm.com>
Date: 2026-08-05 14:50:50
Also in: linux-s390

Enable CONTEXT_ANALYSYS for drivers/s390/net.

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 drivers/s390/net. In order to avoid false positives due to
conditional locking, disable context analysis for specific functions of
the ctcm driver. All comments in ctcm indicate that the code should stay
as it is, and that such warnings should be ignored.

Disabling context analysis for specific functions keeps analysis enabled
for the rest of a file.

[1] 5b63d0ae94cc ("compiler-context-analysis: Remove Sparse support")
[2] 3269701cb256 ("compiler-context-analysis: Add infrastructure for Context Analysis with Clang")

Heiko Carstens (2):
  s390/ctcm: Add __context_unsafe() attribute to various functions
  drivers/s390/net: Enable CONTEXT_ANALYSIS

 drivers/s390/net/Makefile    |  2 ++
 drivers/s390/net/ctcm_fsms.c | 20 +++++++-------------
 drivers/s390/net/ctcm_mpc.c  |  6 ++----
 3 files changed, 11 insertions(+), 17 deletions(-)

-- 
2.53.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help