• Peter Zijlstra's avatar
    x86/qspinlock: Fix compile error · b987ffc1
    Peter Zijlstra authored
    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: default avatarkbuild test robot <lkp@intel.com>
    Signed-off-by: default avatarPeter 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: 7aa54be2
     ("locking/qspinlock, x86: Provide liveness guarantee")
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>