Skip to content

Commit 513d1a1

Browse files
Hariprasad Shenaidavem330
authored andcommitted
cxgb4: Fix static checker warning
The patch e85c9a7: ("cxgb4/cxgb4vf: Add code to calculate T5 BAR2 Offsets for SGE Queue Registers") from Dec 3, 2014, leads to the following static checker warning: drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:5358 t4_bar2_sge_qregs() warn: should '(qid >> qpp_shift) << page_shift' be a 64 bit type? This patch fixes it Signed-off-by: Hariprasad Shenai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4da44fd commit 513d1a1

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/chelsio/cxgb4

1 file changed

+1
-1
lines changed

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6053,7 +6053,7 @@ int t4_bar2_sge_qregs(struct adapter *adapter,
60536053
* o The BAR2 Queue ID.
60546054
* o The BAR2 Queue ID Offset into the BAR2 page.
60556055
*/
6056-
bar2_page_offset = ((qid >> qpp_shift) << page_shift);
6056+
bar2_page_offset = ((u64)(qid >> qpp_shift) << page_shift);
60576057
bar2_qid = qid & qpp_mask;
60586058
bar2_qid_offset = bar2_qid * SGE_UDB_SIZE;
60596059

0 commit comments

Comments
 (0)