tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/usb_host.c
old mode 100644new mode 100755
....@@ -103,13 +103,13 @@
103103 //break;
104104 }
105105 // set the cfm status
106
- skb = (struct sk_buff *)(uint64_t)host_id;
106
+ skb = (struct sk_buff *)(unsigned long)host_id;
107107 txhdr = (struct rwnx_txhdr *)skb->data;
108108 txhdr->hw_hdr.cfm.status = (union rwnx_hw_txstatus)data[0];
109109 //txhdr->hw_hdr.status = data[1];
110110 //printk("sdio_host_tx_cfm_handler, 0x%p\r\n", env->pthis);
111111 //if (env->cb.send_data_cfm(env->pthis, host_id) != 0)
112
- if (rwnx_txdatacfm(env->pthis, (void *)host_id) != 0) {
112
+ if (rwnx_txdatacfm(env->pthis, (void *)(unsigned long)host_id) != 0) {
113113 // No more confirmations, so put back the used index at its initial value
114114 env->txdesc_used_idx[queue_idx] = used_idx;
115115 env->tx_host_id[queue_idx][used_idx % USB_TXDESC_CNT] = host_id;