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

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

Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>

+8
+8
include/uapi/drm/etnaviv_drm.h
··· 19 19 20 20 #include "drm.h" 21 21 22 + #if defined(__cplusplus) 23 + extern "C" { 24 + #endif 25 + 22 26 /* Please note that modifications to all structs defined here are 23 27 * subject to backwards-compatibility constraints: 24 28 * 1) Do not use pointers, use __u64 instead for 32 bit / 64 bit ··· 225 221 #define DRM_IOCTL_ETNAVIV_WAIT_FENCE DRM_IOW(DRM_COMMAND_BASE + DRM_ETNAVIV_WAIT_FENCE, struct drm_etnaviv_wait_fence) 226 222 #define DRM_IOCTL_ETNAVIV_GEM_USERPTR DRM_IOWR(DRM_COMMAND_BASE + DRM_ETNAVIV_GEM_USERPTR, struct drm_etnaviv_gem_userptr) 227 223 #define DRM_IOCTL_ETNAVIV_GEM_WAIT DRM_IOW(DRM_COMMAND_BASE + DRM_ETNAVIV_GEM_WAIT, struct drm_etnaviv_gem_wait) 224 + 225 + #if defined(__cplusplus) 226 + } 227 + #endif 228 228 229 229 #endif /* __ETNAVIV_DRM_H__ */