diff options
author | Melissa Wen <mwen@igalia.com> | 2022-09-10 18:03:03 -0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2022-09-11 22:28:56 +1000 |
commit | 89b03aeaef16f8ab48c10c399f97c836bdbae838 (patch) | |
tree | 6bbd8f5c600dc82ef355be33c2d1fd50ddd08f68 /drivers/gpu/drm/amd/display/dc/dm_helpers.h | |
parent | fb34d8a04e5876552cd0d4f9e14400ee13f116fb (diff) | |
download | linux-89b03aeaef16f8ab48c10c399f97c836bdbae838.tar.gz linux-89b03aeaef16f8ab48c10c399f97c836bdbae838.tar.bz2 linux-89b03aeaef16f8ab48c10c399f97c836bdbae838.zip |
drm/vkms: fix 32bit compilation error by replacing macros
Replace vkms_formats macro for fixed-point operations with functions
from drm/drm_fixed.h to do the same job and fix 32-bit compilation
errors.
v2:
- don't cast results to s32 (Igor)
- add missing drm_fixp2int conversion (Igor)
Fixes: a19c2ac9858 ("drm: vkms: Add support to the RGB565 format")
Tested-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> (v1)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reported-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220910190303.682897-1-mwen@igalia.com
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dm_helpers.h')
0 files changed, 0 insertions, 0 deletions