]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop queue-6.12/selftests-mm-build-with-o2.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2025 12:35:19 +0000 (13:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2025 12:35:19 +0000 (13:35 +0100)
queue-6.12/selftests-mm-build-with-o2.patch [deleted file]
queue-6.12/series

diff --git a/queue-6.12/selftests-mm-build-with-o2.patch b/queue-6.12/selftests-mm-build-with-o2.patch
deleted file mode 100644 (file)
index 2f50681..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-From 46036188ea1f5266df23a6149dea0df1c77cd1c7 Mon Sep 17 00:00:00 2001
-From: Kevin Brodsky <kevin.brodsky@arm.com>
-Date: Mon, 9 Dec 2024 09:50:10 +0000
-Subject: selftests/mm: build with -O2
-
-From: Kevin Brodsky <kevin.brodsky@arm.com>
-
-commit 46036188ea1f5266df23a6149dea0df1c77cd1c7 upstream.
-
-The mm kselftests are currently built with no optimisation (-O0).  It's
-unclear why, and besides being obviously suboptimal, this also prevents
-the pkeys tests from working as intended.  Let's build all the tests with
--O2.
-
-[kevin.brodsky@arm.com: silence unused-result warnings]
-  Link: https://lkml.kernel.org/r/20250107170110.2819685-1-kevin.brodsky@arm.com
-Link: https://lkml.kernel.org/r/20241209095019.1732120-6-kevin.brodsky@arm.com
-Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
-Cc: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
-Cc: Catalin Marinas <catalin.marinas@arm.com>
-Cc: Dave Hansen <dave.hansen@linux.intel.com>
-Cc: Joey Gouly <joey.gouly@arm.com>
-Cc: Keith Lucas <keith.lucas@oracle.com>
-Cc: Ryan Roberts <ryan.roberts@arm.com>
-Cc: Shuah Khan <shuah@kernel.org>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Yifei Liu <yifei.l.liu@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- tools/testing/selftests/mm/Makefile | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
-index f2db43c64f83..0d5d8f2f8652 100644
---- a/tools/testing/selftests/mm/Makefile
-+++ b/tools/testing/selftests/mm/Makefile
-@@ -33,9 +33,16 @@ endif
- # LDLIBS.
- MAKEFLAGS += --no-builtin-rules
--CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES)
-+CFLAGS = -Wall -O2 -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES)
- LDLIBS = -lrt -lpthread -lm
-+# Some distributions (such as Ubuntu) configure GCC so that _FORTIFY_SOURCE is
-+# automatically enabled at -O1 or above. This triggers various unused-result
-+# warnings where functions such as read() or write() are called and their
-+# return value is not checked. Disable _FORTIFY_SOURCE to silence those
-+# warnings.
-+CFLAGS += -U_FORTIFY_SOURCE
-+
- KDIR ?= /lib/modules/$(shell uname -r)/build
- ifneq (,$(wildcard $(KDIR)/Module.symvers))
- ifneq (,$(wildcard $(KDIR)/include/linux/page_frag_cache.h))
--- 
-2.48.1
-
index cc160edcf2e1040502bcbd9e8e068470223dd878..4ecf2d5f7684cda7ea765a8fff97e47f863308ff 100644 (file)
@@ -588,4 +588,3 @@ kvm-x86-plumb-in-the-vcpu-to-kvm_x86_ops.hwapic_isr_update.patch
 memcg-fix-soft-lockup-in-the-oom-process.patch
 loongarch-change-8-to-14-for-loongarch_max_-brp-wrp.patch
 btrfs-do-proper-folio-cleanup-when-run_delalloc_nocow-failed.patch
-selftests-mm-build-with-o2.patch