]> git.baikalelectronics.ru Git - kernel.git/commit
locking/rwsem, x86: Drop a bogus cc clobber
authorJan Beulich <JBeulich@suse.com>
Mon, 19 Sep 2016 13:27:08 +0000 (07:27 -0600)
committerIngo Molnar <mingo@kernel.org>
Tue, 20 Sep 2016 06:26:41 +0000 (08:26 +0200)
commitf249c3223596463caf9894395006b34aa5de910d
tree5b500737af27d491d35f405645231500123bfa84
parent1efd9a6c7446c842bdb76430b92491f06139cfcc
locking/rwsem, x86: Drop a bogus cc clobber

With the addition of uses of GCC's condition code outputs in commit:

  39b2f4913f ("x86, asm: Use CC_SET()/CC_OUT() in <asm/rwsem.h>")

... there's now an overlap of outputs and clobbers in __down_write_trylock().

Such overlaps are generally getting tagged with an error (occasionally
even with an ICE). I can't really tell why plain GCC 6.2 doesn't detect
this (judging by the code it is meant to), while the slightly modified
one I use does. Since condition code clobbers are never necessary on x86
(other than perhaps for documentation purposes, which doesn't really
get done consistently), remove it altogether rather than inventing
something like CC_CLOBBER (to accompany CC_SET/CC_OUT).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/57E003CC0200007800110102@prv-mh.provo.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/rwsem.h