Commit 9e080b5
committed
Bluetooth: btnxpuart: Fix sparse warnings
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
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304160736.Tsa0zTBU-lkp@intel.com/
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 9a24ce5 commit 9e080b5
1 file changed
Lines changed: 51 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
686 | 687 | | |
687 | | - | |
| 688 | + | |
688 | 689 | | |
689 | 690 | | |
690 | 691 | | |
691 | | - | |
| 692 | + | |
| 693 | + | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
| |||
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
710 | | - | |
| 712 | + | |
711 | 713 | | |
712 | 714 | | |
713 | 715 | | |
714 | 716 | | |
715 | | - | |
| 717 | + | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | | - | |
| 721 | + | |
| 722 | + | |
720 | 723 | | |
721 | 724 | | |
722 | 725 | | |
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
| 729 | + | |
| 730 | + | |
726 | 731 | | |
727 | 732 | | |
728 | | - | |
| 733 | + | |
| 734 | + | |
729 | 735 | | |
730 | 736 | | |
731 | 737 | | |
732 | | - | |
| 738 | + | |
| 739 | + | |
733 | 740 | | |
734 | 741 | | |
735 | 742 | | |
| |||
748 | 755 | | |
749 | 756 | | |
750 | 757 | | |
751 | | - | |
752 | | - | |
753 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
754 | 761 | | |
755 | 762 | | |
756 | 763 | | |
757 | | - | |
| 764 | + | |
| 765 | + | |
758 | 766 | | |
759 | 767 | | |
760 | 768 | | |
761 | 769 | | |
762 | 770 | | |
763 | 771 | | |
764 | 772 | | |
765 | | - | |
| 773 | + | |
766 | 774 | | |
767 | 775 | | |
768 | 776 | | |
769 | | - | |
770 | | - | |
| 777 | + | |
| 778 | + | |
771 | 779 | | |
772 | 780 | | |
773 | 781 | | |
| |||
781 | 789 | | |
782 | 790 | | |
783 | 791 | | |
784 | | - | |
785 | | - | |
| 792 | + | |
| 793 | + | |
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
789 | 797 | | |
790 | | - | |
| 798 | + | |
791 | 799 | | |
792 | 800 | | |
793 | 801 | | |
794 | 802 | | |
795 | 803 | | |
796 | 804 | | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
802 | 809 | | |
803 | 810 | | |
804 | 811 | | |
| |||
828 | 835 | | |
829 | 836 | | |
830 | 837 | | |
831 | | - | |
| 838 | + | |
832 | 839 | | |
| 840 | + | |
833 | 841 | | |
834 | 842 | | |
835 | 843 | | |
836 | 844 | | |
837 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
838 | 848 | | |
839 | 849 | | |
840 | 850 | | |
| |||
846 | 856 | | |
847 | 857 | | |
848 | 858 | | |
| 859 | + | |
| 860 | + | |
849 | 861 | | |
850 | 862 | | |
851 | 863 | | |
852 | 864 | | |
853 | | - | |
| 865 | + | |
854 | 866 | | |
855 | 867 | | |
856 | 868 | | |
857 | 869 | | |
858 | 870 | | |
| 871 | + | |
| 872 | + | |
859 | 873 | | |
860 | | - | |
| 874 | + | |
861 | 875 | | |
862 | 876 | | |
863 | 877 | | |
864 | 878 | | |
865 | | - | |
| 879 | + | |
866 | 880 | | |
867 | 881 | | |
868 | 882 | | |
| |||
873 | 887 | | |
874 | 888 | | |
875 | 889 | | |
876 | | - | |
| 890 | + | |
| 891 | + | |
877 | 892 | | |
878 | 893 | | |
879 | 894 | | |
880 | 895 | | |
881 | 896 | | |
882 | | - | |
| 897 | + | |
| 898 | + | |
883 | 899 | | |
884 | | - | |
| 900 | + | |
| 901 | + | |
885 | 902 | | |
886 | 903 | | |
887 | 904 | | |
888 | | - | |
| 905 | + | |
| 906 | + | |
889 | 907 | | |
890 | 908 | | |
891 | 909 | | |
892 | | - | |
893 | | - | |
894 | | - | |
| 910 | + | |
| 911 | + | |
895 | 912 | | |
896 | 913 | | |
897 | 914 | | |
| |||
0 commit comments