Thread (8 messages) flat view 8 messages, 3 authors, 2015-10-21

Re: [PATCH v4 04/79] drm_mode.h: use __u32 and __u64 from linux/types.h

From: Alex Deucher <hidden>
Date: 2015-10-15 13:32:13
Also in: dri-devel, lkml

On Thu, Oct 15, 2015 at 1:55 AM, Mikko Rapeli [off-list ref] wrote:
Fixes userspace compilation error:

drm/drm_mode.h:472:2: error: unknown type name ‘uint32_t’

Signed-off-by: Mikko Rapeli <redacted>
NACK on all these type conversions.  This has not been a problem for
years and years and the result looks terrible.

Alex
quoted hunk ↗ jump to hunk
---
 include/uapi/drm/drm_mode.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index 359107a..0ed8d9d 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -508,14 +508,14 @@ struct drm_mode_crtc_page_flip {

 /* create a dumb scanout buffer */
 struct drm_mode_create_dumb {
-       uint32_t height;
-       uint32_t width;
-       uint32_t bpp;
-       uint32_t flags;
+       __u32 height;
+       __u32 width;
+       __u32 bpp;
+       __u32 flags;
        /* handle, pitch, size will be returned */
-       uint32_t handle;
-       uint32_t pitch;
-       uint64_t size;
+       __u32 handle;
+       __u32 pitch;
+       __u64 size;
 };

 /* set up for mmap of a dumb scanout buffer */
@@ -532,7 +532,7 @@ struct drm_mode_map_dumb {
 };

 struct drm_mode_destroy_dumb {
-       uint32_t handle;
+       __u32 handle;
 };

 /* page-flip flags are valid, plus: */
--
2.5.0

_______________________________________________
dri-devel mailing list
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help