Bluetooth: btnxpuart: Fix sparse warnings
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: btnxpuart: Fix sparse warnings
From: Luiz Augusto von Dentz <[email protected]>
This fixes the following sparse warnings:
drivers/bluetooth/btnxpuart.c:681:23: sparse: sparse:
restricted __le16 degrades to integer drivers/bluetooth/btnxpuart.c:690:82: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] req_len
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:690:82: sparse:
expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:690:82: sparse:
got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:694:84: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] req_len
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:694:84: sparse:
expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:694:84: sparse:
got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:708:23: sparse:
sparse: incorrect type in assignment (different base types)
@@ expected unsigned int [usertype] requested_len
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:708:23: sparse:
expected unsigned int [usertype] requested_len drivers/bluetooth/btnxpuart.c:708:23: sparse:
got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:787:78: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] chipid
@@ got restricted __le16 [usertype] chip_id @@
drivers/bluetooth/btnxpuart.c:787:78: sparse:
expected unsigned short [usertype] chipid drivers/bluetooth/btnxpuart.c:787:78: sparse:
got restricted __le16 [usertype] chip_id drivers/bluetooth/btnxpuart.c:810:74: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] req_len
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:810:74: sparse:
expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:810:74: sparse:
got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:815:76: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] req_len
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:815:76: sparse:
expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:815:76: sparse:
got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:834:16: sparse:
sparse: restricted __le32 degrades to integer drivers/bluetooth/btnxpuart.c:843:55: sparse:
sparse: restricted __le32 degrades to integer drivers/bluetooth/btnxpuart.c:844:36: sparse:
sparse: incorrect type in argument 3 (different base types)
@@ expected unsigned long [usertype]
@@ got restricted __le16 [usertype] len @@
drivers/bluetooth/btnxpuart.c:844:36: sparse:
expected unsigned long [usertype] drivers/bluetooth/btnxpuart.c:844:36: sparse:
got restricted __le16 [usertype] len
--- drivers/bluetooth/Kconfig | 2 +- drivers/bluetooth/btnxpuart.c | 85 +++++++++++++++++++++-------------- 2 files changed, 52 insertions(+), 35 deletions(-)
drivers/bluetooth/Kconfig +1 -1
@@ -469,7 +469,7 @@ config BT_VIRTIO config BT_NXPUART tristate "NXP protocol support" depends on SERIAL_DEV_BUS - select CRC32 + select CRC32 select CRC8 help NXP is serial driver required for NXP Bluetooth
drivers/bluetooth/btnxpuart.c +51 -34
202 lines not on this page · raw message
Signature · 1 line
2.39.2
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=740725
---Test result---
Test Summary:
CheckPatch FAIL 1.12 seconds GitLint PASS 0.28 seconds SubjectPrefix PASS 0.10 seconds BuildKernel PASS 32.00 seconds CheckAllWarning PASS 35.35 seconds CheckSparse PASS 40.40 seconds CheckSmatch PASS 111.75 seconds BuildKernel32 PASS 30.89 seconds TestRunnerSetup PASS 439.97 seconds TestRunner_l2cap-tester PASS 16.21 seconds TestRunner_iso-tester PASS 19.55 seconds TestRunner_bnep-tester PASS 5.28 seconds TestRunner_mgmt-tester PASS 109.98 seconds TestRunner_rfcomm-tester PASS 8.46 seconds TestRunner_sco-tester PASS 7.80 seconds TestRunner_ioctl-tester PASS 8.93 seconds TestRunner_mesh-tester PASS 6.68 seconds TestRunner_smp-tester PASS 7.61 seconds TestRunner_userchan-tester PASS 5.48 seconds IncrementalBuild PASS 28.95 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: btnxpuart: Fix sparse warnings
WARNING: A patch subject line should describe the change not the tool that found it #69:
Subject: [PATCH] Bluetooth: btnxpuart: Fix sparse warnings
total: 0 errors, 1 warnings, 210 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/github/workspace/src/src/13214874.patch has style problems, please review.
NOTE: Ignored message types: UNKNOWN_COMMIT_ID
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 67 lines · On Mon, 17 Apr 2023 17:07:04 -0700 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
This fixes the following sparse warnings:
drivers/bluetooth/btnxpuart.c:681:23: sparse: sparse:
restricted__le16degrades to integerdrivers/bluetooth/btnxpuart.c:690:82: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype]req_len
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:690:82: sparse:
expected unsigned short [usertype]req_lendrivers/bluetooth/btnxpuart.c:690:82: sparse:
got restricted__le16[usertype] lendrivers/bluetooth/btnxpuart.c:694:84: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype]req_len
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:694:84: sparse:
expected unsigned short [usertype]req_lendrivers/bluetooth/btnxpuart.c:694:84: sparse:
got restricted__le16[usertype] lendrivers/bluetooth/btnxpuart.c:708:23: sparse:
sparse: incorrect type in assignment (different base types)
@@ expected unsigned int [usertype]requested_len
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:708:23: sparse:
expected unsigned int [usertype]requested_lendrivers/bluetooth/btnxpuart.c:708:23: sparse:
got restricted__le16[usertype] lendrivers/bluetooth/btnxpuart.c:787:78: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype] chipid
@@ got restricted__le16[usertype]chip_id@@
drivers/bluetooth/btnxpuart.c:787:78: sparse:
expected unsigned short [usertype] chipiddrivers/bluetooth/btnxpuart.c:787:78: sparse:
got restricted__le16[usertype]chip_iddrivers/bluetooth/btnxpuart.c:810:74: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype]req_len
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:810:74: sparse:
expected unsigned short [usertype]req_lendrivers/bluetooth/btnxpuart.c:810:74: sparse:
got restricted__le16[usertype] lendrivers/bluetooth/btnxpuart.c:815:76: sparse:
sparse: incorrect type in argument 2 (different base types)
@@ expected unsigned short [usertype]req_len
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:815:76: sparse:
expected unsigned short [usertype]req_lendrivers/bluetooth/btnxpuart.c:815:76: sparse:
got restricted__le16[usertype] lendrivers/bluetooth/btnxpuart.c:834:16: sparse:
sparse: restricted__le32degrades to integerdrivers/bluetooth/btnxpuart.c:843:55: sparse:
sparse: restricted__le32degrades to integerdrivers/bluetooth/btnxpuart.c:844:36: sparse:
sparse: incorrect type in argument 3 (different base types)
@@ expected unsigned long [usertype]
@@ got restricted__le16[usertype] len @@
drivers/bluetooth/btnxpuart.c:844:36: sparse:
expected unsigned long [usertype]drivers/bluetooth/btnxpuart.c:844:36: sparse:
got restricted__le16[usertype] len
Quoted 1 line
[...]
Here is the summary with links:
- Bluetooth: btnxpuart: Fix sparse warnings
https://git.kernel.org/bluetooth/bluetooth-next/c/183d1a0466eb
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html