Skip to content

Commit

Permalink
MdeModulePkg/UsbBusDxe: fix NOOPT build error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kraxel authored and mergify[bot] committed Dec 23, 2021
1 parent 9ec2cc1 commit ae8272e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,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,
Expand Down
2 changes: 1 addition & 1 deletion MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,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,
Expand Down

0 comments on commit ae8272e

Please sign in to comment.