Skip to contentSkip to conversation

xf86drm: remove makedev() hack/workaround

PATCH In review Emil Velikov 1 participant 2 messages Aug 7, 2015 – Sep 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xf86drm: remove makedev() hack/workaround

Back when this was introduced commit 569da5a42eb(Merged glxmisc-3-0-0) sys/sysmacros.h was used instead of the respecive headers (as per the manual).

We've been handling it correctly for a little while now - in Linux, BSD and Solaris. Thus we can drop this workaround.

---
 xf86drm.c | 8 --------
 1 file changed, 8 deletions(-)
xf86drm.c +0 -8
index 5e02969..7e41537 100644
@@ -94,14 +94,6 @@
 #define DRM_MAJOR 226		/* Linux */
 #endif
 
-/*
- * This definition needs to be changed on some systems if dev_t is a structure.
- * If there is a header file we can get it from, there would be best.
- */
-#ifndef makedev
-#define makedev(x,y)    ((dev_t)(((x) << 8) | (y)))
-#endif
-
 #define DRM_MSG_VERBOSITY 3
 
 #define memclear(s) memset(&s, 0, sizeof(s))
Signature · 6 lines
2.5.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 32 lines · Emil Velikov

Back when this was introduced commit 569da5a42eb(Merged glxmisc-3-0-0) sys/sysmacros.h was used instead of the respecive headers (as per the manual).

We've been handling it correctly for a little while now - in Linux, BSD and Solaris. Thus we can drop this workaround.

---
 xf86drm.c | 8 --------
 1 file changed, 8 deletions(-)
xf86drm.c +0 -9
index 5e02969..7e41537 100644
@@ -94,14 +94,6 @@
 #define DRM_MAJOR 226          /* Linux */
 #endif
 
-/*
- * This definition needs to be changed on some systems if dev_t is a structure.
- * If there is a header file we can get it from, there would be best.
- */
-#ifndef makedev
-#define makedev(x,y)    ((dev_t)(((x) << 8) | (y)))
-#endif
-
 #define DRM_MSG_VERBOSITY 3
 
 #define memclear(s) memset(&s, 0, sizeof(s))
--
Quoted 2 lines

2.5.0

Humble ping anyone ?

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel