diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 06:12:37 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 03:41:07 -0400 |
commit | 969939087da7aca386ff166a1c67ee9707215feb (patch) | |
tree | 0f10878d374859903b7db0afe0195024b90c2bd3 /include/drm/drmP.h | |
parent | 71930d74e4ad5b2cddc03e0a47ad0cc7ba51845c (diff) |
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/drmP.h')
-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 @@ | |||
35 | #ifndef _DRM_P_H_ | 35 | #ifndef _DRM_P_H_ |
36 | #define _DRM_P_H_ | 36 | #define _DRM_P_H_ |
37 | 37 | ||
38 | #include <linux/sched.h> | 38 | #include <linux/agp_backend.h> |
39 | #include <linux/kernel.h> | 39 | #include <linux/cdev.h> |
40 | #include <linux/kref.h> | 40 | #include <linux/dma-mapping.h> |
41 | #include <linux/miscdevice.h> | 41 | #include <linux/file.h> |
42 | #include <linux/fs.h> | 42 | #include <linux/fs.h> |
43 | #include <linux/highmem.h> | ||
44 | #include <linux/idr.h> | ||
43 | #include <linux/init.h> | 45 | #include <linux/init.h> |
44 | #include <linux/file.h> | 46 | #include <linux/io.h> |
45 | #include <linux/platform_device.h> | ||
46 | #include <linux/pci.h> | ||
47 | #include <linux/jiffies.h> | 47 | #include <linux/jiffies.h> |
48 | #include <linux/dma-mapping.h> | 48 | #include <linux/kernel.h> |
49 | #include <linux/kref.h> | ||
50 | #include <linux/miscdevice.h> | ||
49 | #include <linux/mm.h> | 51 | #include <linux/mm.h> |
50 | #include <linux/cdev.h> | ||
51 | #include <linux/mutex.h> | 52 | #include <linux/mutex.h> |
52 | #include <linux/io.h> | 53 | #include <linux/pci.h> |
53 | #include <linux/slab.h> | 54 | #include <linux/platform_device.h> |
55 | #include <linux/poll.h> | ||
54 | #include <linux/ratelimit.h> | 56 | #include <linux/ratelimit.h> |
55 | #include <asm/mman.h> | 57 | #include <linux/sched.h> |
56 | #include <asm/uaccess.h> | 58 | #include <linux/slab.h> |
57 | #include <linux/types.h> | 59 | #include <linux/types.h> |
58 | #include <linux/agp_backend.h> | ||
59 | #include <linux/workqueue.h> | ||
60 | #include <linux/poll.h> | ||
61 | #include <linux/highmem.h> | ||
62 | #include <linux/vmalloc.h> | 60 | #include <linux/vmalloc.h> |
61 | #include <linux/workqueue.h> | ||
62 | |||
63 | #include <asm/mman.h> | ||
63 | #include <asm/pgalloc.h> | 64 | #include <asm/pgalloc.h> |
65 | #include <asm/uaccess.h> | ||
66 | |||
64 | #include <drm/drm.h> | 67 | #include <drm/drm.h> |
68 | #include <drm/drm_hashtab.h> | ||
69 | #include <drm/drm_mm.h> | ||
70 | #include <drm/drm_os_linux.h> | ||
65 | #include <drm/drm_sarea.h> | 71 | #include <drm/drm_sarea.h> |
66 | #include <drm/drm_vma_manager.h> | 72 | #include <drm/drm_vma_manager.h> |
67 | 73 | ||
68 | #include <linux/idr.h> | ||
69 | |||
70 | struct module; | 74 | struct module; |
71 | 75 | ||
72 | struct drm_file; | 76 | struct drm_file; |
@@ -77,10 +81,6 @@ struct device_node; | |||
77 | struct videomode; | 81 | struct videomode; |
78 | struct reservation_object; | 82 | struct reservation_object; |
79 | 83 | ||
80 | #include <drm/drm_os_linux.h> | ||
81 | #include <drm/drm_hashtab.h> | ||
82 | #include <drm/drm_mm.h> | ||
83 | |||
84 | /* | 84 | /* |
85 | * 4 debug categories are defined: | 85 | * 4 debug categories are defined: |
86 | * | 86 | * |