Skip to content
Commit b16d8ecf authored by Will Deacon's avatar Will Deacon
Browse files

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: default avatarMarco Elver <elver@google.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 8d4beed7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment