From patchwork Thu Mar 7 00:08:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 225683 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id CB9E82C0383 for ; Thu, 7 Mar 2013 11:10:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 664DC4A2B8; Thu, 7 Mar 2013 01:10:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X7h7zjXMnR0S; Thu, 7 Mar 2013 01:10:29 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD0814A2BB; Thu, 7 Mar 2013 01:10:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76D444A2BC for ; Thu, 7 Mar 2013 01:10:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A8xQB16PiGV1 for ; Thu, 7 Mar 2013 01:10:25 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ye0-f202.google.com (mail-ye0-f202.google.com [209.85.213.202]) by theia.denx.de (Postfix) with ESMTPS id 6C0AE4A2B8 for ; Thu, 7 Mar 2013 01:10:23 +0100 (CET) Received: by mail-ye0-f202.google.com with SMTP id q5so935752yen.5 for ; Wed, 06 Mar 2013 16:10:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=wSXmXggdzZKBU/bWJA/HyvR5RDVL6ZmSr706hicIhYc=; b=TzB3KR5TXAk9Rs+iPsNiiiugnK28kM28/GhtAAehWIkb3ZTkFFoQ7BMh3+HMnqCKL3 pbclWnhOV4RT8YUcFDmQnLzelYTIzWNJ3IfQvV/+kBUpi5kiHK0Vp00iSeWWUfkG7i4O ezctZ5BLL4ljAtl2RNB7qqTD6ZkdPGqgmMR6tzreN21xqDNUyDN/SUDPIuetCHQkbhof orFPi3cQBxHz/uuVXrtIsI3jbEjJeMg0t6a7Dvf/SHweluipV5TZ4axH9Y7gVYMW8ufe /qHN8Z4o51P1CQiHabXScGvhG+nqVXEZ9WHMeBc4RR07VbaOBL2CiyUKHHMSYOlbMupj RJwQ== X-Received: by 10.236.132.104 with SMTP id n68mr17735015yhi.37.1362615022861; Wed, 06 Mar 2013 16:10:22 -0800 (PST) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id h26si702006yhf.3.2013.03.06.16.10.22 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 06 Mar 2013 16:10:22 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id B1C9631C1E1; Wed, 6 Mar 2013 16:10:22 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 6BA5D16066C; Wed, 6 Mar 2013 16:10:22 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Wed, 6 Mar 2013 16:08:32 -0800 Message-Id: <1362614916-26382-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1362614916-26382-1-git-send-email-sjg@chromium.org> References: <1362614916-26382-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmO9asKd+i+RuVXXZARrjzOzEGXx6Y9k5U9UoKt7XQjOSTIkkx6cEpAnvUFurJHUyVqUIG9O1xi+ODlvGkpWo4IHaaNHXv4SkuSzO+b0igZXRRKjbPxlYivT97Kj52Pxqh71VXjIeH5zpjyYsdOiw/7KuicsPuMyccm7bpGvUbUSMY2R03tcetlbOp9ytuKwTOrcBiq Cc: Vincent Palatin , Julius Werner Subject: [U-Boot] [PATCH v3 2/5] usb: ehci: Fix aliasing issue in EHCI interrupt code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 --- Changes in v3: None Changes in v2: None drivers/usb/host/ehci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 46b535f..d090f0a 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; }; };