aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2022-11-03 10:16:26 +0000
committerThomas Zimmermann <[email protected]>2022-11-04 13:44:02 +0000
commite67e865b90b511bf78357ff36fdef99627d829c9 (patch)
treee4c6616f0053806cddfd5d561938b7ac328d9e83 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init() (diff)
downloadkernel-e67e865b90b511bf78357ff36fdef99627d829c9.tar.gz
kernel-e67e865b90b511bf78357ff36fdef99627d829c9.zip
drm/ofdrm: Convert PCI IDs to CPU endianness for comparing
Properties of 32-bit integers are returned from the OF device tree as type __be32. Convert PCI vendor and device IDs from __be32 to host endianness before comparing them to constants. All relevant machines are old, big-endian Macintosh systems; hence the bug never happened in practice. Fixes sparse warnings shown below. drivers/gpu/drm/tiny/ofdrm.c:237:17: warning: restricted __be32 degrades to integer drivers/gpu/drm/tiny/ofdrm.c:238:18: warning: restricted __be32 degrades to integer drivers/gpu/drm/tiny/ofdrm.c:238:54: warning: restricted __be32 degrades to integer See [1] for the bug report. v2: * convert endianness (Alex) Reported-by: kernel test robot <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/dri-devel/[email protected]/ # [1] Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions