[PATCH 07/20] drm: replace weird conditional includes

Thierry Reding thierry.reding at gmail.com
Fri Aug 29 04:45:32 PDT 2014


On Fri, Aug 29, 2014 at 12:12:33PM +0200, David Herrmann wrote:
> 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 at gmail.com>
> ---
>  drivers/gpu/drm/drm_vm.c |  1 +
>  include/drm/drmP.h       | 10 +---------
>  2 files changed, 2 insertions(+), 9 deletions(-)

Reviewed-by: Thierry Reding <treding at nvidia.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140829/0e760bd6/attachment.sig>


More information about the dri-devel mailing list