Skip to content

Commit 2df9d67

Browse files
Valentin Longchampdavem330
authored andcommitted
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>
1 parent 7598b34 commit 2df9d67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/ethernet/freescale/ucc_geth.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,8 +3857,9 @@ static int ucc_geth_probe(struct platform_device* ofdev)
38573857
}
38583858

38593859
if (netif_msg_probe(&debug))
3860-
pr_info("UCC%1d at 0x%8x (irq = %d)\n",
3861-
ug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs,
3860+
pr_info("UCC%1d at 0x%8llx (irq = %d)\n",
3861+
ug_info->uf_info.ucc_num + 1,
3862+
(u64)ug_info->uf_info.regs,
38623863
ug_info->uf_info.irq);
38633864

38643865
/* Create an ethernet device instance */

0 commit comments

Comments
 (0)