From: Greg Kroah-Hartman Date: Wed, 5 Feb 2025 12:35:19 +0000 (+0100) Subject: drop queue-6.12/selftests-mm-build-with-o2.patch X-Git-Tag: v6.6.76~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d0a00683982331a5b00b6c87df9af3c2eec6385;p=thirdparty%2Fkernel%2Fstable-queue.git drop queue-6.12/selftests-mm-build-with-o2.patch --- 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 index 2f50681dbc..0000000000 --- a/queue-6.12/selftests-mm-build-with-o2.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 46036188ea1f5266df23a6149dea0df1c77cd1c7 Mon Sep 17 00:00:00 2001 -From: Kevin Brodsky -Date: Mon, 9 Dec 2024 09:50:10 +0000 -Subject: selftests/mm: build with -O2 - -From: Kevin Brodsky - -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 -Cc: Aruna Ramakrishna -Cc: Catalin Marinas -Cc: Dave Hansen -Cc: Joey Gouly -Cc: Keith Lucas -Cc: Ryan Roberts -Cc: Shuah Khan -Signed-off-by: Andrew Morton -Signed-off-by: Yifei Liu -Signed-off-by: Greg Kroah-Hartman ---- - 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 - diff --git a/queue-6.12/series b/queue-6.12/series index cc160edcf2..4ecf2d5f76 100644 --- a/queue-6.12/series +++ b/queue-6.12/series @@ -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