tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git for-upstream head: 9ce67c3235be71e8cf922a9b3d0b7359ed3f4ce5 commit: 32646db8cc2862a14788de1bb4c365d0a27fb532 [6/34] Bluetooth: btqca: inject command complete event during fw download reproduce: # apt-get install sparse # sparse version: v0.6.1-rc1-7-g2b96cd8-dirty git checkout 32646db8cc2862a14788de1bb4c365d0a27fb532 make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) >> drivers/bluetooth/btqca.c:271:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] opcode @@ got e] opcode @@ >> drivers/bluetooth/btqca.c:271:21: sparse: expected restricted __le16 [usertype] opcode >> drivers/bluetooth/btqca.c:271:21: sparse: got int vim +271 drivers/bluetooth/btqca.c 254 255 static int qca_inject_cmd_complete_event(struct hci_dev *hdev) 256 { 257 struct hci_event_hdr *hdr; 258 struct hci_ev_cmd_complete *evt; 259 struct sk_buff *skb; 260 261 skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL); 262 if (!skb) 263 return -ENOMEM; 264 265 hdr = skb_put(skb, sizeof(*hdr)); 266 hdr->evt = HCI_EV_CMD_COMPLETE; 267 hdr->plen = sizeof(*evt) + 1; 268 269 evt = skb_put(skb, sizeof(*evt)); 270 evt->ncmd = 1; > 271 evt->opcode = QCA_HCI_CC_OPCODE; 272 273 skb_put_u8(skb, QCA_HCI_CC_SUCCESS); 274 275 hci_skb_pkt_type(skb) = HCI_EVENT_PKT; 276 277 return hci_recv_frame(hdev, skb); 278 } 279 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation