Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9988854imu; Sun, 30 Dec 2018 09:51:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5opAO9HxPzWHP0tQjTCINyaWtxK9THNpBWdk5s9pUO3xkfqkjHihBPpS8L8h15SWfso6WP X-Received: by 2002:a63:f34b:: with SMTP id t11mr5137615pgj.341.1546192283228; Sun, 30 Dec 2018 09:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546192283; cv=none; d=google.com; s=arc-20160816; b=fd/Vf9nyjFgkVTFLBA/QXl43WRgJqt0dpFWqTYv/kcNzLJnUc36Mndb6GDVL22RTTF ieQOH63Ka11RozAFagQ7P0yD1dei8GvAtve0ZMwwtrw0IoQASDwZtTRHcGUO5N1EEJBI QZqsgKhOCPVnSIqGThmCl/fYIpumS32UzTzVfqLc7AodXADbD1TDwp5mufDXKnQfx0Py JTH+eOj46N1aGEgUAbhxoZ8nGbl/H+UQx6FNkDw2uhcijHljCO8mms4Y5UX3NuZYQpux 37DHqkgAcNb0n05Z6yTN86NF+o+vnbuYphDnXNHnumJ5rD3ZTicNZSAKeZirWAEiTUCN Okxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=rsqg6VO4Q8c9jUSGJHvew3cVal4OPEurWyEvoMbmpIE=; b=j094FckoRene+wbYqeZyFGG9IaQrDopnykEevQo6sybWuW7gnN4jjrQBFUPZLuOLLT Ml794gN9eDlLRgCazuCl6lLSCr46UObmq25bS5IUpsxXzKOgghptOoxPaX/01mHOI68M 5OIH8IQ8Zhjr4vxjruWSWY5M5rPpjZ+t34hNgsmbD3A5AqkJqKozpGd9855x4PW0qhX1 mcV028gm/HPLuBh7Cwl4CwBoM93hgfWtSRaFNpv6mHiYgyrxIU8/P4zCcFL+iyQ7KTdL 48tB+DeG/QaQgOq84O7iBQR/RXcDVULzrMyxrdyrHKuHpJDWn3rIeQGJkgqciR+AsFhi 7kVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DPs5JqwX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si12277911plm.334.2018.12.30.09.51.08; Sun, 30 Dec 2018 09:51:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DPs5JqwX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbeL3Rtr (ORCPT + 99 others); Sun, 30 Dec 2018 12:49:47 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40356 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbeL3RtH (ORCPT ); Sun, 30 Dec 2018 12:49:07 -0500 Received: by mail-lf1-f65.google.com with SMTP id v5so17298155lfe.7 for ; Sun, 30 Dec 2018 09:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=rsqg6VO4Q8c9jUSGJHvew3cVal4OPEurWyEvoMbmpIE=; b=DPs5JqwXiC0elMWhgWYImhzBIXfnVPuByVl0yOc2UUOiaM5zh/jrsYxBbdBehlU/Vf OwUoa/wbOT3JuWQpYonDG0ifgqQW6GqtxvZL47hFEpbIn69j3xW7TO01kJA8Jz6BALP+ pWMhm/BU2bpqLwm1T2whAbsyYszfTggxoT7CH5rltWarWWtWhkriNIP/zB5siQLpNBk1 8YHqHQtn+NpUvDbLTqF7F3NEi1NrfDjLABWpQaxCim78i857xrhdUZLYqQQTUXWdA69j xHmyTVNgf8T3Di3zGyTz9hXNdOZLwLCe30pthClGxRPiQosPm1OK0zQAcmOo2fGh5Sbx GgmA== 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=rsqg6VO4Q8c9jUSGJHvew3cVal4OPEurWyEvoMbmpIE=; b=Er2VsNOMbpsImQNRC+JIoEisxHQ5FV1Cqzbd2DQtLA8tAUb4zxKTuHaTHWTrrYe+ci kfj7InDaV6qlJmVlbcoF5njFLamKpXacxKddCej2fzZfwt56j1T2EZkdyeziULOp2FoU bdFZFbFELBG01R8d7AGjPCgqvdAMtOyZP6Oe2uk+EBJeolMlAWCkUXgvpCFQNu8FLN3g vWbQm1GkHAuVSrnJHaeBzklUds1PM+GV1W4Z0Q9orkYWX5WUB9/flUesnnbQ6DlXKw9g NfFc6YbJCPqMEPen6DV7DgbJ6zodJod/G5fPdz8qL2wc26GlWr1BRwugPzHzMNQBsTBN 3S+Q== X-Gm-Message-State: AA+aEWZcaG/0xzTFwqcHVtdd5w80w/ZQecQX75owZJhRtoVy1IiC07Rq fymG801q6GBlgfdTIh/pdGE= X-Received: by 2002:ac2:50c4:: with SMTP id h4mr17007960lfm.81.1546192145307; Sun, 30 Dec 2018 09:49:05 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 09:49:04 -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 Cc: Sam Ravnborg , Archit Taneja , Andrzej Hajda , Kieran Bingham , Fabio Estevam , Neil Armstrong Subject: [PATCH v2 08/14] drm: remove include of drmP.h from bridge/dw_hdmi.h Date: Sun, 30 Dec 2018 18:48:32 +0100 Message-Id: <20181230174838.32330-9-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 bridge/dw_hdmi.h. A few files relied on the file included in drmP.h - add explicit include statements or forward declarations to these files. Build tested with arm and x86. v2: - prefer forward declarations when possible (Laurent Pinchart) - sort include files (Laurent Pinchart) Signed-off-by: Sam Ravnborg Reviewed-by: Laurent Pinchart Cc: Archit Taneja Cc: Andrzej Hajda Cc: David Airlie Cc: Daniel Vetter Cc: Kieran Bingham Cc: Fabio Estevam Cc: Neil Armstrong Cc: Maxime Ripard --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 4 ++++ drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c | 1 + include/drm/bridge/dw_hdmi.h | 6 ++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c index 2228689d9a5e..5cbb71a866d5 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c @@ -5,6 +5,10 @@ * Copyright (c) 2017 Renesas Solutions Corp. * Kuninori Morimoto */ + +#include +#include + #include #include diff --git a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c index 75490a3e0a2a..790d499daa10 100644 --- a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c +++ b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c @@ -7,6 +7,7 @@ * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) */ +#include #include #include diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h index 9c56412bb2cf..9f93895dde88 100644 --- a/include/drm/bridge/dw_hdmi.h +++ b/include/drm/bridge/dw_hdmi.h @@ -10,9 +10,11 @@ #ifndef __DW_HDMI__ #define __DW_HDMI__ -#include - +struct drm_connector; +struct drm_display_mode; +struct drm_encoder; struct dw_hdmi; +struct platform_device; /** * DOC: Supported input formats and encodings -- 2.12.0