mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 00:50:43 +09:00
net: Kirkwood_egiga.c: fixed build warnings
This patch fixes following build warnings for kirkwood_egiga.c kirkwood_egiga.c: In function "kwgbe_init": kirkwood_egiga.c:448: warning: dereferencing type-punned pointer will break strict-aliasing rules kirkwood_egiga.c: In function "kwgbe_recv": kirkwood_egiga.c:609: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
4185ae7a71
commit
e3f2a93362
@ -445,7 +445,7 @@ static int kwgbe_init(struct eth_device *dev)
|
|||||||
KWGBEREG_WR(regs->pmtu, 0);
|
KWGBEREG_WR(regs->pmtu, 0);
|
||||||
|
|
||||||
/* Assignment of Rx CRDB of given RXUQ */
|
/* Assignment of Rx CRDB of given RXUQ */
|
||||||
KWGBEREG_WR(regs->rxcdp[RXUQ].rxcdp, (u32) dkwgbe->p_rxdesc_curr);
|
KWGBEREG_WR(regs->rxcdp[RXUQ], (u32) dkwgbe->p_rxdesc_curr);
|
||||||
/* Enable port Rx. */
|
/* Enable port Rx. */
|
||||||
KWGBEREG_WR(regs->rqc, (1 << RXUQ));
|
KWGBEREG_WR(regs->rqc, (1 << RXUQ));
|
||||||
|
|
||||||
@ -606,7 +606,7 @@ static int kwgbe_recv(struct eth_device *dev)
|
|||||||
p_rxdesc_curr->buf_size = PKTSIZE_ALIGN;
|
p_rxdesc_curr->buf_size = PKTSIZE_ALIGN;
|
||||||
p_rxdesc_curr->byte_cnt = 0;
|
p_rxdesc_curr->byte_cnt = 0;
|
||||||
|
|
||||||
writel((unsigned)p_rxdesc_curr->nxtdesc_p, &dkwgbe->p_rxdesc_curr);
|
writel((unsigned)p_rxdesc_curr->nxtdesc_p, (u32) &dkwgbe->p_rxdesc_curr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -418,7 +418,7 @@ struct kwgbe_registers {
|
|||||||
u32 pmtbs;
|
u32 pmtbs;
|
||||||
u8 pad14[0x60c - 0x4ec - 4];
|
u8 pad14[0x60c - 0x4ec - 4];
|
||||||
struct kwgbe_rxcdp rxcdp[7];
|
struct kwgbe_rxcdp rxcdp[7];
|
||||||
u32 rxcdp7;
|
struct kwgbe_rxdesc *rxcdp7;
|
||||||
u32 rqc;
|
u32 rqc;
|
||||||
struct kwgbe_txdesc *tcsdp;
|
struct kwgbe_txdesc *tcsdp;
|
||||||
u8 pad15[0x6c0 - 0x684 - 4];
|
u8 pad15[0x6c0 - 0x684 - 4];
|
||||||
|
Loading…
Reference in New Issue
Block a user