public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] USB: fix those pesky aliasing warnings caused by gcc-4.2
@ 2008-04-23  8:53 Markus Klotzbücher
  2008-04-23  8:57 ` [U-Boot-Users] [PATCH] USB: remove a cpu bug workaround for an unsupported architecture Markus Klotzbücher
  2008-04-24 11:33 ` [U-Boot-Users] [PATCH] USB: fix those pesky aliasing warnings caused by gcc-4.2 Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Markus Klotzbücher @ 2008-04-23  8:53 UTC (permalink / raw)
  To: u-boot


USB: fix those pesky aliasing warnings caused by gcc-4.2

Signed-off-by: Markus Klotzbuecher <mk@denx.de>
Signed-off-by: Detlev Zundel <dzu@denx.de>

---

 drivers/usb/usb_ohci.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
index 5c201b3..d37a037 100644
--- a/drivers/usb/usb_ohci.c
+++ b/drivers/usb/usb_ohci.c
@@ -86,11 +86,11 @@
  * e.g. PCI controllers need this
  */
 #ifdef CFG_OHCI_SWAP_REG_ACCESS
-# define readl(a) __swap_32(*((vu_long *)(a)))
-# define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a))
+# define readl(a) __swap_32(*((volatile u32 *)(a)))
+# define writel(a, b) (*((volatile u32 *)(b)) = __swap_32((volatile u32)a))
 #else
-# define readl(a) (*((vu_long *)(a)))
-# define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a))
+# define readl(a) (*((volatile u32 *)(a)))
+# define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a))
 #endif /* CFG_OHCI_SWAP_REG_ACCESS */
 
 #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })


Best regards

Markus Klotzbuecher

--
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office@denx.de

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-24 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23  8:53 [U-Boot-Users] [PATCH] USB: fix those pesky aliasing warnings caused by gcc-4.2 Markus Klotzbücher
2008-04-23  8:57 ` [U-Boot-Users] [PATCH] USB: remove a cpu bug workaround for an unsupported architecture Markus Klotzbücher
2008-04-24 11:37   ` Wolfgang Denk
2008-04-24 11:33 ` [U-Boot-Users] [PATCH] USB: fix those pesky aliasing warnings caused by gcc-4.2 Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox