]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/vkms: fix 32bit compilation error by replacing macros
authorMelissa Wen <mwen@igalia.com>
Sat, 10 Sep 2022 19:03:03 +0000 (18:03 -0100)
committerDave Airlie <airlied@redhat.com>
Sun, 11 Sep 2022 12:28:56 +0000 (22:28 +1000)
commit89b03aeaef16f8ab48c10c399f97c836bdbae838
tree6bbd8f5c600dc82ef355be33c2d1fd50ddd08f68
parentfb34d8a04e5876552cd0d4f9e14400ee13f116fb
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
drivers/gpu/drm/vkms/vkms_formats.c