From 969939087da7aca386ff166a1c67ee9707215feb Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 29 Aug 2014 12:12:37 +0200 Subject: [PATCH] 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 Acked-by: Thierry Reding Signed-off-by: Dave Airlie --- include/drm/drmP.h | 46 +++++++++++++++++++++++----------------------- 1 file 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 -#include -#include -#include +#include +#include +#include +#include #include +#include +#include #include -#include -#include -#include +#include #include -#include +#include +#include +#include #include -#include #include -#include -#include +#include +#include +#include #include -#include -#include +#include +#include #include -#include -#include -#include -#include #include +#include + +#include #include +#include + #include +#include +#include +#include #include #include -#include - struct module; struct drm_file; @@ -77,10 +81,6 @@ struct device_node; struct videomode; struct reservation_object; -#include -#include -#include - /* * 4 debug categories are defined: * -- 2.20.1