locking/barriers: Validate lockless_dereference() is used on a pointer type
authorPeter Zijlstra <peterz@infradead.org>
Sun, 22 May 2016 10:48:27 +0000 (12:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 8 Jun 2016 12:22:47 +0000 (14:22 +0200)
commit331b6d8c7afc2e5b900b9dcd850c265e1ba8d8e7
treecf3060a9a96357e5f321e5ed28a5165717674f0d
parenta461d58792d4a46b8b10ae50973ec9b2763b694e
locking/barriers: Validate lockless_dereference() is used on a pointer type

Use the type to validate the argument @p is indeed a pointer type.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160522104827.GP3193@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/compiler.h