]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
linux_compat: remove cpu_relax() define
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Jul 2015 04:17:05 +0000 (13:17 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:01 +0000 (13:49 +0200)
commit3dc9e3b59958e1247c926658a0c3d850d64a38b5
tree07df14db4f97c010a8f78ca2418df2adcf47bb4f
parent93eda4623f8f9056853f113959de5e67e06a8e88
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 <yamada.masahiro@socionext.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Acked-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/musb-new/musb_gadget_ep0.c
include/linux/compat.h