From 53e69721ebacdcba6fade595bf4ec5b433c66304 Mon Sep 17 00:00:00 2001
From: Upgrade Helper <auh@yoctoproject.org>
Date: Mon, 1 Jun 2026 10:43:42 +0000
Subject: [PATCH] ltp: upgrade 20260130 -> 20260529

---
 ...01-Add-__clear_cache-declaration-for-clang.patch |  4 ++--
 .../ltp/0001-Remove-OOM-tests-from-runtest-mm.patch |  2 +-
 ...0001-ltp-fix-build-failure-with-glibc-2.43.patch | 13 +++++++++----
 ...emctl08-Skip-semctl08-when-__USE_TIME64_RE.patch |  6 +++---
 .../ltp/{ltp_20260130.bb => ltp_20260529.bb}        |  2 +-
 5 files changed, 16 insertions(+), 11 deletions(-)
 rename meta/recipes-extended/ltp/{ltp_20260130.bb => ltp_20260529.bb} (99%)

diff --git a/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch b/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch
index 24e8762f77..3c4a344617 100644
--- a/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch
+++ b/meta/recipes-extended/ltp/ltp/0001-Add-__clear_cache-declaration-for-clang.patch
@@ -1,4 +1,4 @@
-From a2ce04cb82d545f3dbab71de7fa55eaad3df3063 Mon Sep 17 00:00:00 2001
+From f8dac751adcb94865e60cdfe1630d85252849fa7 Mon Sep 17 00:00:00 2001
 From: Khem Raj <raj.khem@gmail.com>
 Date: Mon, 10 Jun 2024 22:52:56 -0700
 Subject: [PATCH] Add __clear_cache declaration for clang
@@ -19,7 +19,7 @@ Cc: Hui Min Mina Chou <minachou@andestech.com>
  1 file changed, 1 insertion(+)
 
 diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
-index 1dde9e87b..6a6f5fe5e 100644
+index f2984e2dc..5685bb864 100644
 --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
 +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
 @@ -19,6 +19,7 @@
diff --git a/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch b/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch
index 860b2f127f..58d61cc2f3 100644
--- a/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch
+++ b/meta/recipes-extended/ltp/ltp/0001-Remove-OOM-tests-from-runtest-mm.patch
@@ -1,4 +1,4 @@
-From bb9146dd322af98a7bb96ad0d84ec376589c6cde Mon Sep 17 00:00:00 2001
+From b0b4162f9e7befc009981e1446131fa49e81cd98 Mon Sep 17 00:00:00 2001
 From: "Mingde (Matthew) Zeng" <matthewzmd@gmail.com>
 Date: Wed, 29 Jul 2020 08:47:09 -0400
 Subject: [PATCH] Remove OOM tests from runtest/mm
diff --git a/meta/recipes-extended/ltp/ltp/0001-ltp-fix-build-failure-with-glibc-2.43.patch b/meta/recipes-extended/ltp/ltp/0001-ltp-fix-build-failure-with-glibc-2.43.patch
index 7c78660e3e..974ed4f457 100644
--- a/meta/recipes-extended/ltp/ltp/0001-ltp-fix-build-failure-with-glibc-2.43.patch
+++ b/meta/recipes-extended/ltp/ltp/0001-ltp-fix-build-failure-with-glibc-2.43.patch
@@ -1,4 +1,7 @@
-ltp: fix build failure with glibc 2.43
+From 79f7cfcf695985f5b61828efb16c0c3a4e642a19 Mon Sep 17 00:00:00 2001
+From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+Date: Thu, 12 Mar 2026 09:10:21 -0700
+Subject: [PATCH] ltp: fix build failure with glibc 2.43
 
 glibc 2.43 added native openat2() support for the first time. This
 caused compatibility issues with LTP's internal openat2 definitions
@@ -13,15 +16,18 @@ own internal definitions.this is a workaround until the fix is found.
 Upstream-Status: Pending
 
 Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+---
+ include/lapi/openat2.h | 5 +++++
+ 1 file changed, 5 insertions(+)
 
 diff --git a/include/lapi/openat2.h b/include/lapi/openat2.h
 index 03327bdb7..bd44573c9 100644
 --- a/include/lapi/openat2.h
 +++ b/include/lapi/openat2.h
 @@ -14,6 +14,11 @@
-
+ 
  #include "config.h"
-
+ 
 +/* glibc 2.43 provides openat2 but LTP uses its own syscall wrapper */
 +#ifdef HAVE_OPENAT2
 +#undef HAVE_OPENAT2
@@ -30,4 +36,3 @@ index 03327bdb7..bd44573c9 100644
  #ifndef HAVE_OPENAT2
  /*
   * Arguments for how openat2(2) should open the target path. If only @flags and
-
diff --git a/meta/recipes-extended/ltp/ltp/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch b/meta/recipes-extended/ltp/ltp/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
index 364e203e23..e67bbb8496 100644
--- a/meta/recipes-extended/ltp/ltp/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
+++ b/meta/recipes-extended/ltp/ltp/0001-syscalls-semctl08-Skip-semctl08-when-__USE_TIME64_RE.patch
@@ -1,4 +1,4 @@
-From 09364a758df9d89a0968894376f82f636441addb Mon Sep 17 00:00:00 2001
+From 547bf562359db44cdcb74a6e4eae19d8f07affa4 Mon Sep 17 00:00:00 2001
 From: Jiaying Song <jiaying.song.cn@windriver.com>
 Date: Fri, 23 May 2025 15:17:49 +0800
 Subject: [PATCH] syscalls/semctl08: Skip semctl08 when __USE_TIME64_REDIRECTS
@@ -20,12 +20,12 @@ Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
  1 file changed, 5 insertions(+), 3 deletions(-)
 
 diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl08.c b/testcases/kernel/syscalls/ipc/semctl/semctl08.c
-index f4549adf4..28776f266 100644
+index 083179c92..a98eb35d6 100644
 --- a/testcases/kernel/syscalls/ipc/semctl/semctl08.c
 +++ b/testcases/kernel/syscalls/ipc/semctl/semctl08.c
 @@ -12,7 +12,11 @@
  #include "tst_test.h"
- #include "libnewipc.h"
+ #include "tse_newipc.h"
  
 -#ifdef HAVE_SEMID64_DS_TIME_HIGH
 +#if !defined(HAVE_SEMID64_DS_TIME_HIGH)
diff --git a/meta/recipes-extended/ltp/ltp_20260130.bb b/meta/recipes-extended/ltp/ltp_20260529.bb
similarity index 99%
rename from meta/recipes-extended/ltp/ltp_20260130.bb
rename to meta/recipes-extended/ltp/ltp_20260529.bb
index 4183b5d497..1ee63ca2e0 100644
--- a/meta/recipes-extended/ltp/ltp_20260130.bb
+++ b/meta/recipes-extended/ltp/ltp_20260529.bb
@@ -24,7 +24,7 @@ TUNE_CCARGS:remove:x86-64 = "-mfpmath=sse"
 
 CFLAGS:append:powerpc64 = " -D__SANE_USERSPACE_TYPES__"
 CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
-SRCREV = "6a60ae592cd375f004df0694efc7d50ddae9aa5e"
+SRCREV = "3a64d78f58bdceba93ed321e91215fb969a047ed"
 
 SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \
            file://0001-Remove-OOM-tests-from-runtest-mm.patch \
-- 
2.47.1

