All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Gmeiner <christian.gmeiner@gmail.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: The etnaviv authors <etnaviv@lists.freedesktop.org>,
	DRI mailing list <dri-devel@lists.freedesktop.org>,
	Russell King <linux+etnaviv@armlinux.org.uk>
Subject: Re: [PATCH 2/3] drm/etnaviv: replace header include with forward declaration
Date: Mon, 17 Dec 2018 17:05:06 +0100	[thread overview]
Message-ID: <CAH9NwWchhSJCGa73sfeWMSOLYYd3RoFjKi9+Kp-eooat4QGTJQ@mail.gmail.com> (raw)
In-Reply-To: <20181217153644.17046-2-l.stach@pengutronix.de>

Am Mo., 17. Dez. 2018 um 16:36 Uhr schrieb Lucas Stach <l.stach@pengutronix.de>:
>
> The etnaviv_gpu header only needs to know about the pointer types, so
> replace by a forward declaration and only include the headers where needed.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>

> ---
>  drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 ++
>  drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 5 ++---
>  2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> index 293e248e1b29..aefb17e39ad0 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
> @@ -3,10 +3,12 @@
>   * Copyright (C) 2015-2018 Etnaviv Project
>   */
>
> +#include <linux/clk.h>
>  #include <linux/component.h>
>  #include <linux/dma-fence.h>
>  #include <linux/moduleparam.h>
>  #include <linux/of_device.h>
> +#include <linux/regulator/consumer.h>
>  #include <linux/thermal.h>
>
>  #include "etnaviv_cmdbuf.h"
> diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
> index 74758f21e5d3..56b6a8ee7ec0 100644
> --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
> +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
> @@ -6,9 +6,6 @@
>  #ifndef __ETNAVIV_GPU_H__
>  #define __ETNAVIV_GPU_H__
>
> -#include <linux/clk.h>
> -#include <linux/regulator/consumer.h>
> -
>  #include "etnaviv_cmdbuf.h"
>  #include "etnaviv_drv.h"
>
> @@ -88,6 +85,8 @@ struct etnaviv_event {
>
>  struct etnaviv_cmdbuf_suballoc;
>  struct etnaviv_cmdbuf;
> +struct regulator;
> +struct clk;
>
>  #define ETNA_NR_EVENTS 30
>
> --
> 2.19.1
>


-- 
greets
--
Christian Gmeiner, MSc

https://christian-gmeiner.info
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-12-17 16:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 15:36 [PATCH 1/3] drm/etnaviv: remove unnecessary local irq disable Lucas Stach
2018-12-17 15:36 ` [PATCH 2/3] drm/etnaviv: replace header include with forward declaration Lucas Stach
2018-12-17 16:05   ` Christian Gmeiner [this message]
2018-12-17 15:36 ` [PATCH 3/3] drm/etnaviv: remove lastctx member from gpu struct Lucas Stach
2018-12-17 16:05   ` Christian Gmeiner
2018-12-17 16:04 ` [PATCH 1/3] drm/etnaviv: remove unnecessary local irq disable Christian Gmeiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH9NwWchhSJCGa73sfeWMSOLYYd3RoFjKi9+Kp-eooat4QGTJQ@mail.gmail.com \
    --to=christian.gmeiner@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=etnaviv@lists.freedesktop.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux+etnaviv@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.