diff options
| author | Masahiro Yamada <[email protected]> | 2015-07-13 13:17:05 +0900 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2015-07-22 07:30:37 -0600 |
| commit | 3721eaf28e5e074bebf8191e37dacbd75ffc459d (patch) | |
| tree | 4cc6db6b2615ed22b5c6539af7d301de7f58a471 /drivers | |
| parent | 5f7e310467b62e136831f6ea418c91f82df18b77 (diff) | |
linux_compat: remove cpu_relax() define
The macro cpu_relax() is defined by several headers in different
ways.
arch/{arm,avr32,mips}/include/asm/processor.h defines it as follows:
#define cpu_relax() barrier()
On the other hand, include/linux/compat.h defines it as follows:
#define cpu_relax() do {} while (0)
If both headers are included from the same source file, the warning
warning: "cpu_relax" redefined [enabled by default]
is displayed.
It effectively makes it impossible to include <linux/compat.h>
from some sources. Drop the latter.
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Acked-by: Simon Glass <[email protected]>
Reviewed-by: Lukasz Majewski <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/musb-new/musb_gadget_ep0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c index 5a715013a23..415a9f21a9c 100644 --- a/drivers/usb/musb-new/musb_gadget_ep0.c +++ b/drivers/usb/musb-new/musb_gadget_ep0.c @@ -43,6 +43,7 @@ #else #include <common.h> #include "linux-compat.h" +#include <asm/processor.h> #endif #include "musb_core.h" |
