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