From: David Herrmann Date: Fri, 29 Aug 2014 10:12:33 +0000 (+0200) Subject: drm: replace weird conditional includes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2791ee85e1e9805d600782e554f706458ec6c84e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Reviewed-by: Thierry Reding Signed-off-by: Dave Airlie --- 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 #include #endif +#include #include "drm_legacy.h" struct drm_vma_entry { diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 7a3c73c5375d..31fb30047770 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -36,12 +36,7 @@ #define _DRM_P_H_ #ifdef __KERNEL__ -#ifdef __alpha__ -/* add include of current.h so that "current" is defined - * before static inline funcs in wait.h. Doing this so we - * can build the DRM (part of PI DRI). 4/21/2000 S + B */ -#include -#endif /* __alpha__ */ +#include #include #include #include @@ -58,9 +53,6 @@ #include #include #include -#if defined(__alpha__) || defined(__powerpc__) -#include /* For pte_wrprotect */ -#endif #include #include #include