locking/refcounts: Out-of-line everything
authorPeter Zijlstra <peterz@infradead.org>
Fri, 10 Feb 2017 15:27:52 +0000 (16:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 24 Feb 2017 08:02:10 +0000 (09:02 +0100)
commit29dee3c03abce04cd527878ef5f9e5f91b7b83f4
tree778c1f931b1425b4d99d0627a1791efc730e6fbd
parent2bfe01eff4307409b95859e860261d0907149b61
locking/refcounts: Out-of-line everything

Linus asked to please make this real C code.

And since size then isn't an issue what so ever anymore, remove the
debug knob and make all WARN()s unconditional.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dwindsor@gmail.com
Cc: elena.reshetova@intel.com
Cc: gregkh@linuxfoundation.org
Cc: ishkamiel@gmail.com
Cc: keescook@chromium.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/refcount.h
lib/Kconfig.debug
lib/Makefile
lib/refcount.c [new file with mode: 0644]