summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-07 21:09:14 +1000
committerDave Airlie <airlied@linux.ie>2005-07-07 21:09:14 +1000
commit850eb83a6a21b086624b227653ce90ad927ba423 (patch)
tree2720dbfd9989d3b002c98e84f3f6b4f480506dad /drivers/char
parentc94f70298529d99ac6e1ee7709f61eab00adeb39 (diff)
downloadtalos-op-linux-850eb83a6a21b086624b227653ce90ad927ba423.tar.gz
talos-op-linux-850eb83a6a21b086624b227653ce90ad927ba423.zip
drm: wrap config.h include in a ifdef KERNEL
This file can be included from userspace so wrap the config.h include. Signed-off-by: David Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h
index 587305282ea8..e8371dd87fbc 100644
--- a/drivers/char/drm/drm.h
+++ b/drivers/char/drm/drm.h
@@ -38,7 +38,9 @@
#define _DRM_H_
#if defined(__linux__)
+#if defined(__KERNEL__)
#include <linux/config.h>
+#endif
#include <asm/ioctl.h> /* For _IO* macros */
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#define DRM_IOC_VOID _IOC_NONE
OpenPOWER on IntegriCloud