From: Amit Machhiwal <amachhiw@linux.ibm.com>
To: Michal Suchanek <msuchanek@suse.de>
Cc: linuxppc-dev@lists.ozlabs.org,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Naveen N Rao <naveen@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
Masahiro Yamada <masahiroy@kernel.org>,
linux-kernel@vger.kernel.org,
"Nysal Jan K.A." <nysal@linux.ibm.com>
Subject: Re: [PATCH v3] powerpc/boot: Fix build with gcc 15
Date: Mon, 5 May 2025 17:44:13 +0530 [thread overview]
Message-ID: <20250505174145.5f1837bc-d8-amachhiw@linux.ibm.com> (raw)
In-Reply-To: <20250331105722.19709-1-msuchanek@suse.de>
On 2025/03/31 12:57 PM, Michal Suchanek wrote:
> Similar to x86 the ppc boot code does not build with GCC 15.
>
> Copy the fix from
> commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15")
>
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> ---
> v2: Move the fix outside of ifdef to apply to all subarchitectures
> v3: Change BOOTCFLAGS rather than BOOTTARGETFLAGS
> ---
> arch/powerpc/boot/Makefile | 1 +
> 1 file changed, 1 insertion(+)
Compile-tested this patch with uptream Linux on fc42. This fixes the build
errors with GCC 15. Hence,
Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Thanks,
Amit
> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
> index 184d0680e661..a7ab087d412c 100644
> --- a/arch/powerpc/boot/Makefile
> +++ b/arch/powerpc/boot/Makefile
> @@ -70,6 +70,7 @@ BOOTCPPFLAGS := -nostdinc $(LINUXINCLUDE)
> BOOTCPPFLAGS += -isystem $(shell $(BOOTCC) -print-file-name=include)
>
> BOOTCFLAGS := $(BOOTTARGETFLAGS) \
> + -std=gnu11 \
> -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
> -fno-strict-aliasing -O2 \
> -msoft-float -mno-altivec -mno-vsx \
> --
> 2.47.1
>
>
next prev parent reply other threads:[~2025-05-05 12:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 9:20 [PATCH] " Michal Suchanek
2025-03-08 10:09 ` Nysal Jan K.A.
2025-03-10 8:40 ` Michal Suchánek
2025-03-14 9:25 ` [PATCH v2] " Michal Suchanek
2025-03-29 9:11 ` Michael Ellerman
2025-03-31 10:57 ` [PATCH v3] " Michal Suchanek
2025-04-17 4:39 ` Venkat Rao Bagalkote
2025-05-05 12:14 ` Amit Machhiwal [this message]
2025-05-14 4:03 ` Madhavan Srinivasan
2025-04-17 6:07 ` [PATCH] " Mukesh Kumar Chaurasiya
2025-04-17 11:02 ` Michal Suchánek
2025-04-21 8:26 ` Mukesh Kumar Chaurasiya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250505174145.5f1837bc-d8-amachhiw@linux.ibm.com \
--to=amachhiw@linux.ibm.com \
--cc=bhelgaas@google.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=masahiroy@kernel.org \
--cc=mpe@ellerman.id.au \
--cc=msuchanek@suse.de \
--cc=naveen@kernel.org \
--cc=npiggin@gmail.com \
--cc=nysal@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®