ath12k-check warnings

Kalle Valo kvalo at kernel.org
Mon Sep 25 21:42:18 PDT 2023


Wen Gong <quic_wgong at quicinc.com> writes:

> I updated to latest commit of qca-swiss-army-knife (9a16a4a -
> ath11k-check: verify checkpatch.pl md5sum),
>
> and it still print about ~500 "note: in included file ...", they are
> print by sparse, not by checkpatch.pl.

Ah, I missed that these are coming from sparse.

> wgong at wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath12k-check --version
> /home/wgong/opensource/kernel/ath/./ath12k-check:32:
> DeprecationWarning: The distutils package is deprecated and slated for
> removal in Python 3.12. Use setuptools or check PEP 632 for potential
> alternatives
>   import distutils.spawn
> ath12k-check (md5sum a934e18a6f7c439e351695268471156c)
>
> gcc:            gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
> sparse:         0.6.4 (Ubuntu: 0.6.4-2)
> checkpatch.pl:  Version: 0.32 (md5sum 47ef327d772c156e53a36597723fc781)
> gtags:          gtags (Global) 6.6.7

I guess your sparse is too old. I'm using:

$ ath12k-check --version
ath12k-check (md5sum a934e18a6f7c439e351695268471156c)

gcc:		gcc (Debian 12.2.0-14) 12.2.0
sparse:		v0.6.4-39-gce1a6720f69e
checkpatch.pl:	Version: 0.32 (md5sum 47ef327d772c156e53a36597723fc781)
gtags:		gtags (Global) 6.6.9

I recommend installing sparse directly from git, it's quite easy:

https://git.kernel.org/pub/scm/devel/sparse/sparse.git/

> /home/wgong/opensource/kernel/ath/./ath12k-check:32:
> DeprecationWarning: The distutils package is deprecated and slated for
> removal in Python 3.12. Use setuptools or check PEP 632 for potential
> alternatives
>   import distutils.spawn

I don't see this warning on Debian 12 but I'll need to fix that as well.
But this is what I hate with python, they are always depracating
something and it's extra work for us.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches



More information about the ath12k mailing list