aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2022-05-28 12:38:26 +0100
committerMarc Zyngier <maz@kernel.org>2022-06-29 10:23:41 +0100
commit5a3984f4ec73d1c7cf31a4cee46cca7d4c75deee (patch)
treeca1c96604c1a69e0d8b42d67c46e1811554e292a /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
parentKVM: arm64: Warn when PENDING_EXCEPTION and INCREMENT_PC are set together (diff)
downloadlinux-rng-5a3984f4ec73d1c7cf31a4cee46cca7d4c75deee.tar.xz
linux-rng-5a3984f4ec73d1c7cf31a4cee46cca7d4c75deee.zip
KVM: arm64: Add build-time sanity checks for flags
Flags are great, but flags can also be dangerous: it is easy to encode a flag that is bigger than its container (unless the container is a u64), and it is easy to construct a flag value that doesn't fit in the mask that is associated with it. Add a couple of build-time sanity checks that ensure we catch these two cases. Reviewed-by: Fuad Tabba <tabba@google.com> Reviewed-by: Reiji Watanabe <reijiw@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c')
0 files changed, 0 insertions, 0 deletions