From nobody Fri Oct 31 16:24:40 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95B2E23536B; Fri, 17 Oct 2025 16:24:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718257; cv=none; b=JGq7tIAMqgOKonoRR/eAQvq3lbUkcXo8flwL+A1uVSRtFuaOaiKybo2g/+hzLasdqDlf2d0z6puZ9SW466z7vNS69BkGcM8AHXHK5USXYMDyvYs8kwr8FAWkQBLJOHyAPO/afRtKFPFFPXcO/ZFgpjp9m+KXCOYulNOjAbXbXnY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718257; c=relaxed/simple; bh=sEpXyWc8WPx+wgGW++vXxjuzS6Puz8c7VQa7fhvyQus=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SfL+KNrSOLszrH+Fi7uov93Q1HSyd5oIsq3C4MhQJz0bbZkmdcFPvpEq8q6/Txyyi7vnUuXmzaxXOgQhiLWmyeYFe09UYTjKTUCUlMj/mSg5aZ5X8iEjuDkqqtq0oS4hsAtwEpbs+QStYwRxdU/KT/oiPvXU/+/iLX5/4QliKs0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ljzn0BO8; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ljzn0BO8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50B6EC113D0; Fri, 17 Oct 2025 16:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760718257; bh=sEpXyWc8WPx+wgGW++vXxjuzS6Puz8c7VQa7fhvyQus=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Ljzn0BO8rpBEDzd5EJgDMeLX2YxZIlbHDdBt6q3Xsb8P9nF6E1WeZXwWmDWNv39ut sSUqh7Fi3uLDFMcQEDqGQ1MumVrINjuTv8+HjPvb3y1fFGqeKome0k67AMpnvIsLyi /rusmz7ixcLjPANI4DcH7vFgor+tl7xMfc008bqhKDhpW9ZL8FHbIQQsHBCYpN9U4g FCefp8kR0wK/aNYZtDobiNO/3MqBMKsP3igB07AObjAetGNntRO4DRCUJzDfgjl/Qk wVgsDScWxd/kSlNIBY/aU9DG7+UMASPugj6TnBYS2MiGJMLjFQnMgl/+4hV071FrYR gHjpafY0b3HBA== From: "Matthieu Baerts (NGI0)" Date: Fri, 17 Oct 2025 18:24:00 +0200 Subject: [PATCH 5.15.y 1/3] x86/boot: Compile boot code with -std=gnu11 too Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251017-v5-15-gcc-15-v1-1-da6c065049d7@kernel.org> References: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> In-Reply-To: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> To: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin Cc: MPTCP Upstream , "Matthieu Baerts (NGI0)" , Alexey Dobriyan , Ingo Molnar , "H. Peter Anvin (Intel)" , Nathan Chancellor , Dave Hansen , Ard Biesheuvel X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2817; i=matttbe@kernel.org; h=from:subject:message-id; bh=C8xXiN4qk+ttj1GqxqW+f7yllK4/pnw5yfZZS2EX2Cg=; b=owGbwMvMwCVWo/Th0Gd3rumMp9WSGDI+5a4QTDsvdKHwzJPJwTVGM4qXfPqmUWKZdvGSu93qD aXTvbhUOkpZGMS4GGTFFFmk2yLzZz6v4i3x8rOAmcPKBDKEgYtTACayzJ+RYY5t3E2+2fWTjR9d dlm0V7D+0f79zWodkySXXDP9IbduewEjw3ubYL0Y/dOuu6RKz/Mc7YuaHXPph1XEYd2Z7hNMHp5 5zwkA X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 From: Alexey Dobriyan commit b3bee1e7c3f2b1b77182302c7b2131c804175870 upstream. Use -std=3Dgnu11 for consistency with main kernel code. It doesn't seem to change anything in vmlinux. Signed-off-by: Alexey Dobriyan Signed-off-by: Ingo Molnar Acked-by: H. Peter Anvin (Intel) Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183 [ This kernel version doesn't build with GCC 15: In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from arch/x86/realmode/rm/wakeup.h:11, from arch/x86/realmode/rm/wakemain.c:2: include/linux/stddef.h:11:9: error: cannot use keyword 'false' as enume= ration constant 11 | false =3D 0, | ^~~~~ include/linux/stddef.h:11:9: note: 'false' is a keyword with '-std=3Dc2= 3' onwards include/linux/types.h:30:33: error: 'bool' cannot be defined via 'typed= ef' 30 | typedef _Bool bool; | ^~~~ include/linux/types.h:30:33: note: 'bool' is a keyword with '-std=3Dc23= ' onwards include/linux/types.h:30:1: warning: useless type name in empty declara= tion 30 | typedef _Bool bool; | ^~~~~~~ The fix is similar to commit ee2ab467bddf ("x86/boot: Use '-std=3Dgnu11' to fix build with GCC 15") which has been backported to this kernel. Note: In < 5.18 version, -std=3Dgnu89 is used instead of -std=3Dgnu11, see commit e8c07082a810 ("Kbuild: move to -std=3Dgnu11"). I suggest not to modify that in this commit here as all the other similar fixes to support GCC 15 set -std=3Dgnu11. This can be done in a dedicated commit if needed. ] Signed-off-by: Matthieu Baerts (NGI0) --- Cc: Nathan Chancellor Cc: Dave Hansen Cc: Ard Biesheuvel --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 9c09bbd390ce..d5ee0b920dc0 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -24,7 +24,7 @@ endif =20 # How to compile the 16-bit code. Note we always compile for -march=3Di38= 6; # that way we can complain to the user if the CPU is insufficient. -REALMODE_CFLAGS :=3D -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EX= PORTS \ +REALMODE_CFLAGS :=3D -std=3Dgnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -= D__DISABLE_EXPORTS \ -Wall -Wstrict-prototypes -march=3Di386 -mregparm=3D3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse $(call cc-option,-fcf-protection=3Dnone) --=20 2.51.0 From nobody Fri Oct 31 16:24:40 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79B32258ECF; Fri, 17 Oct 2025 16:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718259; cv=none; b=d7BoBik1hvs8npnGcYyT/X1IAXBiMwN5IJsgPBfZVnL3e95W/jivybfXNhPJHl910YK5HyX2G1f+wQIDH2Zuktx3k6jZZr7dz8plWSY50mT2gjyMlQVwLp7CPHLy1Xg1v3vZek/AA3ABChjtY/NZbULJ94PwKGJbZGGmYJId1as= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718259; c=relaxed/simple; bh=FxvTbdVj+Xc9M5Quj9RApL3wcxBNyj+xn6OtKDDwpMI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PlY5KyqVubvcccA4hp8PvxX4YAUabwa0prKuCo0/zrosafOMqfgbC4s1+rIZ63Yy79DXsWBn3eUm/mD1+0a9VJYd0BzLj22mhla288PQwKnhSg5gQMiJsMgUQpu1aeAXSaVhJaYkdY6T5uKy0TOSZCH0hlIajEItB40IzWME4CI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MWwVLuqX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MWwVLuqX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88158C4CEE7; Fri, 17 Oct 2025 16:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760718259; bh=FxvTbdVj+Xc9M5Quj9RApL3wcxBNyj+xn6OtKDDwpMI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MWwVLuqXcl5OGyovfss2av1vl9fd13QOjmeM7jfyFNtgTm1rmXc2gHVyalqNN7SpO h0Bd+IVmAcK3MK882pa+GU1LiAJfAgq5zQE3R58UDTIwnj0a/swN3zR2mdwyHsVo/d ypL3gSx0STpn15+NxLBVWPSjnCE6k7H8cPerEvj3hh4YAixLdAfLGovcOCPdcz/dTg xD5eCFkRLGZzTo2tv4Bbtw1tHU0skTcCPr3/gNIzjE0t2f/E621IN6DtDN/03pYatm KIPS3yRRKjRoAiZvQI9v/yAaZQJhBOkfOTDSo3yPst+yMSeOF4oQxNVIpQ9uUkzJoS 5xgu2O0/rMrjQ== From: "Matthieu Baerts (NGI0)" Date: Fri, 17 Oct 2025 18:24:01 +0200 Subject: [PATCH 5.15.y 2/3] arch: back to -std=gnu89 in < v5.18 Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251017-v5-15-gcc-15-v1-2-da6c065049d7@kernel.org> References: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> In-Reply-To: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> To: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin Cc: MPTCP Upstream , "Matthieu Baerts (NGI0)" , Nathan Chancellor , Ard Biesheuvel , Alexey Dobriyan , Arnd Bergmann X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=5507; i=matttbe@kernel.org; h=from:subject:message-id; bh=FxvTbdVj+Xc9M5Quj9RApL3wcxBNyj+xn6OtKDDwpMI=; b=owGbwMvMwCVWo/Th0Gd3rumMp9WSGDI+5a78sygj+unSZQvqFma0a87nsL8qwWdyu3DZ7f/Rv etkAw+86yhlYRDjYpAVU2SRbovMn/m8irfEy88CZg4rE8gQBi5OAZjIaSGG/yFvN4U6i7gyavyb 9C2p9+Rxxm+RJ2reevN/OxT9inP+jnBGhgm7z1ee2byzu17pj6AIyw6L57cnCzRNfqsfc2PyvO+ H0jkB X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 Recent fixes have been backported to < v5.18 to fix build issues with GCC 5.15. They all force -std=3Dgnu11 in the CFLAGS, "because [the kernel] requests the gnu11 standard via '-std=3D' in the main Makefile". This is true for >=3D 5.18 versions, but not before. This switch to -std=3Dgnu11 has been done in commit e8c07082a810 ("Kbuild: move to -std=3Dgnu11"). For a question of uniformity, force -std=3Dgnu89, similar to what is done in the main Makefile. Note: the fixes tags below refers to upstream commits, but this fix is only for kernels not having commit e8c07082a810 ("Kbuild: move to -std=3Dgnu11"). Fixes: 7cbb015e2d3d ("parisc: fix building with gcc-15") Fixes: 3b8b80e99376 ("s390: Add '-std=3Dgnu11' to decompressor and purgator= y CFLAGS") Fixes: b3bee1e7c3f2 ("x86/boot: Compile boot code with -std=3Dgnu11 too") Fixes: ee2ab467bddf ("x86/boot: Use '-std=3Dgnu11' to fix build with GCC 15= ") Fixes: 8ba14d9f490a ("efi: libstub: Use '-std=3Dgnu11' to fix build with GC= C 15") Signed-off-by: Matthieu Baerts (NGI0) --- Note: An alternative is to backport commit e8c07082a810 ("Kbuild: move to -std=3Dgnu11"), but I guess we might not want to do that for stable, as it might introduce new warnings. Cc: Nathan Chancellor Cc: Ard Biesheuvel Cc: Alexey Dobriyan Cc: Arnd Bergmann --- arch/parisc/boot/compressed/Makefile | 2 +- arch/s390/Makefile | 2 +- arch/s390/purgatory/Makefile | 2 +- arch/x86/Makefile | 2 +- arch/x86/boot/compressed/Makefile | 2 +- drivers/firmware/efi/libstub/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/parisc/boot/compressed/Makefile b/arch/parisc/boot/compre= ssed/Makefile index 839a13a59f53..3eba999a2eb7 100644 --- a/arch/parisc/boot/compressed/Makefile +++ b/arch/parisc/boot/compressed/Makefile @@ -22,7 +22,7 @@ KBUILD_CFLAGS +=3D -fno-PIE -mno-space-regs -mdisable-fpr= egs -Os ifndef CONFIG_64BIT KBUILD_CFLAGS +=3D -mfast-indirect-calls endif -KBUILD_CFLAGS +=3D -std=3Dgnu11 +KBUILD_CFLAGS +=3D -std=3Dgnu89 =20 OBJECTS +=3D $(obj)/head.o $(obj)/real2.o $(obj)/firmware.o $(obj)/misc.o = $(obj)/piggy.o =20 diff --git a/arch/s390/Makefile b/arch/s390/Makefile index c8071eb82e2e..40265863ed36 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile @@ -23,7 +23,7 @@ endif aflags_dwarf :=3D -Wa,-gdwarf-2 KBUILD_AFLAGS_DECOMPRESSOR :=3D $(CLANG_FLAGS) -m64 -D__ASSEMBLY__ KBUILD_AFLAGS_DECOMPRESSOR +=3D $(if $(CONFIG_DEBUG_INFO),$(aflags_dwarf)) -KBUILD_CFLAGS_DECOMPRESSOR :=3D $(CLANG_FLAGS) -m64 -O2 -std=3Dgnu11 +KBUILD_CFLAGS_DECOMPRESSOR :=3D $(CLANG_FLAGS) -m64 -O2 -std=3Dgnu89 KBUILD_CFLAGS_DECOMPRESSOR +=3D -DDISABLE_BRANCH_PROFILING -D__NO_FORTIFY KBUILD_CFLAGS_DECOMPRESSOR +=3D -fno-delete-null-pointer-checks -msoft-flo= at -mbackchain KBUILD_CFLAGS_DECOMPRESSOR +=3D -fno-asynchronous-unwind-tables diff --git a/arch/s390/purgatory/Makefile b/arch/s390/purgatory/Makefile index 677cbb654024..414ba87e038b 100644 --- a/arch/s390/purgatory/Makefile +++ b/arch/s390/purgatory/Makefile @@ -21,7 +21,7 @@ UBSAN_SANITIZE :=3D n KASAN_SANITIZE :=3D n KCSAN_SANITIZE :=3D n =20 -KBUILD_CFLAGS :=3D -std=3Dgnu11 -fno-strict-aliasing -Wall -Wstrict-protot= ypes +KBUILD_CFLAGS :=3D -std=3Dgnu89 -fno-strict-aliasing -Wall -Wstrict-protot= ypes KBUILD_CFLAGS +=3D -Wno-pointer-sign -Wno-sign-compare KBUILD_CFLAGS +=3D -fno-zero-initialized-in-bss -fno-builtin -ffreestanding KBUILD_CFLAGS +=3D -c -MD -Os -m64 -msoft-float -fno-common diff --git a/arch/x86/Makefile b/arch/x86/Makefile index d5ee0b920dc0..16267e85c5ad 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -24,7 +24,7 @@ endif =20 # How to compile the 16-bit code. Note we always compile for -march=3Di38= 6; # that way we can complain to the user if the CPU is insufficient. -REALMODE_CFLAGS :=3D -std=3Dgnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -= D__DISABLE_EXPORTS \ +REALMODE_CFLAGS :=3D -std=3Dgnu89 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -= D__DISABLE_EXPORTS \ -Wall -Wstrict-prototypes -march=3Di386 -mregparm=3D3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse $(call cc-option,-fcf-protection=3Dnone) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/M= akefile index f82b2cb24360..f54fa1579dcd 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -33,7 +33,7 @@ targets :=3D vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.b= in.bz2 vmlinux.bin.lzma \ # avoid errors with '-march=3Di386', and future flags may depend on the ta= rget to # be valid. KBUILD_CFLAGS :=3D -m$(BITS) -O2 $(CLANG_FLAGS) -KBUILD_CFLAGS +=3D -std=3Dgnu11 +KBUILD_CFLAGS +=3D -std=3Dgnu89 KBUILD_CFLAGS +=3D -fno-strict-aliasing -fPIE KBUILD_CFLAGS +=3D -Wundef KBUILD_CFLAGS +=3D -DDISABLE_BRANCH_PROFILING diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/l= ibstub/Makefile index f1a4f0154540..1195c9fb84de 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -7,7 +7,7 @@ # cflags-$(CONFIG_X86_32) :=3D -march=3Di386 cflags-$(CONFIG_X86_64) :=3D -mcmodel=3Dsmall -cflags-$(CONFIG_X86) +=3D -m$(BITS) -D__KERNEL__ -std=3Dgnu11 \ +cflags-$(CONFIG_X86) +=3D -m$(BITS) -D__KERNEL__ -std=3Dgnu89 \ -fPIC -fno-strict-aliasing -mno-red-zone \ -mno-mmx -mno-sse -fshort-wchar \ -Wno-pointer-sign \ --=20 2.51.0 From nobody Fri Oct 31 16:24:40 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C272B29CB4D; Fri, 17 Oct 2025 16:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718261; cv=none; b=ZEd4zvhxTHke0gdReP6leQknfQm8M3QbcJ3RrKDbnJOFY8uIm8F7pqi49lbt5B/UUyuaoDHyJYPMfYwHXwLRP/pTndML0y0FpbuRE0V+mpj2OoVODASRdycYjd0y4+G6ypmC2AIw29TR94IIDEzZ9yMs+E47fkww2SyamHz/aLg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760718261; c=relaxed/simple; bh=S9kaJkor/rZlw8dMKfvpC0oAHSyuGb0zTi6bHr0139k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Qvwse9EY0XWSDh+N//EfsJlVJzAUfdEogKmpSLEiSSLITfXyxeJ2ZNJIDS5ldNocX54W3GJSFa1uYC3dLXMQqVwQZ6/OK+me7fP2cgFp930frCh1p/j00bFtmT0hNKtrqHB84vVsFIsSrJK3cRJT96DTIOYiwvf5icjRdyYaC1c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KRPvPWVJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KRPvPWVJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70487C116C6; Fri, 17 Oct 2025 16:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760718261; bh=S9kaJkor/rZlw8dMKfvpC0oAHSyuGb0zTi6bHr0139k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KRPvPWVJBqaDQiKbRRariiT7qkFWkx4wz6Z4OYwPjmJHdLAx1xJ3AkRTkRG2cfSOc ADOacu8VUM+skKxoeJ8l/VgIPVRD7s8Oc9MjN9+mfj72eWbY7xbs/EPy3dKlZ5B6pz nixcQQKQNPSZP8mBpsmzkTRBGXScjgKwID/XxIAmsYbchIChorSZwTzPfwMDpxIW00 KRx7I/aFFv9yecJr9YPnk/1AZ10e0gEnF5zJEakAqUOx8gp1eR99W1bHPts92xVV8l r9QvAfbgcVxVqjM8ynjGT02oTpPpcPKnErPKvbc64iOdwtMuP4BceeKUD/9dglwsLB NoBa1WnUTFN0A== From: "Matthieu Baerts (NGI0)" Date: Fri, 17 Oct 2025 18:24:02 +0200 Subject: [PATCH 5.15.y 3/3] Revert "docs/process/howto: Replace C89 with C11" Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251017-v5-15-gcc-15-v1-3-da6c065049d7@kernel.org> References: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> In-Reply-To: <20251017-v5-15-gcc-15-v1-0-da6c065049d7@kernel.org> To: stable@vger.kernel.org, Greg Kroah-Hartman , Sasha Levin Cc: MPTCP Upstream , "Matthieu Baerts (NGI0)" , Akira Yokosawa , Arnd Bergmann , Federico Vaga , Alex Shi , Hu Haowen , Tsugikazu Shibata , Jonathan Corbet X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=6984; i=matttbe@kernel.org; h=from:subject:message-id; bh=S9kaJkor/rZlw8dMKfvpC0oAHSyuGb0zTi6bHr0139k=; b=owGbwMvMwCVWo/Th0Gd3rumMp9WSGDI+5a5+tNhT6+8p/T33Vb8G/2g9NpNf9wXD9E3fdiYVr Lr2JXTnxI5SFgYxLgZZMUUW6bbI/JnPq3hLvPwsYOawMoEMYeDiFICJZEYzMrTWTSx4/uCdaJBO xLbde3nEnGTNJM7oiDnwZK8u+Rr/4jYjQ+PMNbUR8mF6Kzd9ae9bN+VITYF4/Y+6nVG/y28JrF7 6nxUA X-Developer-Key: i=matttbe@kernel.org; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 This reverts commit dc52117cd797f71f9686fa0cec91509eb7a9623d. In this kernel version, C89 is still the default ISO standard. The reverted commit was fixing commit e8c07082a810 ("Kbuild: move to -std=3Dgnu11"), introduced in v5.18, and not backported to older versions. It was then not supported to be backported to v5.15. It can then safely be reverted. Fixes: 2f3f53d62307 ("docs/process/howto: Replace C89 with C11") Signed-off-by: Matthieu Baerts (NGI0) --- Cc: Akira Yokosawa Cc: Arnd Bergmann Cc: Federico Vaga Cc: Alex Shi Cc: Hu Haowen Cc: Tsugikazu Shibata Cc: Jonathan Corbet Cc: Greg Kroah-Hartman --- Documentation/process/howto.rst | 2 +- Documentation/translations/it_IT/process/howto.rst | 2 +- Documentation/translations/ja_JP/howto.rst | 2 +- Documentation/translations/ko_KR/howto.rst | 2 +- Documentation/translations/zh_CN/process/howto.rst | 2 +- Documentation/translations/zh_TW/process/howto.rst | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/process/howto.rst b/Documentation/process/howto.= rst index 12a4e7ebcbab..e4beeca57e5f 100644 --- a/Documentation/process/howto.rst +++ b/Documentation/process/howto.rst @@ -36,7 +36,7 @@ experience, the following books are good for, if anything= , reference: - "C: A Reference Manual" by Harbison and Steele [Prentice Hall] =20 The kernel is written using GNU C and the GNU toolchain. While it -adheres to the ISO C11 standard, it uses a number of extensions that are +adheres to the ISO C89 standard, it uses a number of extensions that are not featured in the standard. The kernel is a freestanding C environment, with no reliance on the standard C library, so some portions of the C standard are not supported. Arbitrary long long diff --git a/Documentation/translations/it_IT/process/howto.rst b/Documenta= tion/translations/it_IT/process/howto.rst index d02df35d0f6b..9554368a2ae2 100644 --- a/Documentation/translations/it_IT/process/howto.rst +++ b/Documentation/translations/it_IT/process/howto.rst @@ -44,7 +44,7 @@ altro, utili riferimenti: - "C: A Reference Manual" di Harbison and Steele [Prentice Hall] =20 Il kernel =C3=A8 stato scritto usando GNU C e la toolchain GNU. -Sebbene si attenga allo standard ISO C11, esso utilizza una serie di +Sebbene si attenga allo standard ISO C89, esso utilizza una serie di estensioni che non sono previste in questo standard. Il kernel =C3=A8 un ambiente C indipendente, che non ha alcuna dipendenza dalle librerie C standard, cos=C3=AC alcune parti del C standard non sono supportate. diff --git a/Documentation/translations/ja_JP/howto.rst b/Documentation/tra= nslations/ja_JP/howto.rst index 6a00e43868a2..d667f9d8a02a 100644 --- a/Documentation/translations/ja_JP/howto.rst +++ b/Documentation/translations/ja_JP/howto.rst @@ -65,7 +65,7 @@ Linux =E3=82=AB=E3=83=BC=E3=83=8D=E3=83=AB=E9=96=8B=E7=99= =BA=E3=81=AE=E3=82=84=E3=82=8A=E6=96=B9 - =E3=80=8E=E6=96=B0=E3=83=BB=E8=A9=B3=E8=AA=AC C =E8=A8=80=E8=AA=9E H&S = =E3=83=AA=E3=83=95=E3=82=A1=E3=83=AC=E3=83=B3=E3=82=B9=E3=80=8F (=E3=82=B5= =E3=83=9F=E3=83=A5=E3=82=A8=E3=83=AB P =E3=83=8F=E3=83=BC=E3=83=93=E3=82=BD= =E3=83=B3/=E3=82=AC=E3=82=A4 L =E3=82=B9=E3=83=86=E3=82=A3=E3=83=BC=E3=83= =AB=E5=85=B1=E8=91=97 =E6=96=89=E8=97=A4 =E4=BF=A1=E7=94=B7=E7=9B=A3=E8=A8= =B3)[=E3=82=BD=E3=83=95=E3=83=88=E3=83=90=E3=83=B3=E3=82=AF] =20 =E3=82=AB=E3=83=BC=E3=83=8D=E3=83=AB=E3=81=AF GNU C =E3=81=A8 GNU =E3=83= =84=E3=83=BC=E3=83=AB=E3=83=81=E3=82=A7=E3=82=A4=E3=83=B3=E3=82=92=E4=BD=BF= =E3=81=A3=E3=81=A6=E6=9B=B8=E3=81=8B=E3=82=8C=E3=81=A6=E3=81=84=E3=81=BE=E3= =81=99=E3=80=82=E3=82=AB=E3=83=BC=E3=83=8D=E3=83=AB -=E3=81=AF ISO C11 =E4=BB=95=E6=A7=98=E3=81=AB=E6=BA=96=E6=8B=A0=E3=81=97= =E3=81=A6=E6=9B=B8=E3=81=8F=E4=B8=80=E6=96=B9=E3=81=A7=E3=80=81=E6=A8=99=E6= =BA=96=E3=81=AB=E3=81=AF=E7=84=A1=E3=81=84=E8=A8=80=E8=AA=9E=E6=8B=A1=E5=BC= =B5=E3=82=92=E5=A4=9A=E3=81=8F=E4=BD=BF=E3=81=A3=E3=81=A6 +=E3=81=AF ISO C89 =E4=BB=95=E6=A7=98=E3=81=AB=E6=BA=96=E6=8B=A0=E3=81=97= =E3=81=A6=E6=9B=B8=E3=81=8F=E4=B8=80=E6=96=B9=E3=81=A7=E3=80=81=E6=A8=99=E6= =BA=96=E3=81=AB=E3=81=AF=E7=84=A1=E3=81=84=E8=A8=80=E8=AA=9E=E6=8B=A1=E5=BC= =B5=E3=82=92=E5=A4=9A=E3=81=8F=E4=BD=BF=E3=81=A3=E3=81=A6 =E3=81=84=E3=81=BE=E3=81=99=E3=80=82=E3=82=AB=E3=83=BC=E3=83=8D=E3=83=AB= =E3=81=AF=E6=A8=99=E6=BA=96 C =E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA= =E3=81=AB=E4=BE=9D=E5=AD=98=E3=81=97=E3=81=AA=E3=81=84=E3=80=81C =E8=A8=80= =E8=AA=9E=E9=9D=9E=E4=BE=9D=E5=AD=98=E7=92=B0=E5=A2=83=E3=81=A7=E3=81=99=E3= =80=82 =E3=81=9D=E3=81=AE=E3=81=9F=E3=82=81=E3=80=81C =E3=81=AE=E6=A8=99=E6=BA=96= =E3=81=AE=E4=B8=AD=E3=81=A7=E4=BD=BF=E3=81=88=E3=81=AA=E3=81=84=E3=82=82=E3= =81=AE=E3=82=82=E3=81=82=E3=82=8A=E3=81=BE=E3=81=99=E3=80=82=E7=89=B9=E3=81= =AB=E4=BB=BB=E6=84=8F=E3=81=AE long long =E3=81=AE=E9=99=A4=E7=AE=97=E3=82=84=E6=B5=AE=E5=8B=95=E5=B0=8F=E6=95=B0= =E7=82=B9=E3=81=AF=E4=BD=BF=E3=81=88=E3=81=BE=E3=81=9B=E3=82=93=E3=80=82=E3= =82=AB=E3=83=BC=E3=83=8D=E3=83=AB=E3=81=8C=E3=83=84=E3=83=BC=E3=83=AB=E3=83= =81=E3=82=A7=E3=82=A4=E3=83=B3=E3=82=84 C =E8=A8=80=E8=AA=9E=E6=8B=A1=E5=BC= =B5 diff --git a/Documentation/translations/ko_KR/howto.rst b/Documentation/tra= nslations/ko_KR/howto.rst index a787d31dcdbf..e3cdf0c84892 100644 --- a/Documentation/translations/ko_KR/howto.rst +++ b/Documentation/translations/ko_KR/howto.rst @@ -62,7 +62,7 @@ Documentation/process/howto.rst - "Practical C Programming" by Steve Oualline [O'Reilly] - "C: A Reference Manual" by Harbison and Steele [Prentice Hall] =20 -=EC=BB=A4=EB=84=90=EC=9D=80 GNU C=EC=99=80 GNU =ED=88=B4=EC=B2=B4=EC=9D=B8= =EC=9D=84 =EC=82=AC=EC=9A=A9=ED=95=98=EC=97=AC =EC=9E=91=EC=84=B1=EB=90=98= =EC=97=88=EB=8B=A4. =EC=9D=B4 =ED=88=B4=EB=93=A4=EC=9D=80 ISO C11 =ED=91=9C= =EC=A4=80=EC=9D=84 +=EC=BB=A4=EB=84=90=EC=9D=80 GNU C=EC=99=80 GNU =ED=88=B4=EC=B2=B4=EC=9D=B8= =EC=9D=84 =EC=82=AC=EC=9A=A9=ED=95=98=EC=97=AC =EC=9E=91=EC=84=B1=EB=90=98= =EC=97=88=EB=8B=A4. =EC=9D=B4 =ED=88=B4=EB=93=A4=EC=9D=80 ISO C89 =ED=91=9C= =EC=A4=80=EC=9D=84 =EB=94=B0=EB=A5=B4=EB=8A=94 =EB=B0=98=EB=A9=B4 =ED=91=9C=EC=A4=80=EC=97=90= =EC=9E=88=EC=A7=80 =EC=95=8A=EC=9D=80 =EB=A7=8E=EC=9D=80 =ED=99=95=EC=9E= =A5=EA=B8=B0=EB=8A=A5=EB=8F=84 =EA=B0=80=EC=A7=80=EA=B3=A0 =EC=9E=88=EB=8B= =A4. =EC=BB=A4=EB=84=90=EC=9D=80 =ED=91=9C=EC=A4=80 C =EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=9F=AC=EB=A6=AC=EC=99=80=EB=8A=94 =EA=B4=80= =EA=B3=84=EC=97=86=EC=9D=B4 freestanding C =ED=99=98=EA=B2=BD=EC=9D=B4=EC= =96=B4=EC=84=9C C =ED=91=9C=EC=A4=80=EC=9D=98 =EC=9D=BC=EB=B6=80=EB=8A=94 =EC=A7=80=EC=9B=90=EB=90=98=EC=A7=80 =EC=95=8A=EB=8A=94=EB=8B=A4. =EC=9E= =84=EC=9D=98=EC=9D=98 long long =EB=82=98=EB=88=84=EA=B8=B0=EB=82=98 floati= ng point=EB=8A=94 =EC=A7=80=EC=9B=90=EB=90=98=EC=A7=80 =EC=95=8A=EB=8A=94= =EB=8B=A4. diff --git a/Documentation/translations/zh_CN/process/howto.rst b/Documenta= tion/translations/zh_CN/process/howto.rst index 2a910e3e904e..ee3dee476d57 100644 --- a/Documentation/translations/zh_CN/process/howto.rst +++ b/Documentation/translations/zh_CN/process/howto.rst @@ -45,7 +45,7 @@ Linux=E5=86=85=E6=A0=B8=E5=A4=A7=E9=83=A8=E5=88=86=E6=98= =AF=E7=94=B1C=E8=AF=AD=E8=A8=80=E5=86=99=E6=88=90=E7=9A=84=EF=BC=8C=E4=B8= =80=E4=BA=9B=E4=BD=93=E7=B3=BB=E7=BB=93=E6=9E=84=E7=9B=B8=E5=85=B3=E7=9A=84= =E4=BB=A3=E7=A0=81 - "C: A Reference Manual" by Harbison and Steele [Prentice Hall] =E3=80=8AC=E8=AF=AD=E8=A8=80=E5=8F=82=E8=80=83=E6=89=8B=E5=86=8C=EF=BC= =88=E5=8E=9F=E4=B9=A6=E7=AC=AC5=E7=89=88=EF=BC=89=E3=80=8B=EF=BC=88=E9=82= =B1=E4=BB=B2=E6=BD=98 =E7=AD=89=E8=AF=91=EF=BC=89[=E6=9C=BA=E6=A2=B0=E5=B7= =A5=E4=B8=9A=E5=87=BA=E7=89=88=E7=A4=BE] =20 -Linux=E5=86=85=E6=A0=B8=E4=BD=BF=E7=94=A8GNU C=E5=92=8CGNU=E5=B7=A5=E5=85= =B7=E9=93=BE=E5=BC=80=E5=8F=91=E3=80=82=E8=99=BD=E7=84=B6=E5=AE=83=E9=81=B5= =E5=BE=AAISO C11=E6=A0=87=E5=87=86=EF=BC=8C=E4=BD=86=E4=B9=9F=E7=94=A8=E5= =88=B0=E4=BA=86=E4=B8=80=E4=BA=9B +Linux=E5=86=85=E6=A0=B8=E4=BD=BF=E7=94=A8GNU C=E5=92=8CGNU=E5=B7=A5=E5=85= =B7=E9=93=BE=E5=BC=80=E5=8F=91=E3=80=82=E8=99=BD=E7=84=B6=E5=AE=83=E9=81=B5= =E5=BE=AAISO C89=E6=A0=87=E5=87=86=EF=BC=8C=E4=BD=86=E4=B9=9F=E7=94=A8=E5= =88=B0=E4=BA=86=E4=B8=80=E4=BA=9B =E6=A0=87=E5=87=86=E4=B8=AD=E6=B2=A1=E6=9C=89=E5=AE=9A=E4=B9=89=E7=9A=84= =E6=89=A9=E5=B1=95=E3=80=82=E5=86=85=E6=A0=B8=E6=98=AF=E8=87=AA=E7=BB=99=E8= =87=AA=E8=B6=B3=E7=9A=84C=E7=8E=AF=E5=A2=83=EF=BC=8C=E4=B8=8D=E4=BE=9D=E8= =B5=96=E4=BA=8E=E6=A0=87=E5=87=86C=E5=BA=93=E7=9A=84=E6=94=AF=E6=8C=81=EF= =BC=8C=E6=89=80=E4=BB=A5 =E5=B9=B6=E4=B8=8D=E6=94=AF=E6=8C=81C=E6=A0=87=E5=87=86=E4=B8=AD=E7=9A=84= =E9=83=A8=E5=88=86=E5=AE=9A=E4=B9=89=E3=80=82=E6=AF=94=E5=A6=82long long=E7= =B1=BB=E5=9E=8B=E7=9A=84=E5=A4=A7=E6=95=B0=E9=99=A4=E6=B3=95=E5=92=8C=E6=B5= =AE=E7=82=B9=E8=BF=90=E7=AE=97=E5=B0=B1=E4=B8=8D=E5=85=81=E8=AE=B8 =E4=BD=BF=E7=94=A8=E3=80=82=E6=9C=89=E6=97=B6=E5=80=99=E7=A1=AE=E5=AE=9E= =E5=BE=88=E9=9A=BE=E5=BC=84=E6=B8=85=E6=A5=9A=E5=86=85=E6=A0=B8=E5=AF=B9=E5= =B7=A5=E5=85=B7=E9=93=BE=E7=9A=84=E8=A6=81=E6=B1=82=E5=92=8C=E5=AE=83=E6=89= =80=E4=BD=BF=E7=94=A8=E7=9A=84=E6=89=A9=E5=B1=95=EF=BC=8C=E4=B8=8D=E5=B9=B8= =E7=9A=84=E6=98=AF=E7=9B=AE diff --git a/Documentation/translations/zh_TW/process/howto.rst b/Documenta= tion/translations/zh_TW/process/howto.rst index ce14d4ed5c5b..2043691b92e3 100644 --- a/Documentation/translations/zh_TW/process/howto.rst +++ b/Documentation/translations/zh_TW/process/howto.rst @@ -48,7 +48,7 @@ Linux=E5=85=A7=E6=A0=B8=E5=A4=A7=E9=83=A8=E5=88=86=E6=98= =AF=E7=94=B1C=E8=AA=9E=E8=A8=80=E5=AF=AB=E6=88=90=E7=9A=84=EF=BC=8C=E4=B8= =80=E4=BA=9B=E9=AB=94=E7=B3=BB=E7=B5=90=E6=A7=8B=E7=9B=B8=E9=97=9C=E7=9A=84= =E4=BB=A3=E7=A2=BC - "C: A Reference Manual" by Harbison and Steele [Prentice Hall] =E3=80=8AC=E8=AA=9E=E8=A8=80=E5=8F=83=E8=80=83=E6=89=8B=E5=86=8A=EF=BC= =88=E5=8E=9F=E6=9B=B8=E7=AC=AC5=E7=89=88=EF=BC=89=E3=80=8B=EF=BC=88=E9=82= =B1=E4=BB=B2=E6=BD=98 =E7=AD=89=E8=AD=AF=EF=BC=89[=E6=A9=9F=E6=A2=B0=E5=B7= =A5=E6=A5=AD=E5=87=BA=E7=89=88=E7=A4=BE] =20 -Linux=E5=85=A7=E6=A0=B8=E4=BD=BF=E7=94=A8GNU C=E5=92=8CGNU=E5=B7=A5=E5=85= =B7=E9=8F=88=E9=96=8B=E7=99=BC=E3=80=82=E9=9B=96=E7=84=B6=E5=AE=83=E9=81=B5= =E5=BE=AAISO C11=E6=A8=99=E6=BA=96=EF=BC=8C=E4=BD=86=E4=B9=9F=E7=94=A8=E5= =88=B0=E4=BA=86=E4=B8=80=E4=BA=9B +Linux=E5=85=A7=E6=A0=B8=E4=BD=BF=E7=94=A8GNU C=E5=92=8CGNU=E5=B7=A5=E5=85= =B7=E9=8F=88=E9=96=8B=E7=99=BC=E3=80=82=E9=9B=96=E7=84=B6=E5=AE=83=E9=81=B5= =E5=BE=AAISO C89=E6=A8=99=E6=BA=96=EF=BC=8C=E4=BD=86=E4=B9=9F=E7=94=A8=E5= =88=B0=E4=BA=86=E4=B8=80=E4=BA=9B =E6=A8=99=E6=BA=96=E4=B8=AD=E6=B2=92=E6=9C=89=E5=AE=9A=E7=BE=A9=E7=9A=84= =E6=93=B4=E5=B1=95=E3=80=82=E5=85=A7=E6=A0=B8=E6=98=AF=E8=87=AA=E7=B5=A6=E8= =87=AA=E8=B6=B3=E7=9A=84C=E7=92=B0=E5=A2=83=EF=BC=8C=E4=B8=8D=E4=BE=9D=E8= =B3=B4=E6=96=BC=E6=A8=99=E6=BA=96C=E5=BA=AB=E7=9A=84=E6=94=AF=E6=8C=81=EF= =BC=8C=E6=89=80=E4=BB=A5 =E4=B8=A6=E4=B8=8D=E6=94=AF=E6=8C=81C=E6=A8=99=E6=BA=96=E4=B8=AD=E7=9A=84= =E9=83=A8=E5=88=86=E5=AE=9A=E7=BE=A9=E3=80=82=E6=AF=94=E5=A6=82long long=E9= =A1=9E=E5=9E=8B=E7=9A=84=E5=A4=A7=E6=95=B8=E9=99=A4=E6=B3=95=E5=92=8C=E6=B5= =AE=E9=BB=9E=E9=81=8B=E7=AE=97=E5=B0=B1=E4=B8=8D=E5=85=81=E8=A8=B1 =E4=BD=BF=E7=94=A8=E3=80=82=E6=9C=89=E6=99=82=E5=80=99=E7=A2=BA=E5=AF=A6= =E5=BE=88=E9=9B=A3=E5=BC=84=E6=B8=85=E6=A5=9A=E5=85=A7=E6=A0=B8=E5=B0=8D=E5= =B7=A5=E5=85=B7=E9=8F=88=E7=9A=84=E8=A6=81=E6=B1=82=E5=92=8C=E5=AE=83=E6=89= =80=E4=BD=BF=E7=94=A8=E7=9A=84=E6=93=B4=E5=B1=95=EF=BC=8C=E4=B8=8D=E5=B9=B8= =E7=9A=84=E6=98=AF=E7=9B=AE --=20 2.51.0