drm: add missing header file <linuc/types.h>
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.
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
Signed-off-by WANG Cong <[email protected]>---
include/drm/drm_mode.h +2
-0@@ -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@@ -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 areinclude/drm/mga_drm.h +1
-0@@ -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 theinclude/drm/radeon_drm.h +1
-0@@ -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 theinclude/drm/via_drm.h +1
-0@@ -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
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.hfromdrm.h.
Thanks, then these warnings should be bogus.