From patchwork Mon Sep 2 08:03:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1979558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=COJuuIdF; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=8pKXaB9g; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=COJuuIdF; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=8pKXaB9g; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wy1VG2b4Qz1yXY for ; Mon, 2 Sep 2024 18:03:50 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 5CFEE3C3121 for ; Mon, 2 Sep 2024 10:03:48 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 285103C0CA7 for ; Mon, 2 Sep 2024 10:03:46 +0200 (CEST) Authentication-Results: in-3.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id B9ABC1A00EBA for ; Mon, 2 Sep 2024 10:03:43 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BDE241FB9E; Mon, 2 Sep 2024 08:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1725264222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuM3wIdJSDN0saCiLNlO07vC0P+DFDvwNt+oa1cLosI=; b=COJuuIdFRmwreLx+gmLS9SPRlJ6Xo+paWrElegJ31MeE3yfWiYN9xonIOx7MB/AhOMBkvE ql/eFBktfFtYHs4yA7pFZTGzPADvcmL+yIHkqHVZBudVKD6NgsrAUvC+CKIEs1E97kSoGg PmjBy270ZShE71chSJDLwgZQ1Z1E4QU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1725264222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuM3wIdJSDN0saCiLNlO07vC0P+DFDvwNt+oa1cLosI=; b=8pKXaB9gq3O0cK5Z9R52CiPcXEhOCo+eGxx+nBKIBEvvprL/tYFimKQ0KuefpVCPZL5X37 NmxHrquwccpedGBA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=COJuuIdF; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=8pKXaB9g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1725264222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuM3wIdJSDN0saCiLNlO07vC0P+DFDvwNt+oa1cLosI=; b=COJuuIdFRmwreLx+gmLS9SPRlJ6Xo+paWrElegJ31MeE3yfWiYN9xonIOx7MB/AhOMBkvE ql/eFBktfFtYHs4yA7pFZTGzPADvcmL+yIHkqHVZBudVKD6NgsrAUvC+CKIEs1E97kSoGg PmjBy270ZShE71chSJDLwgZQ1Z1E4QU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1725264222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuM3wIdJSDN0saCiLNlO07vC0P+DFDvwNt+oa1cLosI=; b=8pKXaB9gq3O0cK5Z9R52CiPcXEhOCo+eGxx+nBKIBEvvprL/tYFimKQ0KuefpVCPZL5X37 NmxHrquwccpedGBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 38B2113AE5; Mon, 2 Sep 2024 08:03:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id m4bqDF5x1Wb0OAAAD6G6ig (envelope-from ); Mon, 02 Sep 2024 08:03:42 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Mon, 2 Sep 2024 10:03:29 +0200 Message-ID: <20240902080330.356551-1-pvorel@suse.cz> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: BDE241FB9E X-Spam-Level: X-Spamd-Result: default: False [-3.51 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[suse.cz:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spam-Score: -3.51 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [RFC PATCH 1/1] metaparse: mntpoint implies needs_tmpdir X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Petr Vorel --- I see lib/tst_test.c static int needs_tmpdir(void) { return tst_test->needs_tmpdir || tst_test->needs_device || tst_test->mntpoint || tst_test->resource_files || tst_test->needs_checkpoints; } But 1) It does not detect it. 2) -Warray-bounds is introduced. What am I missing? I originally come to this via https://patchwork.ozlabs.org/project/ltp/patch/20240829114124.30299-1-wegao@suse.com/ (where IMHO .needs_tmpdir = 1 is not needed due .mntpoint) Kind regards, Petr $ cat > foo.c <type = DATA_STRING; | ~~~~~~~~~~~^~~~~~~~~~~~~ data_storage.h:79:34: note: object of size 6 allocated by ‘malloc’ 79 | struct data_node *node = malloc(size); | ^~~~~~~~~~~~ HOSTCC metadata/metaparse "foo": { "fname": ".../foo.c" metadata/metaparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/metadata/metaparse.c b/metadata/metaparse.c index 2384c73c86..24bf0f0968 100644 --- a/metadata/metaparse.c +++ b/metadata/metaparse.c @@ -801,6 +801,7 @@ static struct implies { NULL}}, {"all_filesystems", (const char *[]) {"needs_device", "needs_tmpdir", NULL}}, + {"mntpoint", (const char *[]) {"needs_tmpdir", NULL}}, {"needs_device", (const char *[]) {"needs_tmpdir", NULL}}, {"needs_checkpoints", (const char *[]) {"needs_tmpdir", NULL}}, {"resource_files", (const char *[]) {"needs_tmpdir", NULL}},