From patchwork Tue Jan 8 19:29:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10752771 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 5FFE491E for ; Tue, 8 Jan 2019 19:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51A8F28E2B for ; Tue, 8 Jan 2019 19:30:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 459D128E28; Tue, 8 Jan 2019 19:30:17 +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 AEBE228DF0 for ; Tue, 8 Jan 2019 19:30:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6AC76F035; Tue, 8 Jan 2019 19:30:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id E80556F024 for ; Tue, 8 Jan 2019 19:30:00 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id x85-v6so4432973ljb.2 for ; Tue, 08 Jan 2019 11:30:00 -0800 (PST) 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; bh=4E+CRC/Vb1YBvB774DuOXRpJUYqdKQe5t91V4N0keqM=; b=f7xxrjJ+btGJu4DtS7UU9Z0KNkakSUlQYjgob67W2Px+JrF5PZsJ1Pae/sGC+KtspH pHrJQH9AxF+oCdkB1k8UD+qnM+PN6mlDRyh9ZQSVBkFzNhzl+WcgfA1Qwp9nNgZv+6Gq 8zNnD0N+UgW5CStVkjwQVh/GHcCOl+Kh52Bhq4ZeSrvSJB2f99g2E9OtAdkHRYeX96T6 TM7zzrwGvnD/WZFB1GSzyXbohs8zKFLHBBnpvZqcCc/No7fBwyq6skxvXM9dBDgm67+c /T6pL7vaUJ/3cFcBOY+NmdBUuUC1hQDKlZJJ1yyIXoW3H0Dc2tXxrmJRlrr2pxE5X8rl hECQ== X-Gm-Message-State: AJcUukdb69SfY75TGByqO5IpRuRB6xIp/IUh0Kh8gd/KNjcFoGpZabjy nkBkgy9ybSIMtaXTy3rn7DM= X-Google-Smtp-Source: ALg8bN6Sz9ejynb3IjR/B/eLPLCoxIozXkiylHTiMOe9oFrcnLjg60ang+aeuPcQdTHZqIks4wNe2Q== X-Received: by 2002:a2e:990e:: with SMTP id v14-v6mr1978936lji.60.1546975799298; Tue, 08 Jan 2019 11:29:59 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id q128-v6sm9122246ljq.14.2019.01.08.11.29.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 11:29:58 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Lechner , Laurent Pinchart , =?utf-8?q?Noralf_Tr?= =?utf-8?q?=C3=B8nnes?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 08/12] drm: remove include of drmP.h from drm_modeset_helper.h Date: Tue, 8 Jan 2019 20:29:35 +0100 Message-Id: <20190108192939.15255-9-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190108192939.15255-1-sam@ravnborg.org> References: <20190108192939.15255-1-sam@ravnborg.org> 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: Alexey Brodkin , Kieran Bingham , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP drmP.h is an relic from the days when there was a single header file. To enable the removal of drmP.h from all users drop include of drmP.h from drm_modeset_helper.h. A few files relied on the file included in drmP.h - add explicit include statements to these files. Build tested with arm and x86. v2: - Add forward declarations to drm_modeset_helper.h (Laurent Pinchart) Signed-off-by: Sam Ravnborg Reviewed-by: Laurent Pinchart Cc: Alexey Brodkin Cc: David Airlie Cc: Daniel Vetter Cc: Archit Taneja Cc: Andrzej Hajda Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: Kieran Bingham --- drivers/gpu/drm/arc/arcpgu_sim.c | 1 + drivers/gpu/drm/bridge/cdns-dsi.c | 2 ++ drivers/gpu/drm/drm_modeset_helper.c | 2 ++ drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 + include/drm/drm_modeset_helper.h | 6 +++++- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arc/arcpgu_sim.c b/drivers/gpu/drm/arc/arcpgu_sim.c index 68629e614990..3b7556f62230 100644 --- a/drivers/gpu/drm/arc/arcpgu_sim.c +++ b/drivers/gpu/drm/arc/arcpgu_sim.c @@ -14,6 +14,7 @@ * */ +#include #include #include diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c index ce9496d13986..4b73d0969468 100644 --- a/drivers/gpu/drm/bridge/cdns-dsi.c +++ b/drivers/gpu/drm/bridge/cdns-dsi.c @@ -8,11 +8,13 @@ #include #include #include +#include #include #include #include