{"id":2219083,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2219083/?format=json","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/1.0/projects/59/?format=json","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":""},"msgid":"<20260402121356.31266-18-chrubis@suse.cz>","date":"2026-04-02T12:13:56","name":"[17/17] doc: metadata: Remove needs_drivers from docs","commit_ref":null,"pull_url":null,"state":"needs-review-ack","archived":false,"hash":"0f21508de4a20f261a550066248ac03153514b70","submitter":{"id":8530,"url":"http://patchwork.ozlabs.org/api/1.0/people/8530/?format=json","name":"Cyril Hrubis","email":"chrubis@suse.cz"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ltp/patch/20260402121356.31266-18-chrubis@suse.cz/mbox/","series":[{"id":498474,"url":"http://patchwork.ozlabs.org/api/1.0/series/498474/?format=json","date":"2026-04-02T12:13:40","name":"Replace needs_drivers with needs_kconfigs","version":1,"mbox":"http://patchwork.ozlabs.org/series/498474/mbox/"}],"check":"success","checks":"http://patchwork.ozlabs.org/api/patches/2219083/checks/","tags":{},"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\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=S2Qocrnz;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=7bPX0pl7;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=0nDQ57Hb;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=ClLOMKO2;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out1.suse.de;\n dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=0nDQ57Hb;\n dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=ClLOMKO2"],"Received":["from picard.linux.it (picard.linux.it [213.254.12.146])\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 4fmgs06jW4z1yGH\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 23:19:32 +1100 (AEDT)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id D67F13C0322\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  2 Apr 2026 14:19:30 +0200 (CEST)","from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::3])\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 C05823E2A19\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 14:14:39 +0200 (CEST)","from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-3.smtp.seeweb.it (Postfix) with ESMTPS id BCE7D1A01122\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 14:14:38 +0200 (CEST)","from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id E83D84D337\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 12:14:33 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id DA4334A0B0\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 12:14:33 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id k7+ENKldzmkADwAAD6G6ig\n (envelope-from <chrubis@suse.cz>)\n for <ltp@lists.linux.it>; Thu, 02 Apr 2026 12:14:33 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1775132074; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=q/LPG0Rl9ZnLxKtHDOHL7nykSer+yjpvuPhXpKZNHbw=;\n b=S2Qocrnz8fQ5wyIcpMyPd1mP7qZcVmhap7exePcQc8z7XBVmNF3S16L4/+U7BoYGLArqKm\n JzJX8307sq4ftvKF/lb9kcl+K4a/qLusg1K/YJMHl+nfns+OEk4V7tnVyczUZ3IeSAX8L6\n FEZgRD2NffJ4TnLnCLqEP3GRzmufKJU=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1775132074;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=q/LPG0Rl9ZnLxKtHDOHL7nykSer+yjpvuPhXpKZNHbw=;\n b=7bPX0pl7xHqIvV09u/Dg6TBV4vn4ycovtZFjnUQ0Y+S8SejS/mELXbwMOx817RxC6hLjVm\n 6SI65DWc8M+G41AA==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1775132073; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=q/LPG0Rl9ZnLxKtHDOHL7nykSer+yjpvuPhXpKZNHbw=;\n b=0nDQ57HbRP3Fmb+m9UsvG6LcS147832uoe7ZtaHwyiKdDJc5yQw9z3jaVjvqX+R2sDda7i\n 5hHQmIQK7DQ7H9XoP+zuHoscEGDTedpq5CjC1Wm3fBjZHmBLHbuZo40usf1kzaxgqSXCyZ\n G6fbRxZMKWXC1qhPWYhEHd+llhkpMlo=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1775132073;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=q/LPG0Rl9ZnLxKtHDOHL7nykSer+yjpvuPhXpKZNHbw=;\n b=ClLOMKO2Feu1/2JOyQp0jGIdWhmsgWG8i3OLi5Fu5mSYTNpa5zQZFn5xXHomQViD48chbH\n UDeNWMNaQafenVDA=="],"From":"Cyril Hrubis <chrubis@suse.cz>","To":"ltp@lists.linux.it","Date":"Thu,  2 Apr 2026 14:13:56 +0200","Message-ID":"<20260402121356.31266-18-chrubis@suse.cz>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20260402121356.31266-1-chrubis@suse.cz>","References":"<20260402121356.31266-1-chrubis@suse.cz>","MIME-Version":"1.0","X-Spamd-Result":"default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];\n R_MISSING_CHARSET(0.50)[];\n R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MX_GOOD(-0.01)[]; MIME_TRACE(0.00)[0:+];\n TO_MATCH_ENVRCPT_ALL(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[];\n DKIM_TRACE(0.00)[suse.cz:+]; RCVD_COUNT_TWO(0.00)[2];\n FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[];\n SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n TO_DN_NONE(0.00)[];\n RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n PREVIOUSLY_DELIVERED(0.00)[ltp@lists.linux.it];\n RCVD_VIA_SMTP_AUTH(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,\n imap1.dmz-prg2.suse.org:rdns, suse.cz:mid, suse.cz:dkim, suse.cz:email]","X-Rspamd-Action":"no action","X-Spam-Score":"-3.01","X-Spam-Level":"","X-Rspamd-Server":"rspamd1.dmz-prg2.suse.org","X-Rspamd-Queue-Id":"E83D84D337","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-3.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-3.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"[LTP] [PATCH 17/17] doc: metadata: Remove needs_drivers from docs","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":"Signed-off-by: Cyril Hrubis <chrubis@suse.cz>\n---\n doc/developers/writing_tests.rst |  3 ---\n doc/old/C-Test-API.asciidoc      | 13 ++++++-------\n metadata/README.md               | 15 ++++++---------\n 3 files changed, 12 insertions(+), 19 deletions(-)","diff":"diff --git a/doc/developers/writing_tests.rst b/doc/developers/writing_tests.rst\nindex 992374f8b..5b1516ba5 100644\n--- a/doc/developers/writing_tests.rst\n+++ b/doc/developers/writing_tests.rst\n@@ -435,9 +435,6 @@ LTP C And Shell Test API Comparison\n     * - .needs_device\n       - TST_NEEDS_DEVICE\n \n-    * - .needs_drivers\n-      - TST_NEEDS_DRIVERS\n-\n     * - .needs_kconfigs\n       - TST_NEEDS_KCONFIGS\n \ndiff --git a/doc/old/C-Test-API.asciidoc b/doc/old/C-Test-API.asciidoc\nindex 72fd2731d..7493fc578 100644\n--- a/doc/old/C-Test-API.asciidoc\n+++ b/doc/old/C-Test-API.asciidoc\n@@ -1621,13 +1621,12 @@ test should include 'tst_checksum.h' header, then can call 'tst_crc32c()'.\n 1.26 Checking kernel for the driver support\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-Some tests may need specific kernel drivers, either compiled in, or built\n-as a module. If '.needs_drivers' points to a 'NULL' terminated array of kernel\n-module names these are all checked and the test exits with 'TCONF' on the\n-first missing driver.\n-\n-The detection is based on reading 'modules.dep' and 'modules.builtin' files\n-generated by kmod. The check is skipped on Android.\n+Some tests may need specific kernel drivers, either compiled in, or built as a\n+module. For this cases a mappping of kernel config options to modules is\n+maintained in the kconfig checker. When a kernel config option is requested by\n+a test that has associated mapping in the kconfig source the 'modules.dep' file\n+is checked for module presence when the option is set to 'm'. The check is\n+skipped on Android.\n \n 1.27 Saving & restoring /proc|sys values\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ndiff --git a/metadata/README.md b/metadata/README.md\nindex 2cf978d39..950e49f6e 100644\n--- a/metadata/README.md\n+++ b/metadata/README.md\n@@ -144,15 +144,14 @@ struct tst_test test = {\n \t/* Indicates that the test is messing with system wall clock */\n \t.restore_wallclock = 1,\n \n-\t/* Tests needs uinput either compiled in or loaded as a module */\n-\t.needs_drivers = (const char *[]) {\n-\t\t\"uinput\",\n-\t\tNULL\n-\t},\n-\n \t/* Tests needs enabled kernel config flags */\n \t.needs_kconfigs = (const char *[]) {\n \t\t\"CONFIG_X86_INTEL_UMIP=y\",\n+        /*\n+         * For config options that enable modules we also check the presence of\n+         * the module if the config option has module mapping set and is set to 'm'.\n+         */\n+        \"CONFIG_INPUT_UINPUT\",\n \t\tNULL\n \t},\n \n@@ -185,11 +184,9 @@ Which will yield following JSON output:\n   \"dev_min_size\": \"1024\",\n   \"dev_fs_type\": \"ext4\",\n   \"restore_wallclock\": \"1\",\n-  \"needs_drivers\": [\n-    \"uinput\",\n-  ],\n   \"needs_kconfigs\": [\n     \"CONFIG_X86_INTEL_UMIP=y\",\n+    \"CONFIG_INPUT_UINPUT\",\n   ],\n   \"tags\": [\n     [\n","prefixes":["17/17"]}