]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 29 Nov 2017 10:01:09 +0000 (11:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Nov 2017 14:43:24 +0000 (09:43 -0500)
commit15bfe05c8d6386f1a90e9340d15336e85e32aad6
tree20948af1ae14d70c0c46dedb7f2ae67c1985af23
parent01e4fab6c1131a5e4f12104e7134da701def0434
net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit

On 64-bit (e.g. powerpc64/allmodconfig):

    drivers/net/ethernet/xilinx/ll_temac_main.c: In function 'temac_start_xmit_done':
    drivers/net/ethernet/xilinx/ll_temac_main.c:633:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
dev_kfree_skb_irq((struct sk_buff *)cur_p->app4);
  ^

cdmac_bd.app4 is u32, so it is too small to hold a kernel pointer.

Note that several other fields in struct cdmac_bd are also too small to
hold physical addresses on 64-bit platforms.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/Kconfig