summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h6
-rw-r--r--linux-core/i810_drv.c1
-rw-r--r--linux-core/mga_drv.c1
-rw-r--r--linux-core/r128_drv.c1
-rw-r--r--linux-core/tdfx_drv.c1
5 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 350d1ef9..9ad83bde 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -33,6 +33,7 @@
#define _DRM_P_H_
#ifdef __KERNEL__
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
@@ -129,7 +130,6 @@ typedef struct wait_queue *wait_queue_head_t;
#endif
/* Generic cmpxchg added in 2.3.x */
-#if CPU != 386
#ifndef __HAVE_ARCH_CMPXCHG
/* Include this here so that driver can be
used with older kernels. */
@@ -164,10 +164,6 @@ static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o), \
(unsigned long)(n),sizeof(*(ptr))))
#endif
-#else
- /* Compiling for a 386 proper... */
-#error DRI not supported on Intel 80386
-#endif
/* Macros to make printk easier */
#define DRM_ERROR(fmt, arg...) \
diff --git a/linux-core/i810_drv.c b/linux-core/i810_drv.c
index b523db90..6f78fbc9 100644
--- a/linux-core/i810_drv.c
+++ b/linux-core/i810_drv.c
@@ -29,6 +29,7 @@
*
*/
+#include <linux/config.h>
#define EXPORT_SYMTAB
#include "drmP.h"
#include "i810_drv.h"
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c
index 4b2c835f..e77d827b 100644
--- a/linux-core/mga_drv.c
+++ b/linux-core/mga_drv.c
@@ -30,6 +30,7 @@
*
*/
+#include <linux/config.h>
#define EXPORT_SYMTAB
#include "drmP.h"
#include "mga_drv.h"
diff --git a/linux-core/r128_drv.c b/linux-core/r128_drv.c
index 0c1e6fe5..8b669888 100644
--- a/linux-core/r128_drv.c
+++ b/linux-core/r128_drv.c
@@ -29,6 +29,7 @@
*
*/
+#include <linux/config.h>
#define EXPORT_SYMTAB
#include "drmP.h"
#include "r128_drv.h"
diff --git a/linux-core/tdfx_drv.c b/linux-core/tdfx_drv.c
index d8fef953..582832b5 100644
--- a/linux-core/tdfx_drv.c
+++ b/linux-core/tdfx_drv.c
@@ -30,6 +30,7 @@
*
*/
+#include <linux/config.h>
#define EXPORT_SYMTAB
#include "drmP.h"
#include "tdfx_drv.h"