Compare commits

...

4 commits

Author SHA1 Message Date
Nicolas Dechesne
5ad1e7342a
Merge 2795c05492 into 852bd62202 2025-10-31 16:18:16 -06:00
Jeff Johnson
852bd62202 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>
2025-10-31 09:20:09 -07:00
Jeff Johnson
c66ae81c34 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>
2025-10-23 11:17:35 -07:00
Nicolas Dechesne
2795c05492 scripts: use /usr/bin/env python3
Using #!/usr/bin/env python3 instead of #!/usr/bin/python3 in the
shebang line of a script is generally considered better practice for
portability and flexibility.

* env uses the user's PATH environment variable to locate python3
* Using env avoids hardcoding the path, making your script more
  portable.
* Works well with virtual environments:

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@oss.qualcomm.com>
2025-09-11 19:10:27 +02:00
10 changed files with 17 additions and 10 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2015 Qualcomm Atheros, Inc.
# Copyright (c) 2018, The Linux Foundation. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2016 Qualcomm Atheros, Inc.
# Copyright (c) 2018, The Linux Foundation. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2012-2015 Qualcomm Atheros, Inc.
#

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2016 Qualcomm Atheros, Inc.
# Copyright (c) 2018,2020 The Linux Foundation. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2012-2015 Qualcomm Atheros, Inc.
# Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2016 Qualcomm Atheros, Inc.
# Copyright (c) 2018,2020 The Linux Foundation. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved
# Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Copyright (c) 2010 Atheros Communications Inc.
#