All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h
@ 2019-03-13 10:42 Laurent Pinchart
  2019-03-13 12:30 ` Jani Nikula
  2019-03-13 16:10 ` Sam Ravnborg
  0 siblings, 2 replies; 3+ messages in thread
From: Laurent Pinchart @ 2019-03-13 10:42 UTC (permalink / raw)
  To: dri-devel; +Cc: Sam Ravnborg

drm_framebuffer.h makes use of a pointer to struct drm_format_info but
doesn't include drm_fourcc.h (neither directly nor indirectly).
Forward-declare the structure.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 include/drm/drm_framebuffer.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
index f0b34c977ec5..c23016748e3f 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -32,6 +32,7 @@
 struct drm_clip_rect;
 struct drm_device;
 struct drm_file;
+struct drm_format_info;
 struct drm_framebuffer;
 struct drm_gem_object;
 
-- 
Regards,

Laurent Pinchart

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h
  2019-03-13 10:42 [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h Laurent Pinchart
@ 2019-03-13 12:30 ` Jani Nikula
  2019-03-13 16:10 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Jani Nikula @ 2019-03-13 12:30 UTC (permalink / raw)
  To: Laurent Pinchart, dri-devel; +Cc: Sam Ravnborg

On Wed, 13 Mar 2019, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> wrote:
> drm_framebuffer.h makes use of a pointer to struct drm_format_info but
> doesn't include drm_fourcc.h (neither directly nor indirectly).
> Forward-declare the structure.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

With the subject typo fixed,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>


> ---
>  include/drm/drm_framebuffer.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
> index f0b34c977ec5..c23016748e3f 100644
> --- a/include/drm/drm_framebuffer.h
> +++ b/include/drm/drm_framebuffer.h
> @@ -32,6 +32,7 @@
>  struct drm_clip_rect;
>  struct drm_device;
>  struct drm_file;
> +struct drm_format_info;
>  struct drm_framebuffer;
>  struct drm_gem_object;

-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h
  2019-03-13 10:42 [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h Laurent Pinchart
  2019-03-13 12:30 ` Jani Nikula
@ 2019-03-13 16:10 ` Sam Ravnborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2019-03-13 16:10 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: dri-devel

Hi Laurent.

On Wed, Mar 13, 2019 at 12:42:49PM +0200, Laurent Pinchart wrote:
> drm_framebuffer.h makes use of a pointer to struct drm_format_info but
> doesn't include drm_fourcc.h (neither directly nor indirectly).
> Forward-declare the structure.
Yep, this is the way to fix this.

> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-13 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-13 10:42 [PATCH] drm: Format-declare struct drm_format_info in drm_framebuffer.h Laurent Pinchart
2019-03-13 12:30 ` Jani Nikula
2019-03-13 16:10 ` Sam Ravnborg

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.