All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Romain Naour <romain.naour@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] boot/edk2: fix gcc 11 Werror
Date: Sat, 28 May 2022 12:05:08 +0200	[thread overview]
Message-ID: <20220528100508.GE301044@scaer> (raw)
In-Reply-To: <20220527112146.387164-1-romain.naour@gmail.com>

Romain, All,

On 2022-05-27 13:21 +0200, Romain Naour spake thusly:
> Backport a patch [1] included in edk2-stable202202 release.
> 
> Fixes:
> https://gitlab.com/kubu93/buildroot/-/jobs/2510255569
> 
> [1] https://github.com/tianocore/edk2/commit/ae8272ef787d80950803c521a13a308651bdc62e
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Dick Olsson <hi@senzilla.io>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...ePkg-UsbBusDxe-fix-NOOPT-build-error.patch | 48 +++++++++++++++++++
>  1 file changed, 48 insertions(+)
>  create mode 100644 boot/edk2/0001-MdeModulePkg-UsbBusDxe-fix-NOOPT-build-error.patch
> 
> diff --git a/boot/edk2/0001-MdeModulePkg-UsbBusDxe-fix-NOOPT-build-error.patch b/boot/edk2/0001-MdeModulePkg-UsbBusDxe-fix-NOOPT-build-error.patch
> new file mode 100644
> index 0000000000..f4f1b1565a
> --- /dev/null
> +++ b/boot/edk2/0001-MdeModulePkg-UsbBusDxe-fix-NOOPT-build-error.patch
> @@ -0,0 +1,48 @@
> +From 59aa67f7a4d8efc564b46fe467aaf6eccec17183 Mon Sep 17 00:00:00 2001
> +From: Gerd Hoffmann <kraxel@redhat.com>
> +Date: Mon, 20 Dec 2021 22:32:38 +0800
> +Subject: [PATCH] MdeModulePkg/UsbBusDxe: fix NOOPT build error
> +
> +gcc-11 (fedora 35):
> +
> +/home/kraxel/projects/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c: In function ?UsbIoBulkTransfer?:
> +/home/kraxel/projects/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c:277:12: error: ?UsbHcBulkTransfer? accessing 80 bytes in a region of size 8 [-Werror=stringop-overflow=]
> +
> +Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> +Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
> +(cherry picked from commit ae8272ef787d80950803c521a13a308651bdc62e)
> +Signed-off-by: Romain Naour <romain.naour@gmail.com>
> +---
> + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c | 2 +-
> + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h | 2 +-
> + 2 files changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
> +index 7529e03e85..b2ce97ca37 100644
> +--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
> ++++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
> +@@ -285,7 +285,7 @@ UsbHcBulkTransfer (
> +   IN  UINT8                               DevSpeed,
> +   IN  UINTN                               MaxPacket,
> +   IN  UINT8                               BufferNum,
> +-  IN  OUT VOID                            *Data[EFI_USB_MAX_BULK_BUFFER_NUM],
> ++  IN  OUT VOID                            *Data[],
> +   IN  OUT UINTN                           *DataLength,
> +   IN  OUT UINT8                           *DataToggle,
> +   IN  UINTN                               TimeOut,
> +diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
> +index 1d2b8a6174..1316a5981f 100644
> +--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
> ++++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
> +@@ -149,7 +149,7 @@ UsbHcBulkTransfer (
> +   IN  UINT8                               DevSpeed,
> +   IN  UINTN                               MaxPacket,
> +   IN  UINT8                               BufferNum,
> +-  IN  OUT VOID                            *Data[EFI_USB_MAX_BULK_BUFFER_NUM],
> ++  IN  OUT VOID                            *Data[],
> +   IN  OUT UINTN                           *DataLength,
> +   IN  OUT UINT8                           *DataToggle,
> +   IN  UINTN                               TimeOut,
> +-- 
> +2.35.3
> +
> -- 
> 2.35.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-05-28 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-27 11:21 [Buildroot] [PATCH] boot/edk2: fix gcc 11 Werror Romain Naour
2022-05-28 10:05 ` Yann E. MORIN [this message]
2022-05-30 19:04   ` Romain Naour
2022-05-30 20:23     ` Yann E. MORIN
2022-05-30 20:30       ` Yann E. MORIN
2022-06-06 10:06 ` Peter Korsgaard

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=20220528100508.GE301044@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=romain.naour@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.