From: Emil Velikov Date: Thu, 7 Apr 2016 17:45:18 +0000 (+0100) Subject: drm/amdgpu: add extern C guard for the UAPI header X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cfa7152f1cfeedba7c4ab3abcb4accee94cc2c0f;p=linux-beck.git drm/amdgpu: add extern C guard for the UAPI header Cc: Alex Deucher Cc: Christian König Signed-off-by: Emil Velikov --- diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h index 453a76af123c..cdecf87576e8 100644 --- a/include/uapi/drm/amdgpu_drm.h +++ b/include/uapi/drm/amdgpu_drm.h @@ -34,6 +34,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + #define DRM_AMDGPU_GEM_CREATE 0x00 #define DRM_AMDGPU_GEM_MMAP 0x01 #define DRM_AMDGPU_CTX 0x02 @@ -642,4 +646,8 @@ struct drm_amdgpu_info_hw_ip { #define AMDGPU_FAMILY_VI 130 /* Iceland, Tonga */ #define AMDGPU_FAMILY_CZ 135 /* Carrizo, Stoney */ +#if defined(__cplusplus) +} +#endif + #endif