diff mbox

drm_fourcc: Fix DRM_FORMAT_MOD_LINEAR #define

Message ID 1481657272-25975-1-git-send-email-hoegsberg@google.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kristian Høgsberg Dec. 13, 2016, 7:27 p.m. UTC
We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code()
macro to work correctly.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
---
 include/uapi/drm/drm_fourcc.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel Vetter Dec. 13, 2016, 9:02 p.m. UTC | #1
On Tue, Dec 13, 2016 at 11:27:52AM -0800, Kristian H. Kristensen wrote:
> We need to define DRM_FORMAT_MOD_VENDOR_NONE for the fourcc_mod_code()
> macro to work correctly.
> 
> Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>

Oopsies. Applied to drm-misc, thx for spotting.
-Daniel

> ---
>  include/uapi/drm/drm_fourcc.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
> index 0ccef30..9e1bb7f 100644
> --- a/include/uapi/drm/drm_fourcc.h
> +++ b/include/uapi/drm/drm_fourcc.h
> @@ -154,6 +154,7 @@ extern "C" {
>  
>  /* Vendor Ids: */
>  #define DRM_FORMAT_MOD_NONE           0
> +#define DRM_FORMAT_MOD_VENDOR_NONE    0
>  #define DRM_FORMAT_MOD_VENDOR_INTEL   0x01
>  #define DRM_FORMAT_MOD_VENDOR_AMD     0x02
>  #define DRM_FORMAT_MOD_VENDOR_NV      0x03
> -- 
> 2.8.0.rc3.226.g39d4020
>
diff mbox

Patch

diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h
index 0ccef30..9e1bb7f 100644
--- a/include/uapi/drm/drm_fourcc.h
+++ b/include/uapi/drm/drm_fourcc.h
@@ -154,6 +154,7 @@  extern "C" {
 
 /* Vendor Ids: */
 #define DRM_FORMAT_MOD_NONE           0
+#define DRM_FORMAT_MOD_VENDOR_NONE    0
 #define DRM_FORMAT_MOD_VENDOR_INTEL   0x01
 #define DRM_FORMAT_MOD_VENDOR_AMD     0x02
 #define DRM_FORMAT_MOD_VENDOR_NV      0x03