Skip to content

Commit

Permalink
net: hns3: pointer type of buffer should be void
Browse files Browse the repository at this point in the history
Move the type of buffer address from unsigned char to void

Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Barry Song authored and David S. Miller committed Jun 19, 2020
1 parent 674a135 commit cb0e3e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -3070,7 +3070,7 @@ static int hns3_handle_rx_bd(struct hns3_enet_ring *ring)
return -ENXIO;

if (!skb)
ring->va = (unsigned char *)desc_cb->buf + desc_cb->page_offset;
ring->va = desc_cb->buf + desc_cb->page_offset;

/* Prefetch first cache line of first page
* Idea is to cache few bytes of the header of the packet. Our L1 Cache
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ struct hns3_enet_ring {

u32 pull_len; /* head length for current packet */
u32 frag_num;
unsigned char *va; /* first buffer address for current packet */
void *va; /* first buffer address for current packet */

u32 flag; /* ring attribute */

Expand Down

0 comments on commit cb0e3e6

Please sign in to comment.