[LTP] [COMMITTED] [PATCH] syscalls: open12: Fix metadata export

Cyril Hrubis chrubis@suse.cz
Mon Jun 16 16:33:36 CEST 2025


Setting the .fs_type exilicitly to NULL makes it into the metadata and
later crashes the documentation generator. There is no point in setting
something to NULL in a global variable like this, so let's remove it.

Fixes: 26a59051d940 (open12: Convert to new API)
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---

I've dared to push this in order to fix the documentation build.

 testcases/kernel/syscalls/open/open12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/open/open12.c b/testcases/kernel/syscalls/open/open12.c
index 433eb700b..515e18cb1 100644
--- a/testcases/kernel/syscalls/open/open12.c
+++ b/testcases/kernel/syscalls/open/open12.c
@@ -190,7 +190,7 @@ static struct tst_test test = {
 	.all_filesystems = 1,
 	.mntpoint = MNTPOINT,
 	.filesystems = (struct tst_fs[]){
-		{ .type = NULL, .mnt_flags = MS_STRICTATIME },
+		{ .mnt_flags = MS_STRICTATIME },
 		{}
 	}
 };
-- 
2.49.0



More information about the ltp mailing list