get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230050,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230050/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/afGhHC3kN_51NEXa@tucnak/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<afGhHC3kN_51NEXa@tucnak>",
    "date": "2026-04-29T06:11:40",
    "name": "libsanitizer: Fix up build against latest kernel headers",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3b87da189e98bfabc34af130ee9f4ba780743aec",
    "submitter": {
        "id": 671,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/671/?format=api",
        "name": "Jakub Jelinek",
        "email": "jakub@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/afGhHC3kN_51NEXa@tucnak/mbox/",
    "series": [
        {
            "id": 501991,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501991/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501991",
            "date": "2026-04-29T06:11:40",
            "name": "libsanitizer: Fix up build against latest kernel headers",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501991/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230050/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230050/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=H9rJlsKd;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=H9rJlsKd",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g56Qn5Ss0z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 16:12:16 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 712E04B99F7E\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 06:12:14 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 4E7E54BA7999\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 06:11:47 +0000 (GMT)",
            "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-325-wgwctdvjM5CrA2hcJmHCrA-1; Wed,\n 29 Apr 2026 02:11:45 -0400",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 42BF818003FC; Wed, 29 Apr 2026 06:11:44 +0000 (UTC)",
            "from tucnak.zalov.cz (unknown [10.44.34.21])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id A8B95180047F; Wed, 29 Apr 2026 06:11:43 +0000 (UTC)",
            "from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 63T6Be5a390569\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Wed, 29 Apr 2026 08:11:40 +0200",
            "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 63T6Be9Y390568;\n Wed, 29 Apr 2026 08:11:40 +0200"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 712E04B99F7E",
            "OpenDKIM Filter v2.11.0 sourceware.org 4E7E54BA7999"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 4E7E54BA7999",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 4E7E54BA7999",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777443107; cv=none;\n b=Fd5NjNlLqeqzcDnGaoejEk5R0XYkluiUNdaX8UAJVzy8kiU0C3skd/a/ca+PhUXEpy3c7wQPU6cYEq+mzmMImplZhcNhPVGiOX7VTZD9R6Nx1kkV5z3c1K0MCja9LTd/wtFzhC28ogCLnzpWNwoLWQy9b89T2c0pPMnVTSg/UGk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777443107; c=relaxed/simple;\n bh=2aLBf/rlbwXyZH9WXcEdpFwvaOLQm8yCQJMpsX3h8CI=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=DyVaQGxaert7bFCw8/7JWmdCGeJdedjMZ5Nx+T8IF1JMt38PpdDIKNJLip7K1cVl4OySNQGzWJMcMMEuuUHtrb6amULdexk7+1NzO4KV6/aLX3gsIy6sqeNSFlMDWGOwxrNsfNZueqnLSRQMb6AKmycmNJvHhEAzTyo1NpMkFC4=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1777443107;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=ickvohOhSVFFRuRN6weh0BHmMONUaJ/dALw997lrI2w=;\n b=H9rJlsKdFiz8lFP4UgW1HoYrg3tPJgHmH4RfrkaqkSysSIDRUvH6NhPPehGXzvp9FZXuT3\n mN6NGVGfj3LBaIF6uZsm0F8i/IQ48hdDH2QUSHosZZp/XASoXJynizzv5g97gXzw0X94ZX\n 7CsH9oDc+pjiDvWQJ+H69O6QhLwwlyE=",
        "X-MC-Unique": "wgwctdvjM5CrA2hcJmHCrA-1",
        "X-Mimecast-MFC-AGG-ID": "wgwctdvjM5CrA2hcJmHCrA_1777443104",
        "Date": "Wed, 29 Apr 2026 08:11:40 +0200",
        "From": "Jakub Jelinek <jakub@redhat.com>",
        "To": "Richard Biener <rguenther@suse.de>",
        "Cc": "gcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] libsanitizer: Fix up build against latest kernel headers",
        "Message-ID": "<afGhHC3kN_51NEXa@tucnak>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "79-vlPrpfkhrgOli6-RHcafPn31pBbregI7Am-FQ4yU_1777443104",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Reply-To": "Jakub Jelinek <jakub@redhat.com>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "Hi!\n\nThe Linux kernel recently removed the linux/scc.h header, so gcc (both\n16.1-rc2 and trunk) fails to build e.g. on Fedora rawhide now.\n\nThe following patch cherry picks a recent upstream fix for this, the macros\ndefined in that header haven't been really used since 2013-ish.\n\nBootstrapped/regtested on x86_64-linux, i686-linux, powerpc64le-linux,\naarch64-linux and s390x-linux with linux/scc.h missing (16 branch) and\non the trunk with linux/scc.h not missing on x86_64-linux and i686-linux,\nok of trunk and 16.1?  I think we want this in 16.1 and it shouldn't be\nrisky.\n\n2026-04-29  Jakub Jelinek  <jakub@redhat.com>\n\n\t* sanitizer_common/sanitizer_platform_limits_posix.cpp: Cherry picked\n\tfrom LLVM commit 3dc4fd6dd41100f051a63642f449b16324389c96.\n\n\n\tJakub",
    "diff": "--- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp.jj\t2026-04-22 07:43:37.787920757 +0200\n+++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp\t2026-04-28 15:51:39.348680761 +0200\n@@ -152,16 +152,15 @@ typedef struct user_fpregs elf_fpregset_\n #if defined(__mips64)\n # include <sys/procfs.h>\n #endif\n-#include <sys/user.h>\n-#include <linux/if_eql.h>\n-#include <linux/if_plip.h>\n-#include <linux/lp.h>\n-#include <linux/mroute.h>\n-#include <linux/mroute6.h>\n-#include <linux/scc.h>\n-#include <linux/serial.h>\n-#include <sys/msg.h>\n-#include <sys/ipc.h>\n+#      include <linux/if_eql.h>\n+#      include <linux/if_plip.h>\n+#      include <linux/lp.h>\n+#      include <linux/mroute.h>\n+#      include <linux/mroute6.h>\n+#      include <linux/serial.h>\n+#      include <sys/ipc.h>\n+#      include <sys/msg.h>\n+#      include <sys/user.h>\n #endif  // SANITIZER_ANDROID\n \n #include <link.h>\n@@ -534,8 +533,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El\n   unsigned struct_kbsentry_sz = sizeof(struct kbsentry);\n   unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);\n   unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);\n-  unsigned struct_scc_modem_sz = sizeof(struct scc_modem);\n-  unsigned struct_scc_stat_sz = sizeof(struct scc_stat);\n   unsigned struct_serial_multiport_struct_sz\n       = sizeof(struct serial_multiport_struct);\n   unsigned struct_serial_struct_sz = sizeof(struct serial_struct);\n",
    "prefixes": []
}