Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/790639/?format=api
{ "id": 790639, "url": "http://patchwork.ozlabs.org/api/patches/790639/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170718214339.7774-54-robh@kernel.org/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "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": "<20170718214339.7774-54-robh@kernel.org>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170718214339.7774-54-robh@kernel.org/", "date": "2017-07-18T21:43:34", "name": "tty: Convert to using %pOF instead of full_name", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "1839f818f66763812fb8eb9ca2576328b7b001d0", "submitter": { "id": 62529, "url": "http://patchwork.ozlabs.org/api/people/62529/?format=api", "name": "Rob Herring", "email": "robh@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170718214339.7774-54-robh@kernel.org/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/790639/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/790639/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 [IPv6:2401:3900:2:1::3])\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 3xBvML4Mrhz9s06\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 19 Jul 2017 08:04:14 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xBvML3MHZzDrJQ\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 19 Jul 2017 08:04:14 +1000 (AEST)", "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xBtxN6D2PzDrKQ\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 19 Jul 2017 07:45:12 +1000 (AEST)", "by mail-pf0-f196.google.com with SMTP id q85so4060834pfq.2\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 18 Jul 2017 14:45:12 -0700 (PDT)", "from localhost.localdomain (24-223-123-72.static.usa-companies.net.\n\t[24.223.123.72]) by smtp.googlemail.com with ESMTPSA id\n\tr207sm7186560pfr.106.2017.07.18.14.45.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 18 Jul 2017 14:45:10 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=2uCJRn9EABRaty49zrIuvQPAnkQ5JRSNnE+yxzuxVss=;\n\tb=fT66giCaEBRP/BjwusMbH2sOM3nqwlJmlQC/T5LSNg2GxOkrWKFD8c6BfI5VP1w6Lg\n\tHk5cfVFfzW3bCfSd/N/+PxjauOh/moobcjpy+Bdhv4/RVHoOwa01ZzFFQ5K0sYnZhlvb\n\tfbDl3jPGnXXgft4fR+wbEyFa/uVKBFyeHGruIQYzoDXZ9yPYbUMThMFuqpb548bBU+Kk\n\tz31QBcozxnfTc2mmvmaBp4yqXOpmW4bOakDmU9SqXkWVkGiZomSilBy3lGdpXuuTRZ8/\n\tjvzE1R8o6UHoTGgX8YeZVbqLmWmVxbBv+VfLO4YVOPyVb5p5VlVGPGlOglWoPnvLm/Fl\n\tjwWA==", "X-Gm-Message-State": "AIVw113ncqLuVtRelsHsJMngXXPBGRmsNDs2o3jUxeKHeNoYF7tjv7kQ\n\tCOTTrG9W7nhuFQ==", "X-Received": "by 10.84.149.197 with SMTP id a5mr3846856plh.3.1500414311158;\n\tTue, 18 Jul 2017 14:45:11 -0700 (PDT)", "From": "Rob Herring <robh@kernel.org>", "To": "Greg Kroah-Hartman <gregkh@linuxfoundation.org>", "Subject": "[PATCH] tty: Convert to using %pOF instead of full_name", "Date": "Tue, 18 Jul 2017 16:43:34 -0500", "Message-Id": "<20170718214339.7774-54-robh@kernel.org>", "X-Mailer": "git-send-email 2.11.0", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.23", "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": "devicetree@vger.kernel.org, Jiri Slaby <jslaby@suse.com>,\n\tlinux-kernel@vger.kernel.org, Paul Mackerras <paulus@samba.org>,\n\tlinux-serial@vger.kernel.org, sparclinux@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org, \"David S. Miller\" <davem@davemloft.net>", "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": "Now that we have a custom printf format specifier, convert users of\nfull_name to use %pOF instead. This is preparation to remove storing\nof the full path string for each node.\n\nSigned-off-by: Rob Herring <robh@kernel.org>\nCc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\nCc: Jiri Slaby <jslaby@suse.com>\nCc: Benjamin Herrenschmidt <benh@kernel.crashing.org>\nCc: Paul Mackerras <paulus@samba.org>\nCc: Michael Ellerman <mpe@ellerman.id.au>\nCc: \"David S. Miller\" <davem@davemloft.net>\nCc: linuxppc-dev@lists.ozlabs.org\nCc: linux-serial@vger.kernel.org\nCc: sparclinux@vger.kernel.org\n---\n drivers/tty/ehv_bytechan.c | 2 +-\n drivers/tty/hvc/hvc_opal.c | 16 ++++++++--------\n drivers/tty/hvc/hvc_vio.c | 6 +++---\n drivers/tty/serdev/core.c | 2 +-\n drivers/tty/serial/mpc52xx_uart.c | 12 ++++++------\n drivers/tty/serial/pmac_zilog.c | 4 ++--\n drivers/tty/serial/sunsu.c | 4 ++--\n 7 files changed, 23 insertions(+), 23 deletions(-)\n\n--\n2.11.0", "diff": "diff --git a/drivers/tty/ehv_bytechan.c b/drivers/tty/ehv_bytechan.c\nindex 61fe8d6fd24e..a1c7125cb968 100644\n--- a/drivers/tty/ehv_bytechan.c\n+++ b/drivers/tty/ehv_bytechan.c\n@@ -122,7 +122,7 @@ static int find_console_handle(void)\n\n \tstdout_irq = irq_of_parse_and_map(np, 0);\n \tif (stdout_irq == NO_IRQ) {\n-\t\tpr_err(\"ehv-bc: no 'interrupts' property in %s node\\n\", np->full_name);\n+\t\tpr_err(\"ehv-bc: no 'interrupts' property in %pOF node\\n\", np);\n \t\treturn 0;\n \t}\n\ndiff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c\nindex 510799311099..16331a90c1e8 100644\n--- a/drivers/tty/hvc/hvc_opal.c\n+++ b/drivers/tty/hvc/hvc_opal.c\n@@ -179,8 +179,8 @@ static int hvc_opal_probe(struct platform_device *dev)\n \t\tproto = HV_PROTOCOL_HVSI;\n \t\tops = &hvc_opal_hvsi_ops;\n \t} else {\n-\t\tpr_err(\"hvc_opal: Unknown protocol for %s\\n\",\n-\t\t dev->dev.of_node->full_name);\n+\t\tpr_err(\"hvc_opal: Unknown protocol for %pOF\\n\",\n+\t\t dev->dev.of_node);\n \t\treturn -ENXIO;\n \t}\n\n@@ -204,14 +204,14 @@ static int hvc_opal_probe(struct platform_device *dev)\n \t\t/* Instanciate now to establish a mapping index==vtermno */\n \t\thvc_instantiate(termno, termno, ops);\n \t} else {\n-\t\tpr_err(\"hvc_opal: Device %s has duplicate terminal number #%d\\n\",\n-\t\t dev->dev.of_node->full_name, termno);\n+\t\tpr_err(\"hvc_opal: Device %pOF has duplicate terminal number #%d\\n\",\n+\t\t dev->dev.of_node, termno);\n \t\treturn -ENXIO;\n \t}\n\n-\tpr_info(\"hvc%d: %s protocol on %s%s\\n\", termno,\n+\tpr_info(\"hvc%d: %s protocol on %pOF%s\\n\", termno,\n \t\tproto == HV_PROTOCOL_RAW ? \"raw\" : \"hvsi\",\n-\t\tdev->dev.of_node->full_name,\n+\t\tdev->dev.of_node,\n \t\tboot ? \" (boot console)\" : \"\");\n\n \tirq = irq_of_parse_and_map(dev->dev.of_node, 0);\n@@ -222,8 +222,8 @@ static int hvc_opal_probe(struct platform_device *dev)\n \t}\n\n \tif (!irq) {\n-\t\tpr_err(\"hvc_opal: Unable to map interrupt for device %s\\n\",\n-\t\t\tdev->dev.of_node->full_name);\n+\t\tpr_err(\"hvc_opal: Unable to map interrupt for device %pOF\\n\",\n+\t\t\tdev->dev.of_node);\n \t\treturn irq;\n \t}\n\ndiff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c\nindex b05dc5086627..78b003be7f67 100644\n--- a/drivers/tty/hvc/hvc_vio.c\n+++ b/drivers/tty/hvc/hvc_vio.c\n@@ -312,12 +312,12 @@ static int hvc_vio_probe(struct vio_dev *vdev,\n \t\tproto = HV_PROTOCOL_HVSI;\n \t\tops = &hvterm_hvsi_ops;\n \t} else {\n-\t\tpr_err(\"hvc_vio: Unknown protocol for %s\\n\", vdev->dev.of_node->full_name);\n+\t\tpr_err(\"hvc_vio: Unknown protocol for %pOF\\n\", vdev->dev.of_node);\n \t\treturn -ENXIO;\n \t}\n\n-\tpr_devel(\"hvc_vio_probe() device %s, using %s protocol\\n\",\n-\t\t vdev->dev.of_node->full_name,\n+\tpr_devel(\"hvc_vio_probe() device %pOF, using %s protocol\\n\",\n+\t\t vdev->dev.of_node,\n \t\t proto == HV_PROTOCOL_RAW ? \"raw\" : \"hvsi\");\n\n \t/* Is it our boot one ? */\ndiff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c\nindex ae1aaa0075d1..c68fb3a8ea1c 100644\n--- a/drivers/tty/serdev/core.c\n+++ b/drivers/tty/serdev/core.c\n@@ -363,7 +363,7 @@ static int of_serdev_register_devices(struct serdev_controller *ctrl)\n \t\tif (!of_get_property(node, \"compatible\", NULL))\n \t\t\tcontinue;\n\n-\t\tdev_dbg(&ctrl->dev, \"adding child %s\\n\", node->full_name);\n+\t\tdev_dbg(&ctrl->dev, \"adding child %pOF\\n\", node);\n\n \t\tserdev = serdev_device_alloc(ctrl);\n \t\tif (!serdev)\ndiff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c\nindex 3970d6a9aaca..4cacaadbd14b 100644\n--- a/drivers/tty/serial/mpc52xx_uart.c\n+++ b/drivers/tty/serial/mpc52xx_uart.c\n@@ -1634,8 +1634,8 @@ mpc52xx_console_setup(struct console *co, char *options)\n \t\treturn -EINVAL;\n \t}\n\n-\tpr_debug(\"Console on ttyPSC%x is %s\\n\",\n-\t\t co->index, mpc52xx_uart_nodes[co->index]->full_name);\n+\tpr_debug(\"Console on ttyPSC%x is %pOF\\n\",\n+\t\t co->index, mpc52xx_uart_nodes[co->index]);\n\n \t/* Fetch register locations */\n \tret = of_address_to_resource(np, 0, &res);\n@@ -1755,8 +1755,8 @@ static int mpc52xx_uart_of_probe(struct platform_device *op)\n \t\t\tbreak;\n \tif (idx >= MPC52xx_PSC_MAXNUM)\n \t\treturn -EINVAL;\n-\tpr_debug(\"Found %s assigned to ttyPSC%x\\n\",\n-\t\t mpc52xx_uart_nodes[idx]->full_name, idx);\n+\tpr_debug(\"Found %pOF assigned to ttyPSC%x\\n\",\n+\t\t mpc52xx_uart_nodes[idx], idx);\n\n \t/* set the uart clock to the input clock of the psc, the different\n \t * prescalers are taken into account in the set_baudrate() methods\n@@ -1881,8 +1881,8 @@ mpc52xx_uart_of_enumerate(void)\n\n \tfor (i = 0; i < MPC52xx_PSC_MAXNUM; i++) {\n \t\tif (mpc52xx_uart_nodes[i])\n-\t\t\tpr_debug(\"%s assigned to ttyPSC%x\\n\",\n-\t\t\t\t mpc52xx_uart_nodes[i]->full_name, i);\n+\t\t\tpr_debug(\"%pOF assigned to ttyPSC%x\\n\",\n+\t\t\t\t mpc52xx_uart_nodes[i], i);\n \t}\n }\n\ndiff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c\nindex 0da52947e59e..6ccdd018fb45 100644\n--- a/drivers/tty/serial/pmac_zilog.c\n+++ b/drivers/tty/serial/pmac_zilog.c\n@@ -1671,8 +1671,8 @@ static int __init pmz_probe(void)\n \t\tif (!node_a && !node_b) {\n \t\t\tof_node_put(node_a);\n \t\t\tof_node_put(node_b);\n-\t\t\tprintk(KERN_ERR \"pmac_zilog: missing node %c for escc %s\\n\",\n-\t\t\t\t(!node_a) ? 'a' : 'b', node_p->full_name);\n+\t\t\tprintk(KERN_ERR \"pmac_zilog: missing node %c for escc %pOF\\n\",\n+\t\t\t\t(!node_a) ? 'a' : 'b', node_p);\n \t\t\tcontinue;\n \t\t}\n\ndiff --git a/drivers/tty/serial/sunsu.c b/drivers/tty/serial/sunsu.c\nindex 72df2e1b88af..5380407bb0be 100644\n--- a/drivers/tty/serial/sunsu.c\n+++ b/drivers/tty/serial/sunsu.c\n@@ -1212,8 +1212,8 @@ static int sunsu_kbd_ms_init(struct uart_sunsu_port *up)\n \tif (up->port.type == PORT_UNKNOWN)\n \t\treturn -ENODEV;\n\n-\tprintk(\"%s: %s port at %llx, irq %u\\n\",\n-\t up->port.dev->of_node->full_name,\n+\tprintk(\"%pOF: %s port at %llx, irq %u\\n\",\n+\t up->port.dev->of_node,\n \t (up->su_type == SU_PORT_KBD) ? \"Keyboard\" : \"Mouse\",\n \t (unsigned long long) up->port.mapbase,\n \t up->port.irq);\n", "prefixes": [] }