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: 10588913 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 247345A4 for ; Wed, 5 Sep 2018 13:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1193D2A208 for ; Wed, 5 Sep 2018 13:57:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 058DE2A227; Wed, 5 Sep 2018 13:57:34 +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 1CDBF2A208 for ; Wed, 5 Sep 2018 13:57:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 025936E48D; Wed, 5 Sep 2018 13:57:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by gabe.freedesktop.org (Postfix) with ESMTPS id D9E5189FF7 for ; Wed, 5 Sep 2018 13:57:27 +0000 (UTC) Received: by mail-ed1-x542.google.com with SMTP id k14-v6so6128918edr.13 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=r64a63vFy4zvXD5vVNwVcd0RcXK5xefz2QWGsr5JZad7xKxm1leItsp35v35jnB8c2 ceOwUuNs5uzMWOaBLnTag8cqHU/UFm27fV+tT9LO/aTS5KUpDnZ6YX8djd0SebEJ9zV5 o9M4zOsC8xnWduBHtVeoyYJ8osh8wMuGAqtBMe7ORnj888eypZKWrIYnKgMzq2/YbsGA /x3edUe5HwY9FnNL1FTDNj0PG8XCWkwdUeDjt7BmPA1Y0wOSYI4QiTbh2rmIMgtXuj48 RGWFiEjerxEfYfR4Rx+lNyKjFFVCckCde/fVjiIyTYKEWiAnv9ExJqHWlQf4j508kIS5 WixA== X-Gm-Message-State: APzg51DEyr23eMCj3xneBNyyE0fgm2LHDd/zSozTJC+BsneiSrwo9DPR 4Xg0/qc9WtA9PPX48XiaHGPwXF/2FEzymQ== 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 Subject: [PATCH 2/7] drm: Drop drmP.h from drm_connector.c 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , Daniel Vetter Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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);