{"id":2215405,"url":"http://patchwork.ozlabs.org/api/patches/2215405/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260324150239.21226-1-vincent.stehle@arm.com/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260324150239.21226-1-vincent.stehle@arm.com>","list_archive_url":null,"date":"2026-03-24T15:02:39","name":"boot/edk2: fix build with gcc 15","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"73a7f1659ab1ada3f200baea2bc9ec2502678bda","submitter":{"id":77169,"url":"http://patchwork.ozlabs.org/api/people/77169/?format=json","name":"Vincent Stehlé","email":"vincent.stehle@arm.com"},"delegate":{"id":89618,"url":"http://patchwork.ozlabs.org/api/users/89618/?format=json","username":"juju","first_name":"Julien","last_name":"Olivain","email":"juju@cotds.org"},"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260324150239.21226-1-vincent.stehle@arm.com/mbox/","series":[{"id":497300,"url":"http://patchwork.ozlabs.org/api/series/497300/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=497300","date":"2026-03-24T15:02:39","name":"boot/edk2: fix build with gcc 15","version":1,"mbox":"http://patchwork.ozlabs.org/series/497300/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2215405/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2215405/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=B737WjfA;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgCvX39Frz1xy1\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Wed, 25 Mar 2026 02:02:48 +1100 (AEDT)","from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id D07E740B92;\n\tTue, 24 Mar 2026 15:02:46 +0000 (UTC)","from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id xN3zHCFtjJbt; Tue, 24 Mar 2026 15:02:45 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 7773E40CFA;\n\tTue, 24 Mar 2026 15:02:45 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n by lists1.osuosl.org (Postfix) with ESMTP id 99DB0353\n for <buildroot@buildroot.org>; Tue, 24 Mar 2026 15:02:44 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 7FFD881E51\n for <buildroot@buildroot.org>; Tue, 24 Mar 2026 15:02:44 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id H6nXnWVOuDHS for <buildroot@buildroot.org>;\n Tue, 24 Mar 2026 15:02:43 +0000 (UTC)","from foss.arm.com (foss.arm.com [217.140.110.172])\n by smtp1.osuosl.org (Postfix) with ESMTP id 8474281E48\n for <buildroot@buildroot.org>; Tue, 24 Mar 2026 15:02:43 +0000 (UTC)","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 359CA14BF;\n Tue, 24 Mar 2026 08:02:36 -0700 (PDT)","from debian (X72Y076X74-2.nice.arm.com [10.34.125.2])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 91BAE3F915;\n Tue, 24 Mar 2026 08:02:41 -0700 (PDT)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7773E40CFA","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8474281E48"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1774364565;\n\tbh=EGZO4q96Rq9hZ64sE/bhlhMdqrUEvTVNta+cMzTDpT8=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=B737WjfAyqj3oRHV+Gy406aW/xHQjkRoPRwNYWyX5mGRcuIVJZwu2ygC1m2PYeRHB\n\t EfWk1tciekgcVE46ceabWA9r/DQm8jw3cFBTjcF6tqqMkJeNy2TPdWTMHSnfIUFysG\n\t HJBoRimXQw673wfpWS3xXw8k0KZbEFAsglRFgjNKUVs37iPSQnNmEj1BoJZ0MueY1p\n\t teyOvyXwEtM3zYCHVyzP3ITcpE/zzkrPsXXrbnFBQnNeb2I8pK8XbOrPbtCm00mL/B\n\t OwsRRjBtvGENl88Kn5k2WLtUvnYNpOg5yF+fEUsInjhrePqmDNMntbg7FE9pMzEYRa\n\t UYbHJQ2ZECBOQ==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=217.140.110.172;\n helo=foss.arm.com; envelope-from=vincent.stehle@arm.com; receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp1.osuosl.org 8474281E48","From":"=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>","To":"buildroot@buildroot.org","Cc":"=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,\n Dick Olsson <hi@senzilla.io>","Date":"Tue, 24 Mar 2026 16:02:39 +0100","Message-ID":"<20260324150239.21226-1-vincent.stehle@arm.com>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=simple/simple;\n d=arm.com; s=foss;\n t=1774364562; bh=11PHBJSpEaUyK/CQAlCH1WItYzL+clLkZqUKJscU5og=;\n h=From:To:Cc:Subject:Date:From;\n b=SxNYjAcl7H2LtIo04GYFXs0cdwaODhbMfGCPZU6ewvYi2cXC25kLQgUg6pwC+rq4t\n 41CtAxBplf07nV5hRX6cBJgk2wh8mgSxsXrpvaGFquLgHFxzAgfnp+g/DMobny6ZM1\n iB84tZc2hZ84RuMTbevij5Y8vZKNKehIaFDSDozk=","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=arm.com","smtp1.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256\n header.s=foss header.b=SxNYjAcl"],"Subject":"[Buildroot] [PATCH] boot/edk2: fix build with gcc 15","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"The edk2 package fails to build with gcc 15, with the following error:\n\n  EfiRom.c:78:17: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]\n\nCherry-pick one patch from edk2-stable202602 to fix this.\n\nThis can be verified with the tests.boot.test_edk2 python tests.\n\nSigned-off-by: Vincent Stehlé <vincent.stehle@arm.com>\nCc: Dick Olsson <hi@senzilla.io>\n---\n ...aseTools-EfiRom-fix-compiler-warning.patch | 46 +++++++++++++++++++\n 1 file changed, 46 insertions(+)\n create mode 100644 boot/edk2/0001-BaseTools-EfiRom-fix-compiler-warning.patch","diff":"diff --git a/boot/edk2/0001-BaseTools-EfiRom-fix-compiler-warning.patch b/boot/edk2/0001-BaseTools-EfiRom-fix-compiler-warning.patch\nnew file mode 100644\nindex 0000000000..c1e688cfe0\n--- /dev/null\n+++ b/boot/edk2/0001-BaseTools-EfiRom-fix-compiler-warning.patch\n@@ -0,0 +1,46 @@\n+From 9af06ef3cbb052b142f9660c2c01e7aeb401300c Mon Sep 17 00:00:00 2001\n+From: Gerd Hoffmann <kraxel@redhat.com>\n+Date: Mon, 8 Dec 2025 10:28:50 +0100\n+Subject: [PATCH] BaseTools/EfiRom: fix compiler warning\n+MIME-Version: 1.0\n+Content-Type: text/plain; charset=UTF-8\n+Content-Transfer-Encoding: 8bit\n+\n+New warning after updating gcc:\n+\n+EfiRom.c: In function ‘main’:\n+EfiRom.c:78:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]\n+\n+The assigned value is not used, so fix the warning by just removing it.\n+\n+Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>\n+Upstream: https://github.com/tianocore/edk2/commit/9af06ef3cbb052b142f9660c2c01e7aeb401300c\n+Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>\n+---\n+ BaseTools/Source/C/EfiRom/EfiRom.c | 3 +--\n+ 1 file changed, 1 insertion(+), 2 deletions(-)\n+\n+diff --git a/BaseTools/Source/C/EfiRom/EfiRom.c b/BaseTools/Source/C/EfiRom/EfiRom.c\n+index fa7bf0e62e..6e903b3504 100644\n+--- a/BaseTools/Source/C/EfiRom/EfiRom.c\n++++ b/BaseTools/Source/C/EfiRom/EfiRom.c\n+@@ -44,7 +44,6 @@ Returns:\n+   FILE_LIST *FList;\r\n+   UINT32    TotalSize;\r\n+   UINT32    Size;\r\n+-  CHAR8     *Ptr0;\r\n+ \r\n+   SetUtilityName(UTILITY_NAME);\r\n+ \r\n+@@ -75,7 +74,7 @@ Returns:\n+   //\r\n+   if (mOptions.DumpOption == 1) {\r\n+     if (mOptions.FileList != NULL) {\r\n+-      if ((Ptr0 = strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION)) != NULL) {\r\n++      if (strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION) != NULL) {\r\n+         DumpImage (mOptions.FileList);\r\n+         goto BailOut;\r\n+       } else {\r\n+-- \n+2.53.0\n+\n","prefixes":[]}