]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fourcc: Fix undefined left shift in DRM_FORMAT_BIG_ENDIAN macros
authorAdam Jackson <ajax@redhat.com>
Fri, 18 Oct 2019 17:50:41 +0000 (13:50 -0400)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Oct 2019 18:19:24 +0000 (21:19 +0300)
commita93ebab885ef8db917464dfb700d5f2ff2872e55
treee165f87e9a2d8241b63a5e53bcd40a2c8b1a234f
parent193b77098f72ea93fa9e6020307aff58de0f985b
drm/fourcc: Fix undefined left shift in DRM_FORMAT_BIG_ENDIAN macros

1<<31 is undefined because it's a signed int and C is terrible.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191018175041.613780-1-ajax@redhat.com
include/uapi/drm/drm_fourcc.h