x86, asm: change GEN_*_RMWcc() to use CC_SET()/CC_OUT()
authorH. Peter Anvin <hpa@zytor.com>
Wed, 8 Jun 2016 19:38:41 +0000 (12:38 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 8 Jun 2016 19:41:20 +0000 (12:41 -0700)
commitba741e356c49bfce0adcfa851080666870867f6b
tree8b306da6a492e6b37522eaf7271c5882fffb3c3b
parentff3554b409b82d349f71e9d7082648b7b0a1a5bb
x86, asm: change GEN_*_RMWcc() to use CC_SET()/CC_OUT()

Change the GEN_*_RMWcc() macros to use the CC_SET()/CC_OUT() macros
defined in <asm/asm.h>, and disable the use of asm goto if
__GCC_ASM_FLAG_OUTPUTS__ is enabled.  This allows gcc to receive the
flags output directly in gcc 6+.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1465414726-197858-6-git-send-email-hpa@linux.intel.com
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/x86/include/asm/rmwcc.h