summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_vm.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-29 12:12:33 +0200
committerDave Airlie <airlied@redhat.com>2014-09-10 17:40:35 +1000
commit2791ee85e1e9805d600782e554f706458ec6c84e (patch)
treea11c15dead03028cc07e591106f2ba8a528a2b94 /drivers/gpu/drm/drm_vm.c
parentcc5ea5947a52b98cd9a03d4011a5a12b4e5a99c4 (diff)
downloadtalos-obmc-linux-2791ee85e1e9805d600782e554f706458ec6c84e.tar.gz
talos-obmc-linux-2791ee85e1e9805d600782e554f706458ec6c84e.zip
drm: replace weird conditional includes
pte_wrprotect() is only used by drm_vm.c, so move the include there. Also include it unconditionally, all architectures provide this header! Furthermore, replace asm/current.h with sched.h, which includes asm/current.h unconditionally. This way we get the same effect and avoid direct asm/ includes. Furthermore, drop the weird __alpha__ protection. It's safe to include sched.h everywhere (and the wait.h comment doesn't apply, anyway). Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_vm.c')
-rw-r--r--drivers/gpu/drm/drm_vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c
index be25174f10e4..967e570bb0d1 100644
--- a/drivers/gpu/drm/drm_vm.c
+++ b/drivers/gpu/drm/drm_vm.c
@@ -40,6 +40,7 @@
#include <linux/efi.h>
#include <linux/slab.h>
#endif
+#include <asm/pgtable.h>
#include "drm_legacy.h"
struct drm_vma_entry {
OpenPOWER on IntegriCloud