diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-11-02 16:26:53 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-11-04 02:54:34 +0300 |
commit | b987ffc18fb3b3b76b059aa9e372dbee26f7c4f2 (patch) | |
tree | 548d9ce6fbb9c51977cb880e450f81abba0f753d /arch/xtensa/boot/Makefile | |
parent | 5b7449810ae6d652629c550d3974c8453836d229 (diff) | |
download | linux-b987ffc18fb3b3b76b059aa9e372dbee26f7c4f2.tar.xz |
x86/qspinlock: Fix compile error
With a compiler that has asm-goto but not asm-cc-output and
CONFIG_PROFILE_ALL_BRANCHES=y we get a compiler error:
arch/x86/include/asm/rmwcc.h:23:17: error: jump into statement expression
Fix this by writing the if() as a boolean multiplication instead.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-kernel@vger.kernel.org
Fixes: 7aa54be29765 ("locking/qspinlock, x86: Provide liveness guarantee")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/xtensa/boot/Makefile')
0 files changed, 0 insertions, 0 deletions