Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2225708/?format=api
{ "id": 2225708, "url": "http://patchwork.ozlabs.org/api/patches/2225708/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260421130706.14254-1-wangli.ahau@gmail.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api", "name": "Linux Test Project development", "link_name": "ltp", "list_id": "ltp.lists.linux.it", "list_email": "ltp@lists.linux.it", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260421130706.14254-1-wangli.ahau@gmail.com>", "list_archive_url": null, "date": "2026-04-21T13:07:06", "name": "lib/tst_kconfig: rename runtime_check to config_runtime_map", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "dabc50aa6536aefe45e6c76d000ccfea8f8940cd", "submitter": { "id": 74427, "url": "http://patchwork.ozlabs.org/api/people/74427/?format=api", "name": "Li Wang", "email": "wangli.ahau@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260421130706.14254-1-wangli.ahau@gmail.com/mbox/", "series": [ { "id": 500800, "url": "http://patchwork.ozlabs.org/api/series/500800/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=500800", "date": "2026-04-21T13:07:06", "name": "lib/tst_kconfig: rename runtime_check to config_runtime_map", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500800/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225708/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2225708/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ltp@lists.linux.it" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ltp@picard.linux.it" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ncXmgiRs;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\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 4g0N1Z3ZQYz1yJG\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 23:07:29 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id BFA353E2D97\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 15:07:26 +0200 (CEST)", "from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 883EF3C5376\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 15:07:23 +0200 (CEST)", "from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com\n [IPv6:2607:f8b0:4864:20::52e])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 0EA711400E13\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 15:07:23 +0200 (CEST)", "by mail-pg1-x52e.google.com with SMTP id\n 41be03b00d2f7-c7973bbc16dso2788387a12.0\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 06:07:22 -0700 (PDT)", "from thoundrobot ([43.154.64.180]) by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f8ea02ef7sm12790026b3a.25.2026.04.21.06.07.19\n for <ltp@lists.linux.it>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 06:07:20 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776776841; x=1777381641; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=C0tEyMyD0c+WG7JTQjecXVFNbDhrNUABg5rWe30XZKg=;\n b=ncXmgiRsC65IXr/Po0R/21gN5X4d2ZcO2LUl2R5i/jlnOWW4zmvefuLPz6GXlEc9jF\n D8q7aEhPnYAqHEVwXQAUoz+yN7RBYH2+L0cyTbywz6lVonJZNt3lS31ojdgOkonIkcsE\n zB/Pgf0DfYZ5+bPP/kz2VxF3/vmFOQs3luRXaUCXrvRnj1xR6BkYfBowcAgMEpEpxnxP\n 5zURE0NAiK8ZNYwejWzPo/WL9gRgVcQG47FPI/3pGjTMbeDDSEO+A1w2Iu2BAtgvKfGP\n r/ChRn0LkSGh3jlyHSn+XjUA9OcfXRyHeusjwuGIPvU4RI42aGrFYkwvPkm12MmSOCDI\n 2wgA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776776841; x=1777381641;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=C0tEyMyD0c+WG7JTQjecXVFNbDhrNUABg5rWe30XZKg=;\n b=KZC06iTN10YSUreruybyoIX4wDN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ue, 21 Apr 2026 06:07:21 -0700 (PDT)", "From": "Li Wang <wangli.ahau@gmail.com>", "To": "ltp@lists.linux.it", "Date": "Tue, 21 Apr 2026 21:07:06 +0800", "Message-ID": "<20260421130706.14254-1-wangli.ahau@gmail.com>", "X-Mailer": "git-send-email 2.53.0", "MIME-Version": "1.0", "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-6.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-6.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] lib/tst_kconfig: rename runtime_check to\n config_runtime_map", "X-BeenThere": "ltp@lists.linux.it", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux Test Project <ltp.lists.linux.it>", "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>", "List-Archive": "<http://lists.linux.it/pipermail/ltp/>", "List-Post": "<mailto:ltp@lists.linux.it>", "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>", "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "Rename struct 'runtime_check' to 'config_runtime_map' and\narray 'runtime_checks' to 'config_runtime_maps' to better\nreflect their purpose of mapping kconfig options to runtime\nchecks.\n\nRename function runtime_check to kconfig_runtime_check for\nconsistency with kconfig_module_check().\n\nFollow-up: d7d6512e89 (\"lib: tst_kconfig: Add module presence checks\")\nSigned-off-by: Li Wang <wangli.ahau@gmail.com>\n---\n\nNotes:\n Hi Cyril,\n \n It seems you forgot to add this modification at the top of\n the patchset. So I made it for the name consistency.\n\n lib/tst_kconfig.c | 16 ++++++++--------\n 1 file changed, 8 insertions(+), 8 deletions(-)", "diff": "diff --git a/lib/tst_kconfig.c b/lib/tst_kconfig.c\nindex f4d4a8679..44eacc7c2 100644\n--- a/lib/tst_kconfig.c\n+++ b/lib/tst_kconfig.c\n@@ -112,10 +112,10 @@ static void close_kconfig(FILE *fp)\n \t\tfclose(fp);\n }\n \n-static struct runtime_check {\n+static struct config_runtime_map {\n \tconst char *config;\n \tbool (*runtime_check)(void);\n-} runtime_checks[] = {\n+} config_runtime_maps[] = {\n \t{\"CONFIG_USER_NS\", tst_user_ns_enabled},\n \t{\"CONFIG_NET_NS\", tst_net_ns_enabled},\n \t{\"CONFIG_PID_NS\", tst_pid_ns_enabled},\n@@ -124,17 +124,17 @@ static struct runtime_check {\n \t{}\n };\n \n-static void runtime_check(struct tst_kconfig_var *var)\n+static void kconfig_runtime_check(struct tst_kconfig_var *var)\n {\n \tsize_t i;\n \n-\tfor (i = 0; runtime_checks[i].config; i++) {\n-\t\tif (strcmp(runtime_checks[i].config, var->id))\n+\tfor (i = 0; config_runtime_maps[i].config; i++) {\n+\t\tif (strcmp(config_runtime_maps[i].config, var->id))\n \t\t\tcontinue;\n \n \t\ttst_res(TDEBUG, \"Running runtime check for '%s'\", var->id);\n \n-\t\tif (!runtime_checks[i].runtime_check()) {\n+\t\tif (!config_runtime_maps[i].runtime_check()) {\n \t\t\ttst_res(TINFO,\n \t\t\t\t\"%s=%c present but disabled at runtime\",\n \t\t\t\tvar->id, var->choice);\n@@ -257,11 +257,11 @@ out:\n \t\t\tswitch (val[0]) {\n \t\t\tcase 'y':\n \t\t\t\tvars[i].choice = 'y';\n-\t\t\t\truntime_check(&vars[i]);\n+\t\t\t\tkconfig_runtime_check(&vars[i]);\n \t\t\t\treturn 1;\n \t\t\tcase 'm':\n \t\t\t\tvars[i].choice = 'm';\n-\t\t\t\truntime_check(&vars[i]);\n+\t\t\t\tkconfig_runtime_check(&vars[i]);\n \t\t\t\tkconfig_module_check(&vars[i]);\n \t\t\t\treturn 1;\n \t\t\t}\n", "prefixes": [] }