mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2026-01-27 17:07:18 +01:00
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 '<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:
parent
a87e8e4971
commit
c66ae81c34
1 changed files with 5 additions and 1 deletions
|
|
@ -93,7 +93,11 @@ checkpatch_filter = [
|
||||||
('DEFINE_EVENT', 'MACRO_ARG_UNUSED'),
|
('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
|
# global variables
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue