Skip to contentSkip to conversation

drm: add missing header file <linuc/types.h>

PATCH In review Amerigo Wang 2 participants 3 messages Aug 8, 2011 – Aug 10, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: add missing header file <linuc/types.h>

This patch fixes the following 'make headers_check' errors:

linux-2.6/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type without #include <linux/types.h>

---

include/drm/drm_mode.h +2 -0
index c4961ea..fe8005f 100644
@@ -81,6 +81,8 @@
 #define DRM_MODE_DIRTY_ON       1
 #define DRM_MODE_DIRTY_ANNOTATE 2
 
+#include <linux/types.h>
+
 struct drm_mode_modeinfo {
 	__u32 clock;
 	__u16 hdisplay, hsync_start, hsync_end, htotal, hskew;
include/drm/i915_drm.h +1 -0
index 28c0d11..d7ddd33 100644
@@ -27,6 +27,7 @@
 #ifndef _I915_DRM_H_
 #define _I915_DRM_H_
 
+#include <linux/types.h>
 #include "drm.h"
 
 /* Please note that modifications to all structs defined here are
include/drm/mga_drm.h +1 -0
index fca8170..8058ce0 100644
@@ -35,6 +35,7 @@
 #ifndef __MGA_DRM_H__
 #define __MGA_DRM_H__
 
+#include <linux/types.h>
 #include "drm.h"
 
 /* WARNING: If you change any of these defines, make sure to change the
include/drm/radeon_drm.h +1 -0
index b65be60..f0be4c7 100644
@@ -33,6 +33,7 @@
 #ifndef __RADEON_DRM_H__
 #define __RADEON_DRM_H__
 
+#include <linux/types.h>
 #include "drm.h"
 
 /* WARNING: If you change any of these defines, make sure to change the
include/drm/via_drm.h +1 -0
index fd11a5b..23880b0 100644
@@ -24,6 +24,7 @@
 #ifndef _VIA_DRM_H_
 #define _VIA_DRM_H_
 
+#include <linux/types.h>
 #include "drm.h"
 
 /* WARNING: These defines must be the same as what the Xserver uses.
#1 lore raw
Quoted 8 lines · Amerigo Wang

This patch fixes the following 'make headers_check' errors:

linux-2.6/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type without #include <linux/types.h> linux-2.6/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type without #include <linux/types.h>

These files are shared with BSD, and they get the linux/types.h from drm.h.

Alex

Quoted 69 lines

---

include/drm/drm_mode.h +2 -0
index c4961ea..fe8005f 100644
@@ -81,6 +81,8 @@
  #define DRM_MODE_DIRTY_ON       1
  #define DRM_MODE_DIRTY_ANNOTATE 2
 
+#include <linux/types.h>
+
  struct drm_mode_modeinfo {
        __u32 clock;
        __u16 hdisplay, hsync_start, hsync_end, htotal, hskew;
include/drm/i915_drm.h +1 -0
index 28c0d11..d7ddd33 100644
@@ -27,6 +27,7 @@
  #ifndef _I915_DRM_H_
  #define _I915_DRM_H_
 
+#include <linux/types.h>
  #include "drm.h"
 
  /* Please note that modifications to all structs defined here are
include/drm/mga_drm.h +1 -0
index fca8170..8058ce0 100644
@@ -35,6 +35,7 @@
  #ifndef __MGA_DRM_H__
  #define __MGA_DRM_H__
 
+#include <linux/types.h>
  #include "drm.h"
 
  /* WARNING: If you change any of these defines, make sure to change the
include/drm/radeon_drm.h +1 -0
index b65be60..f0be4c7 100644
@@ -33,6 +33,7 @@
  #ifndef __RADEON_DRM_H__
  #define __RADEON_DRM_H__
 
+#include <linux/types.h>
  #include "drm.h"
 
  /* WARNING: If you change any of these defines, make sure to change the
include/drm/via_drm.h +1 -0
index fd11a5b..23880b0 100644
@@ -24,6 +24,7 @@
  #ifndef _VIA_DRM_H_
  #define _VIA_DRM_H_
 
+#include <linux/types.h>
  #include "drm.h"
 
  /* WARNING: These defines must be the same as what the Xserver uses.

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

author
#2 lore raw
Quoted 12 lines · Alex Deucher
Quoted 8 lines · Amerigo Wang

This patch fixes the following 'make headers_check' errors:

linux-2.6/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type without #include<linux/types.h> linux-2.6/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type without #include<linux/types.h> linux-2.6/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type without #include<linux/types.h> linux-2.6/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type without #include<linux/types.h> linux-2.6/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type without #include<linux/types.h>

These files are shared with BSD, and they get the linux/types.h from drm.h.

Thanks, then these warnings should be bogus.