Skip to content

Commit 60ef910

Browse files
committed
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>
1 parent ebbb0e5 commit 60ef910

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎include/uapi/drm/etnaviv_drm.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include "drm.h"
2121

22+
#if defined(__cplusplus)
23+
extern "C" {
24+
#endif
25+
2226
/* Please note that modifications to all structs defined here are
2327
* subject to backwards-compatibility constraints:
2428
* 1) Do not use pointers, use __u64 instead for 32 bit / 64 bit
@@ -222,4 +226,8 @@ struct drm_etnaviv_gem_wait {
222226
#define DRM_IOCTL_ETNAVIV_GEM_USERPTR DRM_IOWR(DRM_COMMAND_BASE + DRM_ETNAVIV_GEM_USERPTR, struct drm_etnaviv_gem_userptr)
223227
#define DRM_IOCTL_ETNAVIV_GEM_WAIT DRM_IOW(DRM_COMMAND_BASE + DRM_ETNAVIV_GEM_WAIT, struct drm_etnaviv_gem_wait)
224228

229+
#if defined(__cplusplus)
230+
}
231+
#endif
232+
225233
#endif /* __ETNAVIV_DRM_H__ */

0 commit comments

Comments
 (0)