]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: use noinline define
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 Apr 2012 18:44:53 +0000 (18:44 +0000)
committerMarek Vasut <marex@denx.de>
Sun, 20 May 2012 06:32:31 +0000 (08:32 +0200)
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>
common/usb.c

index 1ec30bc058f708ea46b612aff8d3f3340b5dca68..71b4b2b2c2e2abd7c33c4ce4f871bc575aed681e 100644 (file)
@@ -47,6 +47,7 @@
 #include <common.h>
 #include <command.h>
 #include <asm/processor.h>
+#include <linux/compiler.h>
 #include <linux/ctype.h>
 #include <asm/byteorder.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.
  */
-static void  __attribute__((noinline))
+static void noinline
 usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx)
 {
        int b;