Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2073329/?format=api
{ "id": 2073329, "url": "http://patchwork.ozlabs.org/api/patches/2073329/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250415211819.1254435-8-jerome.forissier@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": "<20250415211819.1254435-8-jerome.forissier@linaro.org>", "list_archive_url": null, "date": "2025-04-15T21:17:42", "name": "[v2,07/11] net: ping: make do_ping() available via <net.h>", "commit_ref": "1f907e559d5d29f7824115e47c9771595fdf5819", "pull_url": null, "state": "accepted", "archived": false, "hash": "8afd995e9c4803e965c02859b5b4eb423f3a7fc8", "submitter": { "id": 69192, "url": "http://patchwork.ozlabs.org/api/people/69192/?format=api", "name": "Jerome Forissier", "email": "jerome.forissier@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/20250415211819.1254435-8-jerome.forissier@linaro.org/mbox/", "series": [ { "id": 452941, "url": "http://patchwork.ozlabs.org/api/series/452941/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=452941", "date": "2025-04-15T21:17:35", "name": "lwIP sandbox tests", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/452941/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2073329/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2073329/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=Wmk1ht+N;\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=\"Wmk1ht+N\";\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=jerome.forissier@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 4ZccVM13k7z1yJ9\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 16 Apr 2025 07:19:23 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 0F4DC82C2B;\n\tTue, 15 Apr 2025 23:18:40 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 5528782BC8; Tue, 15 Apr 2025 23:18:37 +0200 (CEST)", "from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com\n [IPv6:2a00:1450:4864:20::32e])\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 4ECA0808AF\n for <u-boot@lists.denx.de>; Tue, 15 Apr 2025 23:18:35 +0200 (CEST)", "by mail-wm1-x32e.google.com with SMTP id\n 5b1f17b1804b1-43cf0d787eeso69789405e9.3\n for <u-boot@lists.denx.de>; Tue, 15 Apr 2025 14:18:35 -0700 (PDT)", "from builder.. ([2a01:e0a:3cb:7bb0:6ebc:6ce:770e:95f9])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-39eaf43cce3sm15530917f8f.74.2025.04.15.14.18.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 15 Apr 2025 14:18:34 -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=1744751914; x=1745356714; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=dPapFxm3yxjBtHQRWGN3QR2UhbaPTtk+IO2db1XR8X0=;\n b=Wmk1ht+NtAhSaa/uZWwgBfSphaaWFNTyBGseebIy8Q5u09IUd0GaTU4CVswMrrOZbO\n kcFeoF3JiNi5ywhAPuBCeybcNlwNflu3fCAiSa7eaWoFeKzQdmbq/xk1fgYBjurtQ+SF\n 8ysIa5bmeKJ5t5+xBbZNBzYMkybpQeOETx5hO5Pk3Ed4B2/3OqqdqwkQv7THmj411dYY\n gnae70L/dA8peiTM1aJbJSNpi6A6qJDnY0TkbgWprh5qzRCUisFg4y0n3tZzys4IrbgZ\n xAkUeC3+oc0RBDeYtEQ/aNRnBJsK9BvacsL9Rpgk2S4DK+DdEUGINe0h7I5scLu7j66L\n tthg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1744751914; x=1745356714;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=dPapFxm3yxjBtHQRWGN3QR2UhbaPTtk+IO2db1XR8X0=;\n b=Dwz/id1dZ6R41UAk1Yg4SQSDIIWAkav5NXfvPEha/w/mdM6g5VzRLZPUVw5g5wwjbe\n SDIE7R4NWDa0gkic58uws/UH2RB8+aSG7uyYei+ttq05Ne4tToy1tPySpkqk0ZRyBDhl\n fuN5zTBoiICQDxqDDWKyH4WUB0P+mVhkUDmTsarDLDpGvUHyaPHQAnMZL98b7lymTlTa\n dzvAtV2ulMz1VFWD1AkV2XgTM0gsC1MRtLaXZaAz/UrsryTX5x1CSFkGnNyTb8htbcBh\n LjcvdvR2JOq4wgOS/pSnundT+aGk9sfepcolsbkdAf/46Q4OItIvSpqoMHpqPoG6SHSS\n sKIg==", "X-Gm-Message-State": "AOJu0Yzrv2iUZFHjSekr5HuPcHxkqZ+KRh56XLhf4W0r7aBEHgaejTY0\n /0D75Zm3bXdP39b5H/Nut2xisN1ebOS1zy3tTaFd9ntYaJXYM2fZCiHxAjj5dI8dmSVZrq+jCI0\n oQNw=", "X-Gm-Gg": "ASbGncupDFD+UyHgunB+g08SOuaqidUGwE7Y5Kv8JbQr2vWOvXUyPn4wTw1ylNHHAax\n qDWl1IdPFUPp+0vyFDJ1r5g4fW6XBXCfg3AR4+OTUXvy4ARILVllxPVSa87vOrYWRCqNlpUIpPI\n 2oIyQeq/eJiIJNbRljUd6Rm/qyoInRyCkyS6ExWDMYqj9Bm4Zu2CzIVbgkUzjTOjlNO/IavBDLF\n r28HCIjMV2H1APyrEMJtLZyLBqlxkjbvm21NxIyPKrjCes3LRtSQLF3ECZZOwSdBJOFrdVul7on\n eTnQUsu44plBAPTBVwSOcdtLriv3hhk7fiYhDLKU2NkdXqkz", "X-Google-Smtp-Source": "\n AGHT+IFAJbmh5Q7UmIXvOV5s0EhWJ/9Lz7yGVgAWDZJousRd7NpyS6G8lcCxv5qmB6bf6KwWYh1YzQ==", "X-Received": "by 2002:a05:600c:4e47:b0:43c:f895:cb4e with SMTP id\n 5b1f17b1804b1-4405a0313cfmr5825295e9.17.1744751914622;\n Tue, 15 Apr 2025 14:18:34 -0700 (PDT)", "From": "Jerome Forissier <jerome.forissier@linaro.org>", "To": "U-Boot mailing list <u-boot@lists.denx.de>", "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Simon Glass <sjg@chromium.org>, Adriano Cordova <adrianox@gmail.com>,\n Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Tom Rini <trini@konsulko.com>", "Subject": "[PATCH v2 07/11] net: ping: make do_ping() available via <net.h>", "Date": "Tue, 15 Apr 2025 23:17:42 +0200", "Message-ID": "<20250415211819.1254435-8-jerome.forissier@linaro.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20250415211819.1254435-1-jerome.forissier@linaro.org>", "References": "<20250415211819.1254435-1-jerome.forissier@linaro.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Make the do_ping() function in cmd/net.c a global one by getting rid of\nthe static qualifier, and move the prototype declaration from net-lwip.h\nto net-common.h. This makes the function available to other parts of\nU-Boot when CONFIG_NET=y, as was already the case when\nCONFIG_NET_LWIP=y.\n\nThis is a peparation step to make the sandbox tests use a common API\nbetween NET and NET_LWIP.\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\nReviewed-by: Simon Glass <sjg@chromium.org>\n---\n\n(no changes since v1)\n\n cmd/net.c | 3 +--\n include/net-common.h | 12 ++++++++++++\n include/net-lwip.h | 1 -\n 3 files changed, 13 insertions(+), 3 deletions(-)", "diff": "diff --git a/cmd/net.c b/cmd/net.c\nindex 79525f73a51..eaa1de5295f 100644\n--- a/cmd/net.c\n+++ b/cmd/net.c\n@@ -456,8 +456,7 @@ static int netboot_common(enum proto_t proto, struct cmd_tbl *cmdtp, int argc,\n }\n \n #if defined(CONFIG_CMD_PING)\n-static int do_ping(struct cmd_tbl *cmdtp, int flag, int argc,\n-\t\t char *const argv[])\n+int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])\n {\n \tif (argc < 2)\n \t\treturn CMD_RET_USAGE;\ndiff --git a/include/net-common.h b/include/net-common.h\nindex 0b7edd7d76b..e536968a92b 100644\n--- a/include/net-common.h\n+++ b/include/net-common.h\n@@ -493,6 +493,18 @@ int net_loop(enum proto_t protocol);\n */\n int dhcp_run(ulong addr, const char *fname, bool autoload);\n \n+\n+/**\n+ * do_ping - Run the ping command\n+ *\n+ * @cmdtp: Unused\n+ * @flag: Command flags (CMD_FLAG_...)\n+ * @argc: Number of arguments\n+ * @argv: List of arguments\n+ * Return: result (see enum command_ret_t)\n+ */\n+int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);\n+\n /**\n * do_tftpb - Run the tftpboot command\n *\ndiff --git a/include/net-lwip.h b/include/net-lwip.h\nindex 0d3bb8a8bd8..b762956e8fd 100644\n--- a/include/net-lwip.h\n+++ b/include/net-lwip.h\n@@ -34,7 +34,6 @@ bool wget_validate_uri(char *uri);\n \n int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);\n int do_dns(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);\n-int do_ping(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);\n int do_wget(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);\n \n #endif /* __NET_LWIP_H__ */\n", "prefixes": [ "v2", "07/11" ] }