From patchwork Fri Aug 29 10:12:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 4809891 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D2D0FC0338 for ; Fri, 29 Aug 2014 10:13:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08ED320127 for ; Fri, 29 Aug 2014 10:13:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2A94520123 for ; Fri, 29 Aug 2014 10:13:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15F346E69C; Fri, 29 Aug 2014 03:13:40 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by gabe.freedesktop.org (Postfix) with ESMTP id CBD3A6E695 for ; Fri, 29 Aug 2014 03:13:38 -0700 (PDT) Received: by mail-we0-f175.google.com with SMTP id k48so1947504wev.34 for ; Fri, 29 Aug 2014 03:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kTglUvtiwaBG8goB1KXV68g0Ot1OYvAXEXDtFjHwyzw=; b=oX2twn7LiyCWIxfeKimiM+Nbl7/keBn9DuNkVMUSheU8GHHjWYA4Orj+URT/kIS00W jqNwXPgFN2fB0NacszApbKQDjLPcifLuxYOyS6MulYyNZgR5VtWVuFKa9LwM/LwARBQk nJrOgQR/pVRIceOUHR204u3YliceKk74h3SFXiU9646L39rYzF1fdwS0stMzMf+LWjqL P9VmzSJ3VrhZU0186gaGiUI31o1S0xM4Xz8Spon05PVOe2W+GYtkh8OTS24u6/7jnL/L dUKcyO5OgNL4SjjdMjzPzM8mxe4RZkAuKOcRCrkzOHSg0HeeHd6222muEjcbfW5kHQ5t DYkw== X-Received: by 10.194.78.4 with SMTP id x4mr12380537wjw.44.1409307218138; Fri, 29 Aug 2014 03:13:38 -0700 (PDT) Received: from david-tp.localdomain (stgt-4d02e0c1.pool.mediaWays.net. [77.2.224.193]) by mx.google.com with ESMTPSA id la2sm17479347wjb.5.2014.08.29.03.13.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Aug 2014 03:13:37 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 11/20] drm: order includes alphabetically in drmP.h Date: Fri, 29 Aug 2014 12:12:37 +0200 Message-Id: <1409307166-12396-12-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1409307166-12396-1-git-send-email-dh.herrmann@gmail.com> References: <1409307166-12396-1-git-send-email-dh.herrmann@gmail.com> Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 c6f337c..8b3f3b7 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: *