All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: OHCI: Fix build warning on Alchemy
@ 2011-04-13 23:23 Ralf Baechle
  2011-04-13 23:43 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2011-04-13 23:23 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-usb; +Cc: Manuel Lauss, linux-mips

  CC      drivers/usb/host/ohci-hcd.o
In file included from drivers/usb/host/ohci-hcd.c:1028:0:
drivers/usb/host/ohci-au1xxx.c:36:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]

Fix the warning and some other build bullet proofing; let's not rely on
other needed header files getting dragged in magically.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

 drivers/usb/host/ohci-au1xxx.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-au1xxx.c b/drivers/usb/host/ohci-au1xxx.c
index 17a6043..0723990 100644
--- a/drivers/usb/host/ohci-au1xxx.c
+++ b/drivers/usb/host/ohci-au1xxx.c
@@ -19,7 +19,10 @@
  */
 
 #include <linux/platform_device.h>
-#include <linux/signal.h>
+#include <linux/interrupt.h>
+#include <linux/usb.h>
+#include <linux/usb/hcd.h>
+#include <asm/byteorder.h>
 
 #include <asm/mach-au1x00/au1000.h>
 
@@ -33,7 +36,7 @@
 
 #ifdef __LITTLE_ENDIAN
 #define USBH_ENABLE_INIT (USBH_ENABLE_CE | USBH_ENABLE_E | USBH_ENABLE_C)
-#elif __BIG_ENDIAN
+#elif defined(__BIG_ENDIAN)
 #define USBH_ENABLE_INIT (USBH_ENABLE_CE | USBH_ENABLE_E | USBH_ENABLE_C | \
 			  USBH_ENABLE_BE)
 #else

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

* Re: [PATCH] USB: OHCI: Fix build warning on Alchemy
  2011-04-13 23:23 [PATCH] USB: OHCI: Fix build warning on Alchemy Ralf Baechle
@ 2011-04-13 23:43 ` Greg KH
  2011-04-14  0:31   ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2011-04-13 23:43 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-usb, Manuel Lauss, linux-mips

On Thu, Apr 14, 2011 at 01:23:08AM +0200, Ralf Baechle wrote:
>   CC      drivers/usb/host/ohci-hcd.o
> In file included from drivers/usb/host/ohci-hcd.c:1028:0:
> drivers/usb/host/ohci-au1xxx.c:36:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]
> 
> Fix the warning and some other build bullet proofing; let's not rely on
> other needed header files getting dragged in magically.

Ick, I just applied the second part of this patch to my "for-linus"
tree as a patch from someone else.  Are the #include changes really
needed right now?

thanks,

greg k-h

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

* Re: [PATCH] USB: OHCI: Fix build warning on Alchemy
  2011-04-13 23:43 ` Greg KH
@ 2011-04-14  0:31   ` Ralf Baechle
  2011-04-14  2:16     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2011-04-14  0:31 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb, Manuel Lauss, linux-mips

On Wed, Apr 13, 2011 at 04:43:17PM -0700, Greg KH wrote:

> On Thu, Apr 14, 2011 at 01:23:08AM +0200, Ralf Baechle wrote:
> >   CC      drivers/usb/host/ohci-hcd.o
> > In file included from drivers/usb/host/ohci-hcd.c:1028:0:
> > drivers/usb/host/ohci-au1xxx.c:36:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]
> > 
> > Fix the warning and some other build bullet proofing; let's not rely on
> > other needed header files getting dragged in magically.
> 
> Ick, I just applied the second part of this patch to my "for-linus"
> tree as a patch from someone else.  Are the #include changes really
> needed right now?

No, the include stuff was more for paranoia.

However the warning fixed by the 2nd part of the patch exists back to
at least 2.6.27.

  Ralf

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

* Re: [PATCH] USB: OHCI: Fix build warning on Alchemy
  2011-04-14  0:31   ` Ralf Baechle
@ 2011-04-14  2:16     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2011-04-14  2:16 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-usb, Manuel Lauss, linux-mips

On Thu, Apr 14, 2011 at 02:31:24AM +0200, Ralf Baechle wrote:
> On Wed, Apr 13, 2011 at 04:43:17PM -0700, Greg KH wrote:
> 
> > On Thu, Apr 14, 2011 at 01:23:08AM +0200, Ralf Baechle wrote:
> > >   CC      drivers/usb/host/ohci-hcd.o
> > > In file included from drivers/usb/host/ohci-hcd.c:1028:0:
> > > drivers/usb/host/ohci-au1xxx.c:36:7: warning: "__BIG_ENDIAN" is not defined [-Wundef]
> > > 
> > > Fix the warning and some other build bullet proofing; let's not rely on
> > > other needed header files getting dragged in magically.
> > 
> > Ick, I just applied the second part of this patch to my "for-linus"
> > tree as a patch from someone else.  Are the #include changes really
> > needed right now?
> 
> No, the include stuff was more for paranoia.
> 
> However the warning fixed by the 2nd part of the patch exists back to
> at least 2.6.27.

Ah, it's not that much of a rush then :)

thanks,

greg k-h

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

end of thread, other threads:[~2011-04-14  2:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 23:23 [PATCH] USB: OHCI: Fix build warning on Alchemy Ralf Baechle
2011-04-13 23:43 ` Greg KH
2011-04-14  0:31   ` Ralf Baechle
2011-04-14  2:16     ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.