ath12k-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 '<function>' - wrong count at exit

These are false positives when guard() is being used, so ignore
them.

Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
Jeff Johnson 2025-10-31 09:20:09 -07:00
parent c66ae81c34
commit 852bd62202

View file

@ -90,7 +90,10 @@ checkpatch_filter = [
('for_each_ar', 'MACRO_ARG_REUSE'),
]
sparse_filter = []
sparse_filter = [
# sparse doesn't correctly handle guard()
r'warning: context imbalance in .* - wrong count at exit',
]
# global variables