get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226487,
    "url": "http://patchwork.ozlabs.org/api/patches/2226487/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/f8f4e639-0e73-4d14-828a-92dbfe5526ba@cherry.de/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<f8f4e639-0e73-4d14-828a-92dbfe5526ba@cherry.de>",
    "list_archive_url": null,
    "date": "2026-04-22T13:25:55",
    "name": "Couple of clang warnings for Rockchip boards",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "3ee1145e7a06d7e39afdf860f6e5db91638c810c",
    "submitter": {
        "id": 88462,
        "url": "http://patchwork.ozlabs.org/api/people/88462/?format=api",
        "name": "Quentin Schulz",
        "email": "quentin.schulz@cherry.de"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/f8f4e639-0e73-4d14-828a-92dbfe5526ba@cherry.de/mbox/",
    "series": [
        {
            "id": 501012,
            "url": "http://patchwork.ozlabs.org/api/series/501012/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501012",
            "date": "2026-04-22T13:25:55",
            "name": "Couple of clang warnings for Rockchip boards",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501012/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226487/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226487/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=cherry.de header.i=@cherry.de header.a=rsa-sha256\n header.s=selector1 header.b=RJd5AToK;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)",
            "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=cherry.de",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=cherry.de header.i=@cherry.de header.b=\"RJd5AToK\";\n\tdkim-atps=neutral",
            "phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=cherry.de",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=quentin.schulz@cherry.de",
            "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=cherry.de;"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 legolas.ozlabs.org (Postfix) with ESMTPS id 4g10Nl6JWpz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 23:26:15 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id CEE3D840CB;\n\tWed, 22 Apr 2026 15:26:07 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 6E8C984178; Wed, 22 Apr 2026 15:26:06 +0200 (CEST)",
            "from DB3PR0202CU003.outbound.protection.outlook.com\n (mail-northeuropeazlp170100001.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c200::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 8504A83BC8\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 15:26:03 +0200 (CEST)",
            "from DBBPR04MB7737.eurprd04.prod.outlook.com (2603:10a6:10:1e5::22)\n by GV1PR04MB10243.eurprd04.prod.outlook.com (2603:10a6:150:17d::9)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.18; Wed, 22 Apr\n 2026 13:25:58 +0000",
            "from DBBPR04MB7737.eurprd04.prod.outlook.com\n ([fe80::5960:fb4b:9313:2b00]) by DBBPR04MB7737.eurprd04.prod.outlook.com\n ([fe80::5960:fb4b:9313:2b00%4]) with mapi id 15.20.9846.017; Wed, 22 Apr 2026\n 13:25:58 +0000"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=xLJ5DE3PyFsaokrKabAXTZqcOQeolFGPPx0ORMTIMZ1jCU+0JhU8FnBspvBT07z9uMA3wLcjrSoUPY9FRbTFQOMA7DqWN+6+V6u9Jpsd0f5/d+UE4MIC44IouWLVMS48BT6nNEAXV3RW+XqZWPKwFuGC4vq5764G+wN+Sh2Jm3cV8NAO0Y8zun7Nc+3c3FFE+N2k6g1gXAH0hD3xXl/RX6UvbJxmCdBXDUCCo8QfmDodF/zengp5gtYTPa9ZP+KrTE68pbEMpEd6PdXHE8WlUAD8sojq79wp5Kr8HBnob8KU5H2vwdd1MBAXjM20GQYpYX3cRXWf2mI89ZoO5FSJ8A==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=I7l4zGwvVuHzBQOPfIdm3RgzXT9UBK3v/NdabkllVfc=;\n b=KWrhJKEe/f54l/D43nJbXMhnSk5BxncRZWESP7Giz3l86f1qQ9WWzNgJfzHKqhkn7WydAeseqqJxWqyMyXQCPcAIH92qYKgiCSMWpBjpeJHsnF5L2JMQqVoribwDhYqlguNuL5XwLxpwOBzB5ahI1KSXd1IlSoogMo0mmuRCBljpEU0BBXuaiaVK9DjWxSwhNf/4aI6atyMji1MbnCkMwo6tcWjyjR6IzbimWZLX//4FDcpPP7XJ/o4vEE+JhNLieRJFXbxFueDBGBDPMub/UyBoDqwCrynV5UdX0tE27ru0pIKUHZQOQglLdnDToJahIT7j8zCm6K7QQvKeizfnyw==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de;\n dkim=pass header.d=cherry.de; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=I7l4zGwvVuHzBQOPfIdm3RgzXT9UBK3v/NdabkllVfc=;\n b=RJd5AToKfQ0LtHY4NVSpiJUjcd6POtHNvKigt7XDB4nOSG5ax6GBGzQrM0BooiIVTq3FC+zIIYhjUHzzMZAvbPr912Hh8Joe9TRKf3pmcC6v3Z1Dfo4Qpu2gUBAWoSIhKQn5mw2sfiMdAqNV4t+UCRSzWJURe9+mifsEy2xAltw=",
        "Message-ID": "<f8f4e639-0e73-4d14-828a-92dbfe5526ba@cherry.de>",
        "Date": "Wed, 22 Apr 2026 15:25:55 +0200",
        "User-Agent": "Mozilla Thunderbird",
        "Content-Language": "en-US",
        "From": "Quentin Schulz <quentin.schulz@cherry.de>",
        "Subject": "Couple of clang warnings for Rockchip boards",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Cc": "Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,\n Philipp Tomsich <philipp.tomsich@vrull.eu>,\n Kever Yang <kever.yang@rock-chips.com>, Jonas Karlman <jonas@kwiboo.se>,\n Xuhui Lin <xuhui.lin@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Sebastian Reichel <sebastian.reichel@collabora.com>",
        "Content-Type": "text/plain; charset=UTF-8; format=flowed",
        "Content-Transfer-Encoding": "7bit",
        "X-ClientProxiedBy": "VI1PR07CA0304.eurprd07.prod.outlook.com\n (2603:10a6:800:130::32) To DBBPR04MB7737.eurprd04.prod.outlook.com\n (2603:10a6:10:1e5::22)",
        "MIME-Version": "1.0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DBBPR04MB7737:EE_|GV1PR04MB10243:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "b18a80da-e252-42fe-cdb6-08dea072b05e",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|376014|7416014|366016|10070799003|1800799024|18002099003|56012099003;",
        "X-Microsoft-Antispam-Message-Info": "\n IGN/PpPCX7sg6X+VdqNBgZBP4PL+cZjiFwBVr69AkGmvjaNgeyVpMKG9r+Bk4YD5j3LEyCCzXlixotMiZBj4lffiqkDVcmoUv16bNZ+2DVn2cjTjvr20zxhH9CrNdVnK3grr1aHfYxaYR+QDAmX4L4s/h3LlyBNnqVXec/hZdSYs+wrnUIkqxSWhc6HVPs9XF+rKKhxCJ39aa1Qy9hiuXv4RX+gDnJvoQzdKE0UaOPL4DEPIpmeJ1CnyyYfk0ljIcHykSR8ZqlBsmRCk8uiXCE6tBaJPO4MCGFKpIx8c/Zf6ZpbHpSP3hSNvV7tyzE0mCH3VMiojLu8tOH7z45xWEre2I26bUgP95kyItgD0ss7Y4FDoA/rzYEHhBw1X6RdNrwFK38jpRJRNN8mFF7ZpIt+0TW7iNMYAiqdbADBoRYLfSx2XXVQXe5nXF6qpKMoMKsVdZwsRSuRrzq46emSVhjHW6dIwTIwfaJoFRge8dhVJsYTlwWvQzkIJIOZ95i7oFjZ78jeiqqbVe9hIo8RiDcC1pRW8/yi7SwmAstWhDtj/nSquZseHb/NrTpyFiH3MZ7JCv4/U0MAKSLwKhaA0KqQ8a7yq2yaRaVPYka7BC3e+iJBhpemPkT71ggppvZscp5UV1KsBLRxybN454Nz2GgB550NKuqa+8eHlKRfgSB8nh3NK4wgpuWKKeHxOBNiX",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:DBBPR04MB7737.eurprd04.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230040)(376014)(7416014)(366016)(10070799003)(1800799024)(18002099003)(56012099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "=?utf-8?q?tdhsk30oLF4zpGkmjb1Tu9vyn/Im?=\n\t=?utf-8?q?R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AoLeLsdX+vsjrqqbI8UR/kM7SC8f3oSlg?=\n\t=?utf-8?q?KHPGxv8DJ?=",
        "X-OriginatorOrg": "cherry.de",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n b18a80da-e252-42fe-cdb6-08dea072b05e",
        "X-MS-Exchange-CrossTenant-AuthSource": "DBBPR04MB7737.eurprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "22 Apr 2026 13:25:58.0485 (UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "5e0e1b52-21b5-4e7b-83bb-514ec460677e",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n z2PmOaahna4cuqrzeQcJCX+x5rgKuPUYL1+pyZAs005aiG0UG2xhWl39orkg4kVP8h1HIy7PomhZMNiTnbjbV3Yk9E/e4A+YDO8ooWMW0B8=",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "GV1PR04MB10243",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Hi all,\n\nI'm looking into force-enabling CONFIG_WERROR for all Rockchip SoCs. \nFirst, let me know if this is a bad idea :)\n\ngcc version 15.2.1 20250808 (Red Hat Cross 15.2.1-1) (GCC) for both ARM \nand Aarch64 machines report no warnings (built with a config fragment \nenabling CONFIG_WERROR).\n\nFor clang, I went for cross-compiling using either\nmake HOSTCC=clang CROSS_COMPILE=arm-linux-gnu- CC=clang O=build/ ...\nor\nmake HOSTCC=clang CROSS_COMPILE=aarch64-linux-gnu- CC=clang O=build/ ...\n\nFirst things first, I can't even build any of the Aarch32/ARM with clang \nfor some reason, so this only applies for Aarch64 Rockchip platforms.\n\nSome platforms couldn't be built due to hitting the max TPL limit (e.g. \nPX30).\n\nclang version 21.1.8 (Fedora 21.1.8-4.fc43) (or clang version 22.1.1 \n(Fedora 22.1.1-2.fc44), doesn't matter) issues three warnings:\n\n1. Chromebooks EC fails to build:\nIn file included from \n/home/qschulz/work/upstream/u-boot/drivers/misc/cros_ec.c:21:\nIn file included from \n/home/qschulz/work/upstream/u-boot/include/cros_ec.h:12:\n/home/qschulz/work/upstream/u-boot/include/ec_commands.h:3578:2: error: \nfield  within 'struct ec_params_charge_state' is less aligned than \n'union ec_params_charge_state::(anonymous at \n/home/qschulz/work/upstream/u-boot/include/ec_commands.h:3578:2)' and is \nusually due to 'struct ec_params_charge_state' being packed, which can \nlead to unaligned accesses [-Werror,-Wunaligned-access]\n  3578 |         union {\n       |         ^\n\nThe following\n\n\nseems to fix it. The upstream EC git repo \n(https://chromium.googlesource.com/chromiumos/platform/ec) has a commit \nwith more changes, see 65da9cc08766 (\"include/ec_commands.h: Fix \nunaligned access warnings\"). It doesn't apply cleanly (and I haven't \nlooked into other patches to backport for this to apply cleanly). I'm \nnot sure what we're supposed to do here? I also don't have a Chromebook \nto test.\n\n2. RK3528, RK3576 and RK3588 boards fail with (replace rk3528 in path \nfor the other SoCs)\n\n/home/qschulz/work/upstream/u-boot/arch/arm/mach-rockchip/rk3528/rk3528.c:98:45: \nerror: value size does not match register size specified by the \nconstraint and modifier [-Werror,-Wasm-operand-widths]\n    98 |         asm volatile(\"msr cntfrq_el0, %0\" : : \"r\" \n(CONFIG_COUNTER_FREQUENCY));\n       |                                                    ^\ninclude/generated/autoconf.h:372:34: note: expanded from macro \n'CONFIG_COUNTER_FREQUENCY'\n   372 | #define CONFIG_COUNTER_FREQUENCY 24000000\n       |                                  ^\n/home/qschulz/work/upstream/u-boot/arch/arm/mach-rockchip/rk3528/rk3528.c:98:32: \nnote: use constraint modifier \"w\"\n    98 |         asm volatile(\"msr cntfrq_el0, %0\" : : \"r\" \n(CONFIG_COUNTER_FREQUENCY));\n       |                                       ^~\n       |                                       %w0\n\nNote that all Rockchip SoCs have CONFIG_COUNTER_FREQUENCY set to 24000000.\n\nThe cntfrq_el0 register is 64b \n(https://developer.arm.com/documentation/ddi0601/2026-03/AArch64-Registers/CNTFRQ-EL0--Counter-timer-Frequency-Register?lang=en), \nthough the top 32b are reserved. Android decided to ignore this warning \nin the Little Kernel with \nhttps://android.googlesource.com/kernel/lk/+/923541d4c23565a47d020d84202a6f77d22fc149%5E%21/.\n\nI tried to follow clang's recommendation and switch this to %w0 but it \nfails with:\n\n/tmp/rk3588-a0a4b8.s: Assembler messages:\n/tmp/rk3588-a0a4b8.s:87: Error: operand mismatch -- `msr cntfrq_el0,w9'\n/tmp/rk3588-a0a4b8.s:87: Info:    did you mean this?\n/tmp/rk3588-a0a4b8.s:87: Info:    \tmsr cntfrq_el0, x9\nclang: error: assembler command failed with exit code 1 (use -v to see \ninvocation)\n\nI tried casting CONFIG_COUNTER_FREQUENCY into a u64 and it builds and no \nmagic smoke when booting a board. Whether this is the proper fix, I \ndon't know, but the warning is then gone. We could also decide to ignore \nthe warning like for Android's Little Kernel (where and how much this is \nused is unclear as the repo isn't seeing much activity).\n\nThe register documentation indicates this is not used by the hardware at \nall, so even if it was broken, we probably wouldn't see a difference?\n\n3. Boards building USB TCPM fail with\n\nIn file included from \n/home/qschulz/work/upstream/u-boot/drivers/usb/tcpm/tcpm-uclass.c:12:\nIn file included from \n/home/qschulz/work/upstream/u-boot/include/usb/tcpm.h:12:\n/home/qschulz/work/upstream/u-boot/include/usb/pd.h:212:2: error: field \nwithin 'struct pd_message' is less aligned than 'union \npd_message::(anonymous at \n/home/qschulz/work/upstream/u-boot/include/usb/pd.h:212:2)' and is \nusually due to 'struct pd_message' being packed, which can lead to \nunaligned accesses [-Werror,-Wunaligned-access]\n   212 |         union {\n       |         ^\n\nThis file is apparently adapted from upstream Linux, where the code is \nidentical for that struct. So not sure what to do here.\n\nCheers,\nQuentin",
    "diff": "diff --git a/include/ec_commands.h b/include/ec_commands.h\nindex 23597d28b2c..c5f9777c0c7 100644\n--- a/include/ec_commands.h\n+++ b/include/ec_commands.h\n@@ -3575,7 +3575,7 @@ enum charge_state_params {\n\n  struct __ec_todo_packed ec_params_charge_state {\n  \tuint8_t cmd;\t\t\t\t/* enum charge_state_command */\n-\tunion {\n+\tunion __ec_todo_packed {\n  \t\tstruct __ec_align1 {\n  \t\t\t/* no args */\n  \t\t} get_state;\n",
    "prefixes": []
}