From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 16 Nov 2011 11:03:03 -0500 Subject: [U-Boot] [PATCH 1/2] Fix warnings in arch/arm/cpu/arm920t/s3c24x0/usb_ohci.c In-Reply-To: <1321417027-5639-1-git-send-email-sjg@chromium.org> References: <1321417027-5639-1-git-send-email-sjg@chromium.org> Message-ID: <201111161103.04709.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 15 November 2011 23:17:06 Simon Glass wrote: > --- a/arch/arm/cpu/arm920t/s3c24x0/usb_ohci.c > +++ b/arch/arm/cpu/arm920t/s3c24x0/usb_ohci.c > > - __u32 datab[4]; > - __u8 *data_buf = (__u8 *) datab; > + union { > + __u32 word[4]; > + __u16 hword[8]; > + __u8 byte[16]; > + } datab; > + __u8 *data_buf = datab.byte; i thought someone posted this fix to the list before. but maybe it was for a different controller. perhaps this code has been copied/pasted all over ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111116/00dc6e4c/attachment.pgp