]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 08:03:00 +0000 (09:03 +0100)
commit36bd2ae6cc1887bd371ca259d433734ae68212f4
treeb0a88a9528243efedf468373894414285d06d5dc
parent047d711a7a3e6e9b84f19c594a8bb3af04384e69
compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()

commit bdb5ac801af3d81d36732c2f640d6a1d3df83826 upstream.

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>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/compiler.h