0457-drm-vc4-add-extern-C-guard-for-the-UAPI-header.patch 927 B

12345678910111213141516171819202122232425262728293031323334
  1. From 48b941386dcff591dd0ab086f548fa20b047e84e Mon Sep 17 00:00:00 2001
  2. From: Emil Velikov <emil.l.velikov@gmail.com>
  3. Date: Thu, 7 Apr 2016 19:36:57 +0100
  4. Subject: [PATCH] drm/vc4: add extern C guard for the UAPI header
  5. Cc: Eric Anholt <eric@anholt.net>
  6. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
  7. (cherry picked from commit 6a982350f892c286c645a6fe0e1da1f869a0c43f)
  8. ---
  9. include/uapi/drm/vc4_drm.h | 8 ++++++++
  10. 1 file changed, 8 insertions(+)
  11. --- a/include/uapi/drm/vc4_drm.h
  12. +++ b/include/uapi/drm/vc4_drm.h
  13. @@ -26,6 +26,10 @@
  14. #include "drm.h"
  15. +#if defined(__cplusplus)
  16. +extern "C" {
  17. +#endif
  18. +
  19. #define DRM_VC4_SUBMIT_CL 0x00
  20. #define DRM_VC4_WAIT_SEQNO 0x01
  21. #define DRM_VC4_WAIT_BO 0x02
  22. @@ -276,4 +280,8 @@ struct drm_vc4_get_hang_state {
  23. __u32 pad[16];
  24. };
  25. +#if defined(__cplusplus)
  26. +}
  27. +#endif
  28. +
  29. #endif /* _UAPI_VC4_DRM_H_ */