{"id":814082,"url":"http://patchwork.ozlabs.org/api/patches/814082/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170915055847.29716-1-valentin.longchamp@keymile.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170915055847.29716-1-valentin.longchamp@keymile.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170915055847.29716-1-valentin.longchamp@keymile.com/","date":"2017-09-15T05:58:47","name":"[v2] net/ethernet/freescale: fix warning for ucc_geth","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"9756d498571b278b689f9780c606cd90209fb1bb","submitter":{"id":7642,"url":"http://patchwork.ozlabs.org/api/people/7642/?format=json","name":"Valentin Longchamp","email":"valentin.longchamp@keymile.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170915055847.29716-1-valentin.longchamp@keymile.com/mbox/","series":[{"id":3227,"url":"http://patchwork.ozlabs.org/api/series/3227/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=3227","date":"2017-09-15T05:58:47","name":"[v2] net/ethernet/freescale: fix warning for ucc_geth","version":2,"mbox":"http://patchwork.ozlabs.org/series/3227/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814082/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814082/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtl9Z3g1yz9sRm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 16:00:02 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xtl9Y5xp6zDrYs\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 16:00:01 +1000 (AEST)","from mail-de.keymile.com (mail-de.keymile.com [195.8.104.250])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xtl8F4ffxzDrWB\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 15 Sep 2017 15:58:52 +1000 (AEST)","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)"],"Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=keymile.com\n\t(client-ip=195.8.104.250; helo=mail-de.keymile.com;\n\tenvelope-from=valentin.longchamp@keymile.com; receiver=<UNKNOWN>)","From":"Valentin Longchamp <valentin.longchamp@keymile.com>","To":"leoli@freescale.com, netdev@vger.kernel.org, christophe.leroy@c-s.fr","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","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"Valentin Longchamp <valentin.longchamp@keymile.com>,\n\tlinuxppc-dev@lists.ozlabs.org","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.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"]}