Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2115302/?format=api
{ "id": 2115302, "url": "http://patchwork.ozlabs.org/api/patches/2115302/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250724152641.142876-1-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": "<20250724152641.142876-1-jerome.forissier@linaro.org>", "list_archive_url": null, "date": "2025-07-24T15:26:35", "name": "lwip: provide a sntp_format_time() function", "commit_ref": "71056afe2094b5a6fad4a2dd940252d1def55e7e", "pull_url": null, "state": "accepted", "archived": false, "hash": "2bf10ab92cf66311c4ef208e7bbc47fc766de1b8", "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/20250724152641.142876-1-jerome.forissier@linaro.org/mbox/", "series": [ { "id": 466565, "url": "http://patchwork.ozlabs.org/api/series/466565/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=466565", "date": "2025-07-24T15:26:35", "name": "lwip: provide a sntp_format_time() function", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/466565/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2115302/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2115302/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=ms2U3Cxj;\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=\"ms2U3Cxj\";\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 4bnvyp75nsz1xtg\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 25 Jul 2025 01:28:02 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 113AD83894;\n\tThu, 24 Jul 2025 17:28:10 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 5EE75838C2; Thu, 24 Jul 2025 17:28:09 +0200 (CEST)", "from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n [IPv6:2a00:1450:4864:20::331])\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 1AA9E83844\n for <u-boot@lists.denx.de>; Thu, 24 Jul 2025 17:28:07 +0200 (CEST)", "by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-45634205adaso5706085e9.2\n for <u-boot@lists.denx.de>; Thu, 24 Jul 2025 08:28:07 -0700 (PDT)", "from builder.. ([2a01:e0a:3cb:7bb0:bcf7:2df7:a82:bef9])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4587054ef47sm23702465e9.8.2025.07.24.08.28.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 24 Jul 2025 08:28:05 -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=1753370886; x=1753975686; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=IX34KDKLhtuufFLkdoV8zstTSLFDlMYpIe6PFTpvOOs=;\n b=ms2U3CxjcXjixZXp3jbhYu5k65yNfEG//7OqG5qXsrTKQg2r7Bkn42nCml0x+DThob\n +8yU2vlZuUScojg2jdKeem7CaqBh+B+gBYkMb2pN9LKn3gL6jz8Gyn/aGfksLHts/P+T\n moUn9VyZ1gNfOAsZEawowUanthEHygRzxUyEVXgHMZlmJKoEsWdgq1mg4SuGr25EGzr7\n l8p1t0zzSSGsFm8N2Yl1nRP+qv9JBfgormuEoT+tmUOeMXZdUtF4OIg+9a0IjXEHYx09\n i+5YNkzTkLCFfvM3Rqk2mz1g7mldRxiu+Lcx4DPQ9kNYdxZ6HeLaLozQ68+uhSsK6Ifi\n fyBQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1753370886; x=1753975686;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=IX34KDKLhtuufFLkdoV8zstTSLFDlMYpIe6PFTpvOOs=;\n b=hCDV4iDSgMSTUvZEqSK/U9UC+Idn5SsPVNjOkxceWBfk/tPG71mWfn/Qm1Gq4PQ8QP\n NT/ux00p+xiF4YpspBckv2uxEmeulHEG5xMRWHiWOyQVvjLHOC5w+MTYKVHk5AuNjjm5\n mSULYUYrb8LOXi1OgTtrP7cpMlqimL1Bfi7kezBaEtfmqJOnuNIZWk2gBFvJ9y4veR4G\n QIE/L7XF+kayNQdYh+mWYABIb1ERpk5PV20aH/+cTtwZMDZnumbOBp12t4oQ5gCFXuLq\n XDbv2UbN3/t9g2DnXfFTW3D53wPX1n6qtaKbkmq41PrkMi4uJ733fXczodroUbI1C9Ng\n MTdg==", "X-Gm-Message-State": "AOJu0Yytk19IP5mA+lKtxnxFCpZ2u2LtfCAdCxxnRPSdovUvVlt9Gl2C\n 4OW8wVpwkboP6r4VTTCYO514qB28PwSi2ze7g6EcyVNeoLRCSjtWMvtfK8m3YaKEx1bgf2UaHZa\n bDAQvcoU=", "X-Gm-Gg": "ASbGnctG1UpYI6jMTTTbHQ+2FEpsXslXelNk3YTRAwcywKgGhP3SQ8Tvy3Vl/YKWyRd\n o+Ug9iRutG2Fdi1pgdvwKtPogPfaUBjqhRimZoXwYWPqG4hFUK0v8uotYSoffQRuuxWOBzqjjpv\n nHvx6tgkJK/bG21oMKmmtoyBsGlboTLyk21sHWLub+hyFPNVl8NrJfo7Z6xXwropH0P7Kugc39H\n 7Da/lRPggDYhsoG7UtK/8d8MZWNRiqP37591Y/N6YtHndSGw+2tDx4ObpDvv5rPIMMvX6sAuANR\n tvkQnXlbphn6O3VJcI6mlRiBroakW8QjuQXcwC3KdRZ9p7/ci04yTU1xQeC1SSqGsXQxPKnSIA/\n AcqcNcZzJwSSig5VaWPMDluL3HETYmQ==", "X-Google-Smtp-Source": "\n AGHT+IFcZy4HWH1ZqqBJOfJnRDyDcYynO7Jg3SnvSpTkrQLYvemPQA8PTqhYwWiJqPjbU4XRZxzsgg==", "X-Received": "by 2002:a05:6000:4304:b0:3b6:a799:4809 with SMTP id\n ffacd0b85a97d-3b768f1e504mr7130068f8f.31.1753370886187;\n Thu, 24 Jul 2025 08:28:06 -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 Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Tom Rini <trini@konsulko.com>", "Subject": "[PATCH] lwip: provide a sntp_format_time() function", "Date": "Thu, 24 Jul 2025 17:26:35 +0200", "Message-ID": "<20250724152641.142876-1-jerome.forissier@linaro.org>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "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": "Provide a trivial implementation of sntp_format_time() to fix a build\nerror when CONFIG_LWIP_DEBUG=y:\n\nlib/lwip/lwip/src/apps/sntp/sntp.c: In function ‘sntp_format_time’:\nlib/lwip/lwip/src/apps/sntp/sntp.c:283:10: error: implicit declaration of function ‘ctime’ [-Werror=implicit-function-declaration]\n 283 | return ctime(&ut);\n | ^~~~~\n\nSigned-off-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\n\n lib/lwip/u-boot/arch/cc.h | 9 +++++++++\n 1 file changed, 9 insertions(+)", "diff": "diff --git a/lib/lwip/u-boot/arch/cc.h b/lib/lwip/u-boot/arch/cc.h\nindex f91127ac565..04ab94d6b70 100644\n--- a/lib/lwip/u-boot/arch/cc.h\n+++ b/lib/lwip/u-boot/arch/cc.h\n@@ -47,4 +47,13 @@\n void sntp_set_system_time(uint32_t sec);\n #define SNTP_SET_SYSTEM_TIME(sec) sntp_set_system_time(sec)\n \n+static inline const char *sntp_format_time(time_t t)\n+{\n+\tstatic char buf[29]; /* \"(time_t)\" + 20 digits max + \\0 */\n+\n+\tsnprintf(buf, sizeof(buf), \"(time_t)%llu\", t);\n+\treturn buf;\n+}\n+\n+#define sntp_format_time sntp_format_time\n #endif /* LWIP_ARCH_CC_H */\n", "prefixes": [] }