[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251205171010.515236-4-linux@roeck-us.net>
Date: Fri, 5 Dec 2025 09:09:57 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Shuah Khan <shuah@...nel.org>
Cc: Jakub Kicinski <kuba@...nel.org>,
Christian Brauner <brauner@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
Kees Cook <kees@...nel.org>,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
wine-devel@...ehq.org,
netdev@...r.kernel.org,
bpf@...r.kernel.org,
Guenter Roeck <linux@...ck-us.net>,
Aleksa Sarai <cyphar@...har.com>
Subject: [PATCH v2 03/13] selftests/filesystems: fclog: Fix build warnings and errors
Fix
fclog.c:37:21: warning: call to undeclared function 'open'
fclog.c:37:47: error: use of undeclared identifier 'O_RDONLY'; did you mean 'MS_RDONLY'?
fclog.c:37:56: error: use of undeclared identifier 'O_CLOEXEC'
by including fcntl.h.
Fixes: df579e471111b ("selftests/filesystems: add basic fscontext log tests")
Cc: Aleksa Sarai <cyphar@...har.com>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
v2: Update subject and description to reflect that the patch also fixes
build warnings.
tools/testing/selftests/filesystems/fclog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/filesystems/fclog.c b/tools/testing/selftests/filesystems/fclog.c
index 912a8b755c3b..d7cc3aaa8672 100644
--- a/tools/testing/selftests/filesystems/fclog.c
+++ b/tools/testing/selftests/filesystems/fclog.c
@@ -6,6 +6,7 @@
#include <assert.h>
#include <errno.h>
+#include <fcntl.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
--
2.45.2
Powered by blists - more mailing lists