diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb index 3f991b9b7f..6519b4ee4b 100644 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb @@ -23,7 +23,6 @@ SRC_URI += "file://run-ptest \ file://0001-selftests-filelock-fix-the-test-plan-count-in-ofdloc.patch \ file://0001-selftests-cgroup-memcontrol-keep-anon-page-touches-f.patch \ file://0001-selftests-filesystems-idmapped_tmpfile-chown-the-lay.patch \ - file://0001-selftests-proc-include-fcntl.h-in-proc-pidns.patch \ ${@bb.utils.contains('PACKAGECONFIG', 'mm', '${MM_PATCH}', '', d)} \ " diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-selftests-proc-include-fcntl.h-in-proc-pidns.patch b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-selftests-proc-include-fcntl.h-in-proc-pidns.patch deleted file mode 100644 index b34be8fb49..0000000000 --- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-selftests-proc-include-fcntl.h-in-proc-pidns.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 879b3353d04d043a9e01525c520d9b81339421b2 Mon Sep 17 00:00:00 2001 -From: Amin Vakil -Date: Thu, 18 Jun 2026 18:44:44 +0330 -Subject: [PATCH] selftests: proc: include fcntl.h in proc-pidns - -proc-pidns.c uses open() and O_* flags, but does not include -. This breaks the proc selftests build with errors such as: - - error: implicit declaration of function 'open' - error: 'O_WRONLY' undeclared - error: 'O_CREAT' undeclared - error: 'O_RDONLY' undeclared - -Include to provide the declaration and flag definitions. - -Fixes: 5554d820f71c ("selftests/proc: add tests for new pidns APIs") -Tested with: - make -C tools/testing/selftests TARGETS=proc - -Signed-off-by: Amin Vakil -Link: https://patch.msgid.link/20260618151444.124739-1-info@aminvakil.com -Signed-off-by: Christian Brauner (Amutable) -Upstream-Status: Backport [https://git.kernel.org/torvalds/c/879b3353d04d] -Signed-off-by: Khem Raj ---- - tools/testing/selftests/proc/proc-pidns.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tools/testing/selftests/proc/proc-pidns.c b/tools/testing/selftests/proc/proc-pidns.c -index 25b9a2933c45697..6f7c10fe97b304c 100644 ---- a/tools/testing/selftests/proc/proc-pidns.c -+++ b/tools/testing/selftests/proc/proc-pidns.c -@@ -6,6 +6,7 @@ - - #include - #include -+#include - #include - #include - #include