From patchwork Sun May 26 17:35:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10961845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 185F791E for ; Sun, 26 May 2019 17:36:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 067C128A92 for ; Sun, 26 May 2019 17:36:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE3B028AA4; Sun, 26 May 2019 17:36:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1D2F28A92 for ; Sun, 26 May 2019 17:36:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8893B897E7; Sun, 26 May 2019 17:35:53 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7D7D89395; Sun, 26 May 2019 17:35:46 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id 136so281287lfa.8; Sun, 26 May 2019 10:35:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=3ITXzxx/6Lab/Sya+XIDKQuQRI2sQcflbBULHcbr6+o=; b=o2td7c3c6ZpQVEpKjSwbg2CVYRmM8n5Lp+NmXq8RdwqCWQ1fdvzf5zE4DBAaSORxVF dDwWVcITk2HSwI57sfQDaI/LluoHQ/jhsocngDyd69OaziXq1UKGDpY+tQ6fcuJxGKLl Cv0sDsWZYEufw1WAhRdFN4IR04qFSjQ1+1peDZiIGkS+XAwVWniHvsSCIg4rm2J/eFwA 662WuA/Ut7mKcavYFOOts9cL6V6QaaWpNPHGdlSVSCkuQ/w5xtBBM+UZtS1V9i8WBeQz ofqPblb3kez3cPJeIkFlaSFqLSDH8nvzl2LFOTvkb9BlJENkN2Sa7qJgnsovpsbAUMAh qXUw== X-Gm-Message-State: APjAAAXrO4nSceKKlz41Fp5Rm1qOgXYetBLlFa6mFGwuFZ18Md7AGBJ1 GUi2cOwJSeQ0ijof6ocxyqt+wIwe X-Google-Smtp-Source: APXvYqy8A+mq5lc732K88bRDD0/RNqCma9j3tF8ZsWiv/Zn6pDEuk7vOQvBK7mMsY8BeLtAUD7w9LQ== X-Received: by 2002:ac2:5285:: with SMTP id q5mr2562199lfm.146.1558892145072; Sun, 26 May 2019 10:35:45 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id n9sm1774489ljj.10.2019.05.26.10.35.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 10:35:44 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Date: Sun, 26 May 2019 19:35:30 +0200 Message-Id: <20190526173535.32701-3-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190526173535.32701-1-sam@ravnborg.org> References: <20190526173535.32701-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3ITXzxx/6Lab/Sya+XIDKQuQRI2sQcflbBULHcbr6+o=; b=sbl0Atwu7MxdVg4HOMOhM/xVUwWvT3xuBftyao3/9jexRxZArU3wP1kLxXrThH4Mwx UeqyztAh9V4A3DGCCGW24pPV3jF7BKQVNLSXTNLKgsdhS+3rsgkNtp5/I0jzKQ7PkACl PP9d9IkIqYYc5WFwFZABjJzH2JpXYoGuvzusFpvt45k7oLcfX1ixDT6WPnDd0Zw6MARB 5tN/x4LSOMglO2GYsvcCjIYEznxL7CnnF7Gx4hf1CfwdPzWN7PyqL1UhnKsMsM/d/rch IcZEHoZTEbHddlrdEOISby8NvaRL5L7mtyXZ0NZ0E0pLJx8wehSETcSbtjNEgAiGODC5 ysEA== Subject: [Intel-gfx] [PATCH v2 2/7] drm: make drm/drm_legacy.h self-contained X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , intel-gfx@lists.freedesktop.org, David Airlie Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Do not require users of include/drm/drm_legacy.h to include other files just to let it build. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_legacy.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h index 2182a56ac421..58dc0c04bf99 100644 --- a/include/drm/drm_legacy.h +++ b/include/drm/drm_legacy.h @@ -1,11 +1,5 @@ #ifndef __DRM_DRM_LEGACY_H__ #define __DRM_DRM_LEGACY_H__ - -#include -#include - -struct drm_device; - /* * Legacy driver interfaces for the Direct Rendering Manager * @@ -39,6 +33,12 @@ struct drm_device; * OTHER DEALINGS IN THE SOFTWARE. */ +#include +#include +#include + +struct drm_device; +struct file; /* * Legacy Support for palateontologic DRM drivers