]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitb16d8ecf4fa17e16fff20638364f9bd2205615e7
treefae3ab27bddd1aab6d902dfd705caa322db7161f
parent8d4beed7bbc71666de2630b79899c8852c3bf5cd
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