compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Thu, 1 Feb 2018 18:00:48 +0000 (21:00 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 20:20:21 +0000 (12:20 -0800)
commitbdb5ac801af3d81d36732c2f640d6a1d3df83826
tree9ce7392f17b943c51c08ed1ff25eb65152bdd580
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff
compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()

Instead of having two identical __read_once_size_nocheck() functions
with different attributes, consolidate all the difference in new macro
__no_kasan_or_inline and use it. No functional changes.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler.h