Browse Source

usb: use noinline define

Building usb for Blackfin boards fails as we get linux/compiler.h
included which expands the "noinline" inside of the attribute and
we get attribute(attribute(noinline)).

Explicitly use the helper define to avoid this.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 13 years ago
parent
commit
66cf64107b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      common/usb.c

+ 2 - 1
common/usb.c

@@ -47,6 +47,7 @@
 #include <common.h>
 #include <common.h>
 #include <command.h>
 #include <command.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
+#include <linux/compiler.h>
 #include <linux/ctype.h>
 #include <linux/ctype.h>
 #include <asm/byteorder.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
 #include <asm/unaligned.h>
@@ -261,7 +262,7 @@ int usb_maxpacket(struct usb_device *dev, unsigned long pipe)
  *
  *
  * NOTE: Similar behaviour was observed with GCC4.6 on ARMv5.
  * NOTE: Similar behaviour was observed with GCC4.6 on ARMv5.
  */
  */
-static void  __attribute__((noinline))
+static void noinline
 usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx)
 usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx)
 {
 {
 	int b;
 	int b;