From 6169170141c7aa03ac47b83eae72b705f5c448b8 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 30 May 2026 15:59:41 +0200 Subject: [PATCH] fio: fix build with musl Backport the upstream fix. Signed-off-by: Max Krummenacher Signed-off-by: Khem Raj --- ...inux-prctl.h-include-to-fix-musl-con.patch | 33 +++++++++++++++++++ meta-oe/recipes-benchmark/fio/fio_3.42.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-benchmark/fio/fio/0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch diff --git a/meta-oe/recipes-benchmark/fio/fio/0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch b/meta-oe/recipes-benchmark/fio/fio/0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch new file mode 100644 index 0000000000..9019e06f26 --- /dev/null +++ b/meta-oe/recipes-benchmark/fio/fio/0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch @@ -0,0 +1,33 @@ +From 82688fff1241549177ed4d55c27c93117d738947 Mon Sep 17 00:00:00 2001 +From: Lucas Hecht +Date: Tue, 26 May 2026 18:49:48 +0200 +Subject: [PATCH] backend: remove linux/prctl.h include to fix musl conflict + +Building with musl fails due to a duplicate definition of prctl_mm_map. +This is because musl redefines linux/prctl.h in sys/prctl.h. + +This commit removes the linux/prctl.h include. + +Fixes: #2096 + +Upstream-Status: Backport [a84eece62edd46c1f4c8047f1052ac6181fc8b3e] +Signed-off-by: Lucas Hecht +--- + backend.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/backend.c b/backend.c +index 230d7fd07965..cfc411531818 100644 +--- a/backend.c ++++ b/backend.c +@@ -32,7 +32,6 @@ + #include + + #ifdef CONFIG_LINUX +-#include + #include + #endif + +-- +2.51.0 + diff --git a/meta-oe/recipes-benchmark/fio/fio_3.42.bb b/meta-oe/recipes-benchmark/fio/fio_3.42.bb index dac7548d08..966ae644b4 100644 --- a/meta-oe/recipes-benchmark/fio/fio_3.42.bb +++ b/meta-oe/recipes-benchmark/fio/fio_3.42.bb @@ -24,6 +24,7 @@ PACKAGECONFIG[numa] = ",--disable-numa,numactl" SRC_URI = " \ git://git.kernel.dk/fio.git;branch=master;tag=${BP} \ + file://0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch \ " SRCREV = "ab77643023f5d7e3c1b71a7576a564f368bf577a"