Hi Michal,

FYI, there are new smatch warnings show up in

tree:   git://github.com/kvalo/ath ath-next-test
head:   4e53f6a3f1aac1a4a2d18f487f6e570b9402adc7
commit: 20b784ea3fb89de48c794cd889104aba64242f3b [38/45] [RFC/RFT 4/7] ath10k: 
bypass htc for htt tx path

drivers/net/wireless/ath/ath10k/htt_tx.c:505 ath10k_htt_tx() warn: potential 
pointer math issue ('skb_cb->htt.txbuf' is a 352 bit pointer)

git remote add ath6kl git://github.com/kvalo/ath
git remote update ath6kl
git checkout 20b784ea3fb89de48c794cd889104aba64242f3b
vim +505 drivers/net/wireless/ath/ath10k/htt_tx.c

20b784ea Michal Kazior 2014-02-17  489          
skb_cb->htt.txbuf->cmd_tx.flags0      = flags0;
20b784ea Michal Kazior 2014-02-17  490          
skb_cb->htt.txbuf->cmd_tx.flags1      = __cpu_to_le16(flags1);
20b784ea Michal Kazior 2014-02-17  491          skb_cb->htt.txbuf->cmd_tx.len   
      = __cpu_to_le16(msdu->len);
20b784ea Michal Kazior 2014-02-17  492          skb_cb->htt.txbuf->cmd_tx.id    
      = __cpu_to_le16(msdu_id);
20b784ea Michal Kazior 2014-02-17  493          
skb_cb->htt.txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr);
20b784ea Michal Kazior 2014-02-17  494          
skb_cb->htt.txbuf->cmd_tx.peerid      = __cpu_to_le32(HTT_INVALID_PEERID);
20b784ea Michal Kazior 2014-02-17  495  
20b784ea Michal Kazior 2014-02-17  496          ath10k_dbg(ATH10K_DBG_HTT,
20b784ea Michal Kazior 2014-02-17  497                     "htt tx flags0 %hhu 
flags1 %hu len %d id %hu frags_paddr %08x, msdu_paddr %08x vdev %hhu tid 
%hhu\n",
20b784ea Michal Kazior 2014-02-17  498                     flags0, flags1, 
msdu->len, msdu_id, frags_paddr,
20b784ea Michal Kazior 2014-02-17  499                     (u32)skb_cb->paddr, 
vdev_id, tid);
20b784ea Michal Kazior 2014-02-17  500          
ath10k_dbg_dump(ATH10K_DBG_HTT_DUMP, NULL, "htt tx msdu: ",
20b784ea Michal Kazior 2014-02-17  501                          msdu->data, 
msdu->len);
5e3dd157 Kalle Valo    2013-06-12  502  
20b784ea Michal Kazior 2014-02-17  503          sg_items[0].transfer_id = 0;
20b784ea Michal Kazior 2014-02-17  504          sg_items[0].transfer_context = 
NULL;
20b784ea Michal Kazior 2014-02-17 @505          sg_items[0].vaddr = 
skb_cb->htt.txbuf +
20b784ea Michal Kazior 2014-02-17  506                              
sizeof(skb_cb->htt.txbuf->frags);
20b784ea Michal Kazior 2014-02-17  507          sg_items[0].paddr = 
skb_cb->htt.txbuf_paddr +
20b784ea Michal Kazior 2014-02-17  508                              
sizeof(skb_cb->htt.txbuf->frags);
20b784ea Michal Kazior 2014-02-17  509          sg_items[0].len = 
sizeof(skb_cb->htt.txbuf->htc_hdr) +
20b784ea Michal Kazior 2014-02-17  510                            
sizeof(skb_cb->htt.txbuf->cmd_hdr) +
20b784ea Michal Kazior 2014-02-17  511                            
sizeof(skb_cb->htt.txbuf->cmd_tx);
20b784ea Michal Kazior 2014-02-17  512  
20b784ea Michal Kazior 2014-02-17  513          sg_items[1].transfer_id = 0;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to