]> git.baikalelectronics.ru Git - kernel.git/commit
compiler.h: Enforce that READ_ONCE_NOCHECK() access size is sizeof(long)
authorWill Deacon <will@kernel.org>
Fri, 5 Jun 2020 10:19:46 +0000 (11:19 +0100)
committerWill Deacon <will@kernel.org>
Fri, 5 Jun 2020 10:19:46 +0000 (11:19 +0100)
commitdd4349ff822c6571e265849ce8cd57bc3211757a
treefae3ab27bddd1aab6d902dfd705caa322db7161f
parentf31e72e9808f38833d861652fa302af7ad080cd6
compiler.h: Enforce that READ_ONCE_NOCHECK() access size is sizeof(long)

READ_ONCE_NOCHECK() unconditionally performs a sizeof(long)-sized access,
so enforce that the size of the pointed-to object that we are loading
from is the same size as 'long'.

Reported-by: Marco Elver <elver@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
include/linux/compiler.h