Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2108400/?format=api
{ "id": 2108400, "url": "http://patchwork.ozlabs.org/api/patches/2108400/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250708-net_fix-v1-1-292b9aa20f31@linaro.org/", "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": "<20250708-net_fix-v1-1-292b9aa20f31@linaro.org>", "list_archive_url": null, "date": "2025-07-08T16:51:16", "name": "[1/3] net: Add parens to macro PSEUDO_HDR_SIZE", "commit_ref": "31a8d2d34082ff6d1e2989912a373aed3f080fb6", "pull_url": null, "state": "accepted", "archived": false, "hash": "5a9906abe6bbbfeab60aa6f263dca08b846a1b92", "submitter": { "id": 88793, "url": "http://patchwork.ozlabs.org/api/people/88793/?format=api", "name": "Andrew Goodbody", "email": "andrew.goodbody@linaro.org" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250708-net_fix-v1-1-292b9aa20f31@linaro.org/mbox/", "series": [ { "id": 464249, "url": "http://patchwork.ozlabs.org/api/series/464249/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=464249", "date": "2025-07-08T16:51:15", "name": "net: Address some issues reported by Smatch", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/464249/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2108400/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2108400/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 (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=u7Ev7PjJ;\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=none dis=none) header.from=linaro.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.b=\"u7Ev7PjJ\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=linaro.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=andrew.goodbody@linaro.org" ], "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 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4bc6ZP1RNSz1xrN\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 9 Jul 2025 02:51:25 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7D757833C0;\n\tTue, 8 Jul 2025 18:51:22 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id BCD0F833C0; Tue, 8 Jul 2025 18:51:20 +0200 (CEST)", "from mail-wm1-x334.google.com (mail-wm1-x334.google.com\n [IPv6:2a00:1450:4864:20::334])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D505C8331D\n for <u-boot@lists.denx.de>; Tue, 8 Jul 2025 18:51:18 +0200 (CEST)", "by mail-wm1-x334.google.com with SMTP id\n 5b1f17b1804b1-451dbe494d6so53001025e9.1\n for <u-boot@lists.denx.de>; Tue, 08 Jul 2025 09:51:18 -0700 (PDT)", "from artemis2.elfringham.co.uk\n ([2a0a:ef40:e07:801:a08:6480:3e01:6cde])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-3b47030ba29sm13232481f8f.2.2025.07.08.09.51.17\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 08 Jul 2025 09:51:17 -0700 (PDT)" ], "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_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1751993478; x=1752598278; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=BY6plIVMXMeJKRvWsKbGUeUH/c2ZqBoNnc8fe5RqvKo=;\n b=u7Ev7PjJdPrNluMt+xQJtX4Zs6ng/0MKHQ3/JxrlBkUGIbjBFEuW0AXYSD3GSEVO2j\n /O+ojQhi7NcFEU91r5dtrbDZaRtrKNl/0lcsn9WAdfU2NTZpQfZgn42+5YTwxKqiJiKJ\n Gm4GNbhi/tUuriLx/OD2lB+Z//e8HhCzkLLjCUHdi6tixU9azl5a6k0xM2esMCa+JrnB\n KQ+eR798yEbler4V4ydI5AcALp+yVnBMJaa1Fq0XCGBhDSrnpfNzf/ZP65JsmWpikZ3u\n /CM0WAluDRbbHycw1BUMVaCyczydHxM7v6cNFPKXJKt35VxdRAi6T13aiSWYY5B1Y0YT\n L0pw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1751993478; x=1752598278;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=BY6plIVMXMeJKRvWsKbGUeUH/c2ZqBoNnc8fe5RqvKo=;\n b=qlqlhQDx0mZ6YCvjPxI8OY70j7h9PLJ2CJHipYZOoUNpmj1BuJQfgSD40vny8yljIH\n W3BSb6Zmd2vaT53iInaVq5St7AYBwlmMoRXqv3MbAFdPyahiAtiqUQ0LxITqBJkpS1Cu\n 3FhpdZLO6gFjnnF9r+AOJiHdrESQZHchw258q+BlcKRXY0fZcIOUJo1+/ZzncC/9Nyor\n UB32a41YFSo1CHpO31PZzhYXQGR0uPlhdgas75b1Vl8X9/hHhY39eCnCR0tYMbKO7LMD\n L1PhR7phGydN+0pYe4LvEJYRL783obKRqiCygCJCKbnMj6oiNy87ND/uGI3cb4Vyc/Hx\n THRQ==", "X-Gm-Message-State": "AOJu0YwWbAfc3zMmFMhWwR/tECj7+ogIbeMqXD3V77LG/NumijLHP+/3\n Viw+4M83qYayiYk1c7X11c+J8hzetk1EXaNk1+fJCYoMpyCMf5UCAmLsvTdGWJSRGYZAI6mxkOa\n k+KoD", "X-Gm-Gg": "ASbGncuipxsUw7xMAuyA5/s4QQH/+DSP2pib0fzjBZLEnGcYGM0UuJlcdv9Q5blFCMd\n jUJNrsoGpzblhcTIcyRauCc+m3rf2LQZtbzmtPn+ypQmmyQkJuwVxhZhXxynncgMi1bwlFWLWmj\n 8+P24mC2TL054LTHoiuI9B+AS1y+eNrT9wZj1Q2Ox7J8j9Jfua+Lj61GBDUtqn/GFkjtSEmRA6S\n epCdCfqDC97zjVZBBkMcPhAe62eQGFAEc7pSoqYgj8sbhyoRMkAKIRk8tlNZKcND6u5A+01U2u8\n v4eIX6chHJrUUNiU5Aef1wFupYkYCwCF0SZOEXpCRtXo/xr4X9UyXqU9FmngJ5ri5cMg5Hk0a64\n EnuiXhI7U9O4XeFyxCMNbnvY=", "X-Google-Smtp-Source": "\n AGHT+IG1jB5W3Lm6zGlkhFK0n7O+WYiB8KzxVWJvluyj7b3wCC1hIZElVuEgKHsm1Sr+418L5WbC8g==", "X-Received": "by 2002:a05:600c:1396:b0:442:e109:3027 with SMTP id\n 5b1f17b1804b1-454ca33d1edmr64974375e9.24.1751993478104;\n Tue, 08 Jul 2025 09:51:18 -0700 (PDT)", "From": "Andrew Goodbody <andrew.goodbody@linaro.org>", "Date": "Tue, 08 Jul 2025 17:51:16 +0100", "Subject": "[PATCH 1/3] net: Add parens to macro PSEUDO_HDR_SIZE", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20250708-net_fix-v1-1-292b9aa20f31@linaro.org>", "References": "<20250708-net_fix-v1-0-292b9aa20f31@linaro.org>", "In-Reply-To": "<20250708-net_fix-v1-0-292b9aa20f31@linaro.org>", "To": "Tom Rini <trini@konsulko.com>, Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>", "Cc": "u-boot@lists.denx.de, Andrew Goodbody <andrew.goodbody@linaro.org>", "X-Mailer": "b4 0.12.0", "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": "Smatch reports a warning about possibly needing parens around the macro\nPSEUDO_HDR_SIZE. This will not affect the one place the macro is used\nbut add the parens anyway as it is good practice to have them and if the\nmacro is used again in the future it could possibly matter then.\n\nSigned-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>\n---\n include/net/tcp.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/include/net/tcp.h b/include/net/tcp.h\nindex 5022fa9dc1b..6f4d58a1234 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -235,7 +235,7 @@ struct pseudo_hdr {\n \tu16 len;\n } __packed;\n \n-#define PSEUDO_HDR_SIZE\t(sizeof(struct pseudo_hdr)) - PSEUDO_PAD_SIZE\n+#define PSEUDO_HDR_SIZE\t((sizeof(struct pseudo_hdr)) - PSEUDO_PAD_SIZE)\n \n /**\n * union tcp_build_pkt - union for building TCP/IP packet.\n", "prefixes": [ "1/3" ] }