]> 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)
commit134fe1eefafe2cc9d15d679db6b3bf03cd33d8c6
treee165f87e9a2d8241b63a5e53bcd40a2c8b1a234f
parent77af4bc1fed181f4659ad268b4aa4c33e3e4b88e
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