Files
android_kernel_motorola_sm6225/include/linux
Mark Rutland afed7bcf94 locking/refcount: Always allow checked forms
In many cases, it would be useful to be able to use the full
sanity-checked refcount helpers regardless of CONFIG_REFCOUNT_FULL,
as this would help to avoid duplicate warnings where callers try to
sanity-check refcount manipulation.

This patch refactors things such that the full refcount helpers were
always built, as refcount_${op}_checked(), such that they can be used
regardless of CONFIG_REFCOUNT_FULL. This will allow code which *always*
wants a checked refcount to opt-in, avoiding the need to duplicate the
logic for warnings.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180711093607.1644-1-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-07-13 15:23:25 +02:00
..
…
…
…
…
…
2018-05-25 18:23:56 +02:00
2018-05-23 14:01:03 +02:00
…
…
…
…
2018-06-05 10:48:09 -04:00
…
2018-06-07 14:23:08 +01:00
…
2018-06-07 17:34:35 -07:00
…
…
…
…
…
…
…
…
…
2018-05-26 09:16:44 +02:00
…
…
…
2018-06-15 18:10:01 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-14 17:01:45 +02:00
…
…
…
2018-05-28 17:41:02 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-15 18:10:01 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-01 07:38:16 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-15 18:10:01 -03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-07 17:34:37 -07:00
…
…
…
…
…
…
…
…
…
…
2018-05-22 13:42:16 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-05 08:50:16 -04:00
2018-06-15 07:55:25 +09:00
2018-06-07 17:34:35 -07:00
…
…
…
…
…
…
…
2018-06-07 17:34:37 -07:00
2018-06-12 16:19:22 -07:00
…
…
…
…
…
…
2018-06-07 17:34:39 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-01 14:37:35 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-07 17:34:36 -07:00
…
…
…
…
…
…
…
2018-06-06 16:10:45 -05:00
…
…
…
…
…
2018-06-07 17:34:35 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-05-31 00:13:56 +08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-04 17:28:20 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-06-07 17:34:35 -07:00
…
…
…
…
…
2018-06-07 17:34:37 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-05-18 11:40:27 -04:00
…
…
…
…
…
2018-05-19 13:57:31 +02:00
2018-05-19 13:57:31 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…