Displaying 5 results from an estimated 5 matches for "_uapi_i915_drm_h_".
2016 Apr 21
0
[PATCH 07/24] drm/i915: add extern C guard for the UAPI header
...__cplusplus)
+extern "C" {
+#endif
+
/* Please note that modifications to all structs defined here are
* subject to backwards-compatibility constraints.
*/
@@ -1170,4 +1174,8 @@ struct drm_i915_gem_context_param {
__u64 value;
};
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _UAPI_I915_DRM_H_ */
--
2.6.2
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...uest */
} drm_i810_mc_t;
-#endif /* _I810_DRM_H_ */
+#endif /* _UAPI_DRM_I810_DRM_H */
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index a1a7b6b..38a2493 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -24,8 +24,8 @@
*
*/
-#ifndef _UAPI_I915_DRM_H_
-#define _UAPI_I915_DRM_H_
+#ifndef _UAPI_DRM_I915_DRM_H
+#define _UAPI_DRM_I915_DRM_H
#include <drm/drm.h>
@@ -1005,4 +1005,4 @@ struct drm_i915_reg_read {
__u64 offset;
__u64 val; /* Return value */
};
-#endif /* _UAPI_I915_DRM_H_ */
+#endif /* _UAPI_DRM_I915_DRM_H */
diff --git a...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...uest */
} drm_i810_mc_t;
-#endif /* _I810_DRM_H_ */
+#endif /* _UAPI_DRM_I810_DRM_H */
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index a1a7b6b..38a2493 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -24,8 +24,8 @@
*
*/
-#ifndef _UAPI_I915_DRM_H_
-#define _UAPI_I915_DRM_H_
+#ifndef _UAPI_DRM_I915_DRM_H
+#define _UAPI_DRM_I915_DRM_H
#include <drm/drm.h>
@@ -1005,4 +1005,4 @@ struct drm_i915_reg_read {
__u64 offset;
__u64 val; /* Return value */
};
-#endif /* _UAPI_I915_DRM_H_ */
+#endif /* _UAPI_DRM_I915_DRM_H */
diff --git a...
2013 Aug 02
3
[PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
...uest */
} drm_i810_mc_t;
-#endif /* _I810_DRM_H_ */
+#endif /* _UAPI_DRM_I810_DRM_H */
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index a1a7b6b..38a2493 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -24,8 +24,8 @@
*
*/
-#ifndef _UAPI_I915_DRM_H_
-#define _UAPI_I915_DRM_H_
+#ifndef _UAPI_DRM_I915_DRM_H
+#define _UAPI_DRM_I915_DRM_H
#include <drm/drm.h>
@@ -1005,4 +1005,4 @@ struct drm_i915_reg_read {
__u64 offset;
__u64 val; /* Return value */
};
-#endif /* _UAPI_I915_DRM_H_ */
+#endif /* _UAPI_DRM_I915_DRM_H */
diff --git a...
2016 Apr 21
25
[PATCH 00/24] drm: add extern C guard for the UAPI headers
Hi all,
As some of you may know there some subtle distinction between C and C++
structs, thus one should wrap/annotate them roughly like below.
...
#if defined(__cplusplus)
extern "C" {
#endif
struct foo {
int bar;
...
};
...
#if defined(__cplusplus)
}
#endif
In order to work around the lack of these users can wrap the header
inclusion in the same way. For example: