]> git.baikalelectronics.ru Git - kernel.git/commit
locking/refcount: Remove the half-implemented refcount_sub() API
authorKees Cook <keescook@chromium.org>
Sat, 1 Jul 2017 18:01:29 +0000 (11:01 -0700)
committerIngo Molnar <mingo@kernel.org>
Sun, 2 Jul 2017 09:24:36 +0000 (11:24 +0200)
commit5d6dec6fba38c3e2d408df108bb92ef4ac201f18
tree55ec5ad38498adac14d05c4a41781113ea8e4f8f
parentfd25d19f6b8da315332bb75936605fb45d3ea981
locking/refcount: Remove the half-implemented refcount_sub() API

CONFIG_REFCOUNT_FULL=y (correctly) does not provide a refcount_sub(),
which should not be part of proper refcount design patterns.

Remove the erroneous extern and the later !CONFIG_REFCOUNT_FULL
accidental implementation.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Elena Reshetova <elena.reshetova@intel.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 29dee3c03abc ("locking/refcounts: Out-of-line everything")
Link: http://lkml.kernel.org/r/20170701180129.GA17405@beast
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/refcount.h