From c66ae81c3480b38d857425bd8e7c6b32c56b02aa Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 23 Oct 2025 11:17:35 -0700 Subject: [PATCH] ath11k-check: ignore sparse "context imbalance" warnings Sparse does not fully understand the guard cleanup feature, and can produce warnings of the form: warning: context imbalance in '' - wrong count at exit These are false positives when guard() is being used, so ignore them. Signed-off-by: Jeff Johnson --- tools/scripts/ath11k/ath11k-check | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/scripts/ath11k/ath11k-check b/tools/scripts/ath11k/ath11k-check index 522da47..35ece6c 100755 --- a/tools/scripts/ath11k/ath11k-check +++ b/tools/scripts/ath11k/ath11k-check @@ -93,7 +93,11 @@ checkpatch_filter = [ ('DEFINE_EVENT', 'MACRO_ARG_UNUSED'), ] -sparse_filter = [r'warning: dubious: x & !y'] +sparse_filter = [ + r'warning: dubious: x & !y', + # sparse doesn't correctly handle guard() + r'warning: context imbalance in .* - wrong count at exit', +] # global variables