get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2194288/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2194288,
    "url": "http://patchwork.ozlabs.org/api/patches/2194288/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260208092656.95613-2-thorsten.blum@linux.dev/",
    "project": {
        "id": 10,
        "url": "http://patchwork.ozlabs.org/api/projects/10/?format=api",
        "name": "Linux SPARC Development ",
        "link_name": "sparclinux",
        "list_id": "sparclinux.vger.kernel.org",
        "list_email": "sparclinux@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260208092656.95613-2-thorsten.blum@linux.dev>",
    "list_archive_url": null,
    "date": "2026-02-08T09:26:55",
    "name": "sparc: vio: Use sysfs_emit in sysfs show functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "49c08be3c278fec679d34bd58d927725b1d1dbfd",
    "submitter": {
        "id": 89400,
        "url": "http://patchwork.ozlabs.org/api/people/89400/?format=api",
        "name": "Thorsten Blum",
        "email": "thorsten.blum@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/sparclinux/patch/20260208092656.95613-2-thorsten.blum@linux.dev/mbox/",
    "series": [
        {
            "id": 491413,
            "url": "http://patchwork.ozlabs.org/api/series/491413/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/sparclinux/list/?series=491413",
            "date": "2026-02-08T09:26:55",
            "name": "sparc: vio: Use sysfs_emit in sysfs show functions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491413/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194288/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194288/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=xAt/=AM=vger.kernel.org=sparclinux+bounces-6241-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "sparclinux@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=YDZk43T/;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=xat/=am=vger.kernel.org=sparclinux+bounces-6241-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10 arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev",
            "gandalf.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=YDZk43T/;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=sparclinux+bounces-6241-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev\n header.b=\"YDZk43T/\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=95.215.58.180",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.dev"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f82Yv6j57z1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 20:28:18 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4f82Yt4VTkz4w1v\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 20:28:18 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4f82Yt4BGQz4wC8; Sun, 08 Feb 2026 20:28:18 +1100 (AEDT)",
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4f82Yq1BMdz4w1v\n\tfor <patchwork-incoming@ozlabs.org>; Sun, 08 Feb 2026 20:28:15 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id C533B300D323\n\tfor <patchwork-incoming@ozlabs.org>; Sun,  8 Feb 2026 09:27:47 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 7F33C2D8762;\n\tSun,  8 Feb 2026 09:27:46 +0000 (UTC)",
            "from out-180.mta1.migadu.com (out-180.mta1.migadu.com\n [95.215.58.180])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A621221F1C\n\tfor <sparclinux@vger.kernel.org>; Sun,  8 Feb 2026 09:27:45 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1770542898; cv=pass;\n\tb=SUIl1qlWr20GbMQ5zQeBmExoKPgrhQdvjzh9ubxlvZs+iCKXDMwE9W8KXR014jPlV6h5nz7wVjd8UkNK7L7C5Lqilgi9N2EXe5Qcy+qQPf/pdWdBGL3KSJ0PoIVyS6Qit3AKtRjttaegYdgn1fszZLrV8dZovJjSK/XGY3+mME1DbOaoe6ARTYjK7HEjdmvsMU5jSRsZqX9Ol0MWI+QgnBgKadnouj4sYA37fteKgAShZPbAakX9ZgDrBv7IB/ERK3BdWHeF8lMW4JyLYkVImKvrJfZ/0GCSbz7mcS0Xn95nrBgICgIt71SJi2ABwvXaA9oQpMRBEe8FWrbNgI3gfw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770542866; cv=none;\n b=fzUpGyYZDkYM8BwuGyFcLsQy/KWlLYBmPZPzfu2gU4dzVRhhBsd4/7clRe38PMglM2mNuxEMFGydc2T3Fgy5KwyhXqIf9SpHVagp0HcLn852LAg+LPGk1ttVjijCxGuWtzKU84sm2grkCYwGpbrnNHm0iNiBDOlf15XqQfwDAWw="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1770542898; c=relaxed/relaxed;\n\tbh=BltP21DZjH+jxJUxQg6H58ROoHC9sfcwA06UtM64JaE=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=BIoiFwBEch4jX1QtwDKguZRrkmM0mKhDpis4N0Yi4aK4lXDOzwww3PwsxMiQWU3lBXgVSLYW3I9ZFMIdNn2AtxEYKxRk1aSWAcwerxIeVMuwiT5CViCa13JUdFT7YPdKqp75v8YMnCSSqVapn7DsBeyQOF0XI97hGgDXIRg7QVlwd6S+2oqdsVKG3aKpdkrtC8v/ofHhwAiZG4fKQOiitq3xXiL/Bot9fPwtCbLvl3+Crb19GnNE0x6Spst3SnHV4vewD5nYClro8o6m2SbcLIU8Gf4SsAGe7eaZkXDaGP9QgpZIJ0Va/jSE8BFwc2NuJxcwvH1W25WieVHskYP5uw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770542866; c=relaxed/simple;\n\tbh=ql36eZjf2Hp8ftpME0qTlJjK8vonhHM+3K6Hi9Ss3iA=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=mixpMHbjcH6fnwrfcxDSZ4QOWvVWUBnxjpNiFlj0DHwO5UegiB/NUbuZ1WSUBWQ5zexrMimPfJbDAyNptTBzFm6b18fDdpITfXHMCkBcWhnAW8Wzx7bMMVv4X8RTZ/bG4vJR660kGIIxIAaWBNxOvL/mQxyALMT3EGfOfIB3HLY="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev; dkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=YDZk43T/; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=sparclinux+bounces-6241-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev;\n spf=pass smtp.mailfrom=linux.dev;\n dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev\n header.b=YDZk43T/; arc=none smtp.client-ip=95.215.58.180"
        ],
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1770542854;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=BltP21DZjH+jxJUxQg6H58ROoHC9sfcwA06UtM64JaE=;\n\tb=YDZk43T/6Nbez8DjZBMNnXQnFRI+IV+7Gdby5ahJnztie5S4r96nDZ3P564oFt6plNwyX5\n\tkCgXJouy35CvoCZubKweW7LICVe5Xbv6L2HpDA6THQwYbwRGH/cON9xBOvvN8EU9qStdKq\n\tstWOxSEHHB2J/g/vYjGz9pj7FAZlQNE=",
        "From": "Thorsten Blum <thorsten.blum@linux.dev>",
        "To": "\"David S. Miller\" <davem@davemloft.net>,\n\tAndreas Larsson <andreas@gaisler.com>",
        "Cc": "Thorsten Blum <thorsten.blum@linux.dev>,\n\tsparclinux@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH] sparc: vio: Use sysfs_emit in sysfs show functions",
        "Date": "Sun,  8 Feb 2026 10:26:55 +0100",
        "Message-ID": "<20260208092656.95613-2-thorsten.blum@linux.dev>",
        "Precedence": "bulk",
        "X-Mailing-List": "sparclinux@vger.kernel.org",
        "List-Id": "<sparclinux.vger.kernel.org>",
        "List-Subscribe": "<mailto:sparclinux+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:sparclinux+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Migadu-Flow": "FLOW_OUT",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tHEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "Replace sprintf() and scnprintf() with sysfs_emit() in sysfs show\nfunctions. sysfs_emit() is preferred to format sysfs output as it\nprovides better bounds checking.\n\nSigned-off-by: Thorsten Blum <thorsten.blum@linux.dev>\n---\n arch/sparc/kernel/vio.c | 9 +++++----\n 1 file changed, 5 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c\nindex 8c7dd72ef334..f9375f7b0bbb 100644\n--- a/arch/sparc/kernel/vio.c\n+++ b/arch/sparc/kernel/vio.c\n@@ -13,6 +13,7 @@\n #include <linux/kernel.h>\n #include <linux/slab.h>\n #include <linux/string.h>\n+#include <linux/sysfs.h>\n #include <linux/irq.h>\n #include <linux/export.h>\n #include <linux/init.h>\n@@ -121,7 +122,7 @@ static ssize_t devspec_show(struct device *dev,\n \telse if (!strcmp(vdev->type, \"vdc-port\"))\n \t\tstr = \"vdisk\";\n \n-\treturn sprintf(buf, \"%s\\n\", str);\n+\treturn sysfs_emit(buf, \"%s\\n\", str);\n }\n static DEVICE_ATTR_RO(devspec);\n \n@@ -129,7 +130,7 @@ static ssize_t type_show(struct device *dev,\n \t\tstruct device_attribute *attr, char *buf)\n {\n \tstruct vio_dev *vdev = to_vio_dev(dev);\n-\treturn sprintf(buf, \"%s\\n\", vdev->type);\n+\treturn sysfs_emit(buf, \"%s\\n\", vdev->type);\n }\n static DEVICE_ATTR_RO(type);\n \n@@ -138,7 +139,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,\n {\n \tconst struct vio_dev *vdev = to_vio_dev(dev);\n \n-\treturn sprintf(buf, \"vio:T%sS%s\\n\", vdev->type, vdev->compat);\n+\treturn sysfs_emit(buf, \"vio:T%sS%s\\n\", vdev->type, vdev->compat);\n }\n static DEVICE_ATTR_RO(modalias);\n \n@@ -192,7 +193,7 @@ show_pciobppath_attr(struct device *dev, struct device_attribute *attr,\n \tvdev = to_vio_dev(dev);\n \tdp = vdev->dp;\n \n-\treturn scnprintf(buf, PAGE_SIZE, \"%pOF\\n\", dp);\n+\treturn sysfs_emit(buf, \"%pOF\\n\", dp);\n }\n \n static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH,\n",
    "prefixes": []
}