{"id":814081,"url":"http://patchwork.ozlabs.org/api/patches/814081/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170915055847.29716-1-valentin.longchamp@keymile.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170915055847.29716-1-valentin.longchamp@keymile.com>","list_archive_url":null,"date":"2017-09-15T05:58:47","name":"[v2] net/ethernet/freescale: fix warning for ucc_geth","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"9756d498571b278b689f9780c606cd90209fb1bb","submitter":{"id":7642,"url":"http://patchwork.ozlabs.org/api/people/7642/?format=json","name":"Valentin Longchamp","email":"valentin.longchamp@keymile.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170915055847.29716-1-valentin.longchamp@keymile.com/mbox/","series":[{"id":3226,"url":"http://patchwork.ozlabs.org/api/series/3226/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=3226","date":"2017-09-15T05:58:47","name":"[v2] net/ethernet/freescale: fix warning for ucc_geth","version":2,"mbox":"http://patchwork.ozlabs.org/series/3226/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814081/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814081/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtl8D28hRz9sRm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 15:58:52 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751156AbdIOF6t (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 15 Sep 2017 01:58:49 -0400","from mail-de.keymile.com ([195.8.104.250]:38331 \"EHLO\n\tmail-de.keymile.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750735AbdIOF6s (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 15 Sep 2017 01:58:48 -0400","from secmail.keymile.com ([195.8.104.201]:34241 helo=totemomail)\n\tby mail-de.keymile.com with smtp (Exim 4.82_1-5b7a7c0-XX)\n\t(envelope-from <valentin.longchamp@keymile.com>)\n\tid 1dsjeG-0008Qm-1y; Fri, 15 Sep 2017 07:58:44 +0200","from 10.9.1.54 ([10.9.1.54])\n\tby secmail.keymile.com (Totemo SMTP Server) with SMTP ID 684;\n\tFri, 15 Sep 2017 07:57:25 +0200 (CEST)","from CH900635.keymile.net (ch10520v1.keymile.net [172.31.34.44])\n\tby mailrelay.keymile.net (8.12.2/8.12.2) with ESMTP id v8F5wg5j015338;\n\tFri, 15 Sep 2017 07:58:43 +0200 (MEST)"],"From":"Valentin Longchamp <valentin.longchamp@keymile.com>","To":"leoli@freescale.com, netdev@vger.kernel.org, christophe.leroy@c-s.fr","Cc":"linuxppc-dev@lists.ozlabs.org,\n\tValentin Longchamp <valentin.longchamp@keymile.com>","Subject":"[PATCH v2] net/ethernet/freescale: fix warning for ucc_geth","Date":"Fri, 15 Sep 2017 07:58:47 +0200","Message-Id":"<20170915055847.29716-1-valentin.longchamp@keymile.com>","X-Mailer":"git-send-email 2.13.5","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"uf_info.regs is resource_size_t i.e. phys_addr_t that can be either u32\nor u64 according to CONFIG_PHYS_ADDR_T_64BIT.\n\nThe printk format is thus adaptet to u64 and the regs value cast to u64\nto take both u32 and u64 into account.\n\nSigned-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>\n---\n drivers/net/ethernet/freescale/ucc_geth.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)","diff":"diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c\nindex f77ba9fa257b..a96b838cffce 100644\n--- a/drivers/net/ethernet/freescale/ucc_geth.c\n+++ b/drivers/net/ethernet/freescale/ucc_geth.c\n@@ -3857,8 +3857,9 @@ static int ucc_geth_probe(struct platform_device* ofdev)\n \t}\n \n \tif (netif_msg_probe(&debug))\n-\t\tpr_info(\"UCC%1d at 0x%8x (irq = %d)\\n\",\n-\t\t\tug_info->uf_info.ucc_num + 1, ug_info->uf_info.regs,\n+\t\tpr_info(\"UCC%1d at 0x%8llx (irq = %d)\\n\",\n+\t\t\tug_info->uf_info.ucc_num + 1,\n+\t\t\t(u64)ug_info->uf_info.regs,\n \t\t\tug_info->uf_info.irq);\n \n \t/* Create an ethernet device instance */\n","prefixes":["v2"]}