aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-25 18:54:33 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:12:58 -0400
commitfce875d647171f9f740587a252fc026aaa421afe (patch)
treee028834a3f74c454fe4d5d966006a2db9281ff41
parentc0077061e7ea3a8c1c316c87a79976bf8f00beb5 (diff)
drm/nouveau: move compat ioctl out of nouveau_drv.h
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/Makefile2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.c1
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h3
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ioc32.c2
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_ioctl.h6
5 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/Makefile b/drivers/gpu/drm/nouveau/Makefile
index c1ce650f5741..a333c95d8bd6 100644
--- a/drivers/gpu/drm/nouveau/Makefile
+++ b/drivers/gpu/drm/nouveau/Makefile
@@ -168,6 +168,7 @@ nouveau-y += nv50_fbcon.o nvc0_fbcon.o
168# drm/kms/nvd9- 168# drm/kms/nvd9-
169 169
170# other random bits 170# other random bits
171nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
171nouveau-$(CONFIG_ACPI) += nouveau_acpi.o 172nouveau-$(CONFIG_ACPI) += nouveau_acpi.o
172 173
173## 174##
@@ -201,7 +202,6 @@ nouveau-y += nv04_pm.o nv40_pm.o nv50_pm.o nva3_pm.o nvc0_pm.o
201nouveau-y += nouveau_mem.o 202nouveau-y += nouveau_mem.o
202 203
203# optional stuff 204# optional stuff
204nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
205nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o 205nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
206 206
207 207
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index 6a5d548347ca..204772160a4e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -37,6 +37,7 @@
37#include "nouveau_pm.h" 37#include "nouveau_pm.h"
38#include "nv50_display.h" 38#include "nv50_display.h"
39#include "nouveau_acpi.h" 39#include "nouveau_acpi.h"
40#include "nouveau_ioctl.h"
40 41
41#include "drm_pciids.h" 42#include "drm_pciids.h"
42 43
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index ffe2b0f9fb75..5d2da1bd12f2 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -405,9 +405,6 @@ int nouveau_ttm_mmap(struct file *, struct vm_area_struct *);
405/* nouveau_hdmi.c */ 405/* nouveau_hdmi.c */
406void nouveau_hdmi_mode_set(struct drm_encoder *, struct drm_display_mode *); 406void nouveau_hdmi_mode_set(struct drm_encoder *, struct drm_display_mode *);
407 407
408extern long nouveau_compat_ioctl(struct file *file, unsigned int cmd,
409 unsigned long arg);
410
411/* nvd0_display.c */ 408/* nvd0_display.c */
412extern int nvd0_display_create(struct drm_device *); 409extern int nvd0_display_create(struct drm_device *);
413extern void nvd0_display_destroy(struct drm_device *); 410extern void nvd0_display_destroy(struct drm_device *);
diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
index 475ba810bba3..6ac560ee478c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
@@ -36,7 +36,7 @@
36#include "drmP.h" 36#include "drmP.h"
37#include "drm.h" 37#include "drm.h"
38 38
39#include "nouveau_drv.h" 39#include "nouveau_ioctl.h"
40 40
41/** 41/**
42 * Called whenever a 32-bit process running under a 64-bit kernel 42 * Called whenever a 32-bit process running under a 64-bit kernel
diff --git a/drivers/gpu/drm/nouveau/nouveau_ioctl.h b/drivers/gpu/drm/nouveau/nouveau_ioctl.h
new file mode 100644
index 000000000000..ef2b2906d9e6
--- /dev/null
+++ b/drivers/gpu/drm/nouveau/nouveau_ioctl.h
@@ -0,0 +1,6 @@
1#ifndef __NOUVEAU_IOCTL_H__
2#define __NOUVEAU_IOCTL_H__
3
4long nouveau_compat_ioctl(struct file *, unsigned int cmd, unsigned long arg);
5
6#endif