Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: add extern C guard for the UAPI header

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Daniel Vetter <daniel.vetter@intel.com>

+8
+8
include/uapi/drm/i915_drm.h
··· 29 29 30 30 #include "drm.h" 31 31 32 + #if defined(__cplusplus) 33 + extern "C" { 34 + #endif 35 + 32 36 /* Please note that modifications to all structs defined here are 33 37 * subject to backwards-compatibility constraints. 34 38 */ ··· 1173 1169 #define I915_CONTEXT_PARAM_GTT_SIZE 0x3 1174 1170 __u64 value; 1175 1171 }; 1172 + 1173 + #if defined(__cplusplus) 1174 + } 1175 + #endif 1176 1176 1177 1177 #endif /* _UAPI_I915_DRM_H_ */