diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 14:12:37 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 11:41:07 +0400 |
commit | 969939087da7aca386ff166a1c67ee9707215feb (patch) | |
tree | 0f10878d374859903b7db0afe0195024b90c2bd3 /include/drm | |
parent | 71930d74e4ad5b2cddc03e0a47ad0cc7ba51845c (diff) | |
download | linux-969939087da7aca386ff166a1c67ee9707215feb.tar.xz |
drm: order includes alphabetically in drmP.h
It is hardly possible to review the drmP.h includes, anymore. Order them
alphabetically, linux/ first, then asm/ and then local drm/ includes.
Since a long time ago, kernel headers have been converted to include
required headers themselves. No-one cares whether that means the compiler
has to include a header multiple times. In fact, GCC already does some
optimization regarding multiple inclusions if a sorrounding #ifndef is
present.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index c6f337c54d9f..8b3f3b7dc2f2 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -35,38 +35,42 @@ #ifndef _DRM_P_H_ #define _DRM_P_H_ -#include <linux/sched.h> -#include <linux/kernel.h> -#include <linux/kref.h> -#include <linux/miscdevice.h> +#include <linux/agp_backend.h> +#include <linux/cdev.h> +#include <linux/dma-mapping.h> +#include <linux/file.h> #include <linux/fs.h> +#include <linux/highmem.h> +#include <linux/idr.h> #include <linux/init.h> -#include <linux/file.h> -#include <linux/platform_device.h> -#include <linux/pci.h> +#include <linux/io.h> #include <linux/jiffies.h> -#include <linux/dma-mapping.h> +#include <linux/kernel.h> +#include <linux/kref.h> +#include <linux/miscdevice.h> #include <linux/mm.h> -#include <linux/cdev.h> #include <linux/mutex.h> -#include <linux/io.h> -#include <linux/slab.h> +#include <linux/pci.h> +#include <linux/platform_device.h> +#include <linux/poll.h> #include <linux/ratelimit.h> -#include <asm/mman.h> -#include <asm/uaccess.h> +#include <linux/sched.h> +#include <linux/slab.h> #include <linux/types.h> -#include <linux/agp_backend.h> -#include <linux/workqueue.h> -#include <linux/poll.h> -#include <linux/highmem.h> #include <linux/vmalloc.h> +#include <linux/workqueue.h> + +#include <asm/mman.h> #include <asm/pgalloc.h> +#include <asm/uaccess.h> + #include <drm/drm.h> +#include <drm/drm_hashtab.h> +#include <drm/drm_mm.h> +#include <drm/drm_os_linux.h> #include <drm/drm_sarea.h> #include <drm/drm_vma_manager.h> -#include <linux/idr.h> - struct module; struct drm_file; @@ -77,10 +81,6 @@ struct device_node; struct videomode; struct reservation_object; -#include <drm/drm_os_linux.h> -#include <drm/drm_hashtab.h> -#include <drm/drm_mm.h> - /* * 4 debug categories are defined: * |