Skip to content
Snippets Groups Projects
Commit 3721eaf2 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Simon Glass
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarLukasz Majewski <l.majewski@samsung.com>
parent 5f7e3104
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment