From patchwork Sun Dec 30 17:48:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10745171 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 E5BB86C2 for ; Sun, 30 Dec 2018 17:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4ACD28830 for ; Sun, 30 Dec 2018 17:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C60ED2899C; Sun, 30 Dec 2018 17:49:44 +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 36ECB28830 for ; Sun, 30 Dec 2018 17:49:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C644F6E3EA; Sun, 30 Dec 2018 17:49:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5214A6E3C5 for ; Sun, 30 Dec 2018 17:49:09 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id a16so17332876lfg.3 for ; Sun, 30 Dec 2018 09:49:09 -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; bh=4E+CRC/Vb1YBvB774DuOXRpJUYqdKQe5t91V4N0keqM=; b=GxDk8N9NRSCK6yECjnGng8hOLr9PvBoM0QfZB/tzAZphhE89YEdTzgmTaGZxYW5p1V YKd3kelOmtS6xsBeonl6ztU/jWJzLBaqEBZZwyvmkyhr3kcdPgrgB9AJtNGg0mFFpoPI jzpvDH2ZXXcWIhIjq7yHytoGOU4m1nyOSV/kvy9ujk9mGggJtlYudFaz+cJPSXP1r8HZ Tz+uMf1pyexnvM0aAbxvaAPx/hfrII6uNcv70tChNG1oQ+t+SdOR4HaFAfpm/r2Ek6XG czLm7W305JRIF0e8OOnU+A7g1G7Ug9qEiSh2oetOAueqXvXu6q9Sr+4cuW93y7JVfM2e o0qg== X-Gm-Message-State: AA+aEWaBPjs+WNPMnDvKxwnZzZIKQ+TKoiywJl+U5tMJYP1ao2nqsoIA xXyKbb/sqMeyN6Z0t3sXDk0= X-Google-Smtp-Source: AFSGD/VxNz6Dh1amyqnZXFLMwAP3/t125Up6TTWgAnferqJMBdC8tk80NeyWHhO2CEqTB9WnW3M/cA== X-Received: by 2002:a19:f204:: with SMTP id q4mr18621487lfh.133.1546192147339; Sun, 30 Dec 2018 09:49:07 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id q11sm8853170lfc.92.2018.12.30.09.49.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 09:49:06 -0800 (PST) From: Sam Ravnborg To: Daniel Vetter , David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Lechner , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 10/14] drm: remove include of drmP.h from drm_modeset_helper.h Date: Sun, 30 Dec 2018 18:48:34 +0100 Message-Id: <20181230174838.32330-11-sam@ravnborg.org> X-Mailer: git-send-email 2.12.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: 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