From patchwork Thu Dec 13 01:55:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,05/11] usb: ehci: Fix aliasing issue in EHCI interrupt code Date: Wed, 12 Dec 2012 15:55:25 -0000 From: Simon Glass X-Patchwork-Id: 205711 Message-Id: <1355363731-10103-6-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Vincent Palatin From: Vincent Palatin The interrupt endpoint handling code stores the buffer pointer in the QH padding field. We need to make it the size of a pointer to avoid strict aliasing issue with the compiler. Signed-off-by: Vincent Palatin Signed-off-by: Simon Glass --- drivers/usb/host/ehci.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 8bc2ba1..5370eb0 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -247,7 +247,7 @@ struct QH { * aligned to 32 bytes */ union { - uint8_t fill[16]; + uint32_t fill[4]; void *buffer; }; };