diff options
author | 2017-09-15 07:58:47 +0200 | |
---|---|---|
committer | 2017-09-18 14:56:34 -0700 | |
commit | 2df9d6730215db85f7306f0bda03b7391e392837 (patch) | |
tree | 8e6055e366b0c5ff67f054e44f7548083b8baca9 /drivers/net/ethernet/freescale | |
parent | forcedeth: replace pci_map_single with dma_map_single functions (diff) | |
download | linux-2df9d6730215db85f7306f0bda03b7391e392837.tar.gz linux-2df9d6730215db85f7306f0bda03b7391e392837.tar.bz2 linux-2df9d6730215db85f7306f0bda03b7391e392837.zip |
net/ethernet/freescale: fix warning for ucc_geth
uf_info.regs is resource_size_t i.e. phys_addr_t that can be either u32
or u64 according to CONFIG_PHYS_ADDR_T_64BIT.
The printk format is thus adaptet to u64 and the regs value cast to u64
to take both u32 and u64 into account.
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index f77ba9fa257b..a96b838cffce 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -3857,8 +3857,9 @@ static int ucc_geth_probe(struct platform_device* ofdev) } if (netif_msg_probe(&debug)) - pr_info("UCC%1d at 0x%8x (irq = %d)\n", - ug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs, + pr_info("UCC%1d at 0x%8llx (irq = %d)\n", + ug_info->uf_info.ucc_num + 1, + (u64)ug_info->uf_info.regs, ug_info->uf_info.irq); /* Create an ethernet device instance */ |