From patchwork Wed Sep 5 13:57:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10588911 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 7A98A5A4 for ; Wed, 5 Sep 2018 13:57:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 694062A208 for ; Wed, 5 Sep 2018 13:57:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DDEB2A227; Wed, 5 Sep 2018 13:57:31 +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=ham 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 185A22A208 for ; Wed, 5 Sep 2018 13:57:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6737089FAD; Wed, 5 Sep 2018 13:57:30 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A72E89FAD for ; Wed, 5 Sep 2018 13:57:27 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id y20-v6so6180336edq.2 for ; Wed, 05 Sep 2018 06:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SzvwP+BeAkISG+8wxFAvzSqFTSQ3lk7BIL9+oqYwabc=; b=fc6ca7VRqfDyLLYRVcCINF4SR2hnbCbQYwz6qQZeV0XKlzVqTBam6p9BRt4tcxaklK 9taTDwI8HraUg7/21b20gl1owEQV/G6w9B+14NWlif5LwXCZ+/AUwwcdiqLRg2kXg2YA jMkAUl54p3WDKubaXOO9wls5/jKF9+EC7T7q2PCwsb06fhOckEIqy8DuasoNh15HQs+9 2fQKxEmfpu8J1mRR+0E7IUw6qIdH1kQ2XXc7mbrDJAZS13s9+O4/KNuzT89HOZrcj4dH ct9ehGhmYCn5e91fm3t7ltBBZmpEXyQ7ndyZ0Ud1YyahP390nJ5x1DjAvUfz7nX3nj5M XzDA== X-Gm-Message-State: APzg51AK5iGOrmvJvtSw0PdY9EhUMKphcLCKhYzweJ5c83zI4zPACK3K 83ArU2QZiPw0No/EPTtXSP4UsAqaTYKZrg== X-Google-Smtp-Source: ANB0VdZ2jpI4740ccbpO7aEXHXxeteOLvifIc89n2G0ChdBkxylwlKpFC+8mU1ZTUXAfBwBd/tcuEQ== X-Received: by 2002:a50:b5a5:: with SMTP id a34-v6mr41076170ede.88.1536155846267; Wed, 05 Sep 2018 06:57:26 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id p10-v6sm926439edh.9.2018.09.05.06.57.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 06:57:22 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Wed, 5 Sep 2018 15:57:06 +0200 Message-Id: <20180905135711.28370-2-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.19.0.rc1 In-Reply-To: <20180905135711.28370-1-daniel.vetter@ffwll.ch> References: <20180905135711.28370-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 2/7] drm: Drop drmP.h from drm_connector.c 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: Daniel Vetter , Intel Graphics Development , Daniel Vetter Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Only needed minimal changes in drm_internal.h (for the drm_ioctl_t type and a few forward declarations), plus a few missing includes in drm_connector.c. Yay, the last stage of the drm header cleanup can finally commence! v2: Compiles now, with drm/kernel.h extracted. Reviewed-by: Sean Paul Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_connector.c | 6 +++++- drivers/gpu/drm/drm_internal.h | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 6011d769d50b..526619f963e5 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -20,11 +20,15 @@ * OF THIS SOFTWARE. */ -#include #include #include #include #include +#include +#include +#include + +#include #include "drm_crtc_internal.h" #include "drm_internal.h" diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index 40179c5fc6b8..0c4eb4a9ab31 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -21,9 +21,14 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include + #define DRM_IF_MAJOR 1 #define DRM_IF_MINOR 4 +struct drm_prime_file_private; +struct dma_buf; + /* drm_file.c */ extern struct mutex drm_global_mutex; struct drm_file *drm_file_alloc(struct drm_minor *minor);