From patchwork Tue Nov 3 19:13:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1393343 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CQfcp5q4Jz9sRR for ; Wed, 4 Nov 2020 06:15:22 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 317763C5471 for ; Tue, 3 Nov 2020 20:15:20 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) by picard.linux.it (Postfix) with ESMTP id 0BA723C301F for ; Tue, 3 Nov 2020 20:13:41 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by in-5.smtp.seeweb.it (Postfix) with ESMTP id 32B906009F3 for ; Tue, 3 Nov 2020 20:13:41 +0100 (CET) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B8759AF37; Tue, 3 Nov 2020 19:13:40 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Date: Tue, 3 Nov 2020 20:13:22 +0100 Message-Id: <20201103191327.11081-7-pvorel@suse.cz> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201103191327.11081-1-pvorel@suse.cz> References: <20201103191327.11081-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH v2 06/11] syscalls: Move needs_drivers inside of the tst_test struct 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: , Cc: automated-testing@yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" From: Cyril Hrubis Signed-off-by: Cyril Hrubis Signed-off-by: Petr Vorel --- testcases/kernel/syscalls/fsetxattr/fsetxattr02.c | 10 ++++------ testcases/kernel/syscalls/ioctl/ioctl08.c | 9 ++++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/testcases/kernel/syscalls/fsetxattr/fsetxattr02.c b/testcases/kernel/syscalls/fsetxattr/fsetxattr02.c index 205e80c95..3aea4b59e 100644 --- a/testcases/kernel/syscalls/fsetxattr/fsetxattr02.c +++ b/testcases/kernel/syscalls/fsetxattr/fsetxattr02.c @@ -241,11 +241,6 @@ static void cleanup(void) } } -static const char *const needed_drivers[] = { - "brd", - NULL, -}; - static struct tst_test test = { .setup = setup, .test = verify_fsetxattr, @@ -254,7 +249,10 @@ static struct tst_test test = { .needs_devfs = 1, .mntpoint = MNTPOINT, .needs_root = 1, - .needs_drivers = needed_drivers, + .needs_drivers = (const char *const[]) { + "brd", + NULL, + }, }; #else /* HAVE_SYS_XATTR_H */ diff --git a/testcases/kernel/syscalls/ioctl/ioctl08.c b/testcases/kernel/syscalls/ioctl/ioctl08.c index dca898a65..f7d11815d 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl08.c +++ b/testcases/kernel/syscalls/ioctl/ioctl08.c @@ -112,10 +112,6 @@ static void setup(void) sizeof(struct file_dedupe_range_info)); } -static const char *const needed_drivers[] = { - "btrfs", - NULL, -}; static struct tst_test test = { .test = verify_ioctl, @@ -127,7 +123,10 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MNTPOINT, .dev_fs_type = "btrfs", - .needs_drivers = needed_drivers, + .needs_drivers = (const char *const[]) { + "btrfs", + NULL, + }, }; #else TST_TEST_TCONF(