From patchwork Sat May 25 20:43:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10961137 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 8E2F51708 for ; Sat, 25 May 2019 20:43:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FEB328A96 for ; Sat, 25 May 2019 20:43:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73F9E28A93; Sat, 25 May 2019 20:43:57 +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 1A89828A95 for ; Sat, 25 May 2019 20:43:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1875D6E17D; Sat, 25 May 2019 20:43:48 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id D48646E178; Sat, 25 May 2019 20:43:41 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id y13so9429037lfh.9; Sat, 25 May 2019 13:43:41 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=wFWlKZ/pYnTk7UDoDTViW4O40AWB+G5ACjY8N4o0ml8=; b=kfBd4hN8/rd5CunfVWsBHyUGu934lIihJjr2xPvUscHjdGI7uz7x7s8H3obnE3qQ6S FaMBQLiK9Vl7ai9jUCajgINSrL0jqZCWOol8XxKiOEDN+iI8KNN7qPYmSTPN4nTVjnbk CuFDLk+4mpY+UdYpvOWNil4BDFEM/abJAN193p6iJj/GmjP4eeqjJ0GZLHgdMF7xj0/l WnpP1hXpT3MMfXsOq2MunJMH5AI92M9vA1ziA5X4Y6ILBsdEIUNpBmF23vfaRvSlsc17 qVJd34K/URqWdP/f2XWZz/ubEufg3UjaNud1lAMyyUQLK0LNIMmRD2kr1sKLmJnnisFW APcA== X-Gm-Message-State: APjAAAXCpiW6S8q/5nmfWKUVx8oFPveC25iuk+40avLwkdYZbi5k5JFk Ajuo1yVIoT9rmtmJLKzd1XHlN6WN X-Google-Smtp-Source: APXvYqyE3UaFtL8YEmyqXfEpC681kGpNxMU269HOeii4G8htso17xtbExvxs7qP+72D4MIS0/usPaA== X-Received: by 2002:ac2:5691:: with SMTP id 17mr3831985lfr.181.1558817019534; Sat, 25 May 2019 13:43:39 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id i187sm1328569lfe.64.2019.05.25.13.43.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 May 2019 13:43:39 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Date: Sat, 25 May 2019 22:43:17 +0200 Message-Id: <20190525204319.28977-4-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190525204319.28977-1-sam@ravnborg.org> References: <20190525204319.28977-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wFWlKZ/pYnTk7UDoDTViW4O40AWB+G5ACjY8N4o0ml8=; b=Uv2F0ioWGmbe3TaLTDz6JUec9yD16ss6+aVEWM87EC97YTTSbH1XiZMGZSLKOuokd3 d/DAfvVqke40d01BMS8MLc8a2lmjbbMMoti3z0QwR/FbfC5XQ4qmoTtTxJfSEXmuFGAG /l6aLk410atdtvX6B9S05QHJoeQhonz1JYlmuSzCwxQYFC5e+MNmqgpFyYEvz5xwFy0T 0P4MX+td9wEuT0SrYb9MIyC11iHg3udsiGPV3bqr+D1lcYuZ1LNZyPQwKdiCzHnxMm5F PU1N9jQzylp5EyamIbkMTLE89zAgWmOp5fSGxhtQfJ/K3wTgGLH1uH05SiIqy7f3S/re X7Sw== Subject: [Intel-gfx] [PATCH v3 3/5] drm/gma500: make local header files more self-contained 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: David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, Sam Ravnborg Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Add proper forward declarations to minimize dependencies on other header files. Just add enough that we can safely include all header files in alphabetically order in relevant files. Signed-off-by: Sam Ravnborg Acked-by: Daniel Vetter Acked-by: Patrik Jakobsson Cc: David Airlie --- drivers/gpu/drm/gma500/blitter.h | 2 ++ drivers/gpu/drm/gma500/cdv_device.h | 4 ++++ drivers/gpu/drm/gma500/gma_device.h | 1 + drivers/gpu/drm/gma500/gma_display.h | 3 +++ drivers/gpu/drm/gma500/mid_bios.h | 1 + drivers/gpu/drm/gma500/oaktrail.h | 2 ++ 6 files changed, 13 insertions(+) diff --git a/drivers/gpu/drm/gma500/blitter.h b/drivers/gpu/drm/gma500/blitter.h index b83648df590d..69551a2fc0f4 100644 --- a/drivers/gpu/drm/gma500/blitter.h +++ b/drivers/gpu/drm/gma500/blitter.h @@ -17,6 +17,8 @@ #ifndef __BLITTER_H #define __BLITTER_H +struct drm_psb_private; + extern int gma_blt_wait_idle(struct drm_psb_private *dev_priv); #endif diff --git a/drivers/gpu/drm/gma500/cdv_device.h b/drivers/gpu/drm/gma500/cdv_device.h index 705c11d47d45..19e544ba21cb 100644 --- a/drivers/gpu/drm/gma500/cdv_device.h +++ b/drivers/gpu/drm/gma500/cdv_device.h @@ -15,6 +15,10 @@ * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. */ +struct drm_crtc; +struct drm_device; +struct psb_intel_mode_device; + extern const struct drm_crtc_helper_funcs cdv_intel_helper_funcs; extern const struct drm_crtc_funcs cdv_intel_crtc_funcs; extern const struct gma_clock_funcs cdv_clock_funcs; diff --git a/drivers/gpu/drm/gma500/gma_device.h b/drivers/gpu/drm/gma500/gma_device.h index e1dbb007b820..9f0bb916562f 100644 --- a/drivers/gpu/drm/gma500/gma_device.h +++ b/drivers/gpu/drm/gma500/gma_device.h @@ -15,6 +15,7 @@ #ifndef _GMA_DEVICE_H #define _GMA_DEVICE_H +struct drm_device; extern void gma_get_core_freq(struct drm_device *dev); diff --git a/drivers/gpu/drm/gma500/gma_display.h b/drivers/gpu/drm/gma500/gma_display.h index 239c374b6169..e970cb869ea7 100644 --- a/drivers/gpu/drm/gma500/gma_display.h +++ b/drivers/gpu/drm/gma500/gma_display.h @@ -24,6 +24,9 @@ #include +struct drm_encoder; +struct drm_mode_set; + struct gma_clock_t { /* given values */ int n; diff --git a/drivers/gpu/drm/gma500/mid_bios.h b/drivers/gpu/drm/gma500/mid_bios.h index 00e7d564b7eb..59e43a68a21d 100644 --- a/drivers/gpu/drm/gma500/mid_bios.h +++ b/drivers/gpu/drm/gma500/mid_bios.h @@ -16,6 +16,7 @@ * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * **************************************************************************/ +struct drm_device; extern int mid_chip_setup(struct drm_device *dev); diff --git a/drivers/gpu/drm/gma500/oaktrail.h b/drivers/gpu/drm/gma500/oaktrail.h index 30adbbe23024..e41bcab5a585 100644 --- a/drivers/gpu/drm/gma500/oaktrail.h +++ b/drivers/gpu/drm/gma500/oaktrail.h @@ -17,6 +17,8 @@ * **************************************************************************/ +struct psb_intel_mode_device; + /* MID device specific descriptors */ struct oaktrail_timing_info {