ath12k-check warnings
Wen Gong
quic_wgong at quicinc.com
Mon Sep 25 19:32:48 PDT 2023
On 9/6/2023 10:04 PM, Kalle Valo wrote:
> (dropping linux-wireless and changing the title)
>
> Wen Gong <quic_wgong at quicinc.com> writes:
>
>> On 8/25/2023 3:53 PM, Kalle Valo wrote:
>>
>>> New warning:
>>>
>>> drivers/net/wireless/ath/ath12k/wmi.c:4199:69: warning: restricted
>>> __le32 degrades to integer
>>>
>>> Remember to ALWAYS run ath12k-check.
>>>
>>> Patch set to Changes Requested.
>> I found ath12k-check output many logs, about 5000 lines.
>>
>> And ath12k-check only has one item in CHECKPATCH_IGNORE, it does not
>> have the other items which
>>
>> existed in ath10k-check/ath11k-check, so ath12k-check output many info
>>
>> "struct should normally be const"/"networking block comments don't use
>> an empty /* line, use /* Comment..."/.
>>
>> Also it print many "note: in included file ..." by sparse.
>>
>>
>> May I change ath12k-check with diff below and use "ath12k-check | grep
>> -v "note: in included file"" for the patch check?
>>
>> 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 194c6d6c4bad47f9780fe22541f2f68c)
>>
>> 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 b169dcb45a7f32bd19b128e08288e9cc)
>> gtags: gtags (Global) 6.6.7
> I assume this is because you are using an old version of checkpatch.pl.
> I forgot to update the commit id in ath1?k-check scripts but I fixed it
> now:
>
> https://github.com/qca/qca-swiss-army-knife/commit/27d9574ce670d759681b662e380a826ca6106e48
>
> This is the correct version of checkpatch.pl you should be using (also
> printed in --help):
>
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/scripts/checkpatch.pl?id=362173572a4018e9c8e39c616823189c41d39d41
>
> Did that fix the issue?
Sorry for delay since subject title changed.
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.
wgong at wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath12k-check
/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
drivers/net/wireless/ath/ath12k/hal_tx.c: note: in included file
(through include/linux/bitops.h, include/linux/kernel.h,
include/linux/interrupt.h, drivers/net/wireless/ath/ath12k/core.h,
drivers/net/wireless/ath/ath12k/hal_desc.h):
drivers/net/wireless/ath/ath12k/hal_tx.c: note: in included file
(through include/linux/bitops.h, include/linux/kernel.h,
include/linux/interrupt.h, drivers/net/wireless/ath/ath12k/core.h,
drivers/net/wireless/ath/ath12k/hal_desc.h):
...
...
drivers/net/wireless/ath/ath12k/dp_mon.c: note: in included file
(through include/linux/bitops.h, include/linux/kernel.h,
include/linux/interrupt.h, drivers/net/wireless/ath/ath12k/core.h,
drivers/net/wireless/ath/ath12k/dp_mon.h):
drivers/net/wireless/ath/ath12k/dp_mon.c: note: in included file
(through arch/x86/include/asm/bitops.h, include/linux/bitops.h,
include/linux/kernel.h, include/linux/interrupt.h,
drivers/net/wireless/ath/ath12k/core.h, ...):
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
wgong at wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath12k-check |
grep -c "note: in included file"
/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
441
wgong at wgong-Latitude-E6430:~/opensource/kernel/ath$ ./ath11k-check |
grep -c "note: in included file"
/home/wgong/opensource/kernel/ath/./ath11k-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
567
>
> I also added a check to make sure that I don't forget to update the
> commit id in the future:
>
> https://github.com/qca/qca-swiss-army-knife/commit/c880314adbb1006184265f002016ec3f87bef40d
>
> Please always report any issues you have with ath12k-check. You should
> see no warnings in output, otherwise something is wrong.
>
More information about the ath12k
mailing list