dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Fabio Estevam <festevam@gmail.com>
Cc: maxime.ripard@bootlin.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/syncobj: Include the <drm/drm_utils.h> header
Date: Mon, 27 May 2019 20:53:11 +0200	[thread overview]
Message-ID: <20190527185311.GS21222@phenom.ffwll.local> (raw)
In-Reply-To: <20190527183931.11367-1-festevam@gmail.com>

On Mon, May 27, 2019 at 03:39:31PM -0300, Fabio Estevam wrote:
> The prototype for 'drm_timeout_abs_to_jiffies' is provided by
> the <drm/drm_utils.h> header.
> 
> Include this header to fix the following sparse warning:
> 
> drivers/gpu/drm/drm_syncobj.c:937:13: warning: symbol 'drm_timeout_abs_to_jiffies' was not declared. Should it be static?
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Uh I think this isn't quite what we want. There's both a drm_utils.h and a
drm_util.h and no drm_util.c and generally we try to match them all up.

I think drm_utils.h should disappear entirely, with
drm_get_panel_orientation_quirk moved to drm_panel.h (that's at least how
it's also grouped in the docs). And the drm_timeout_abs_to_jiffies helper
moved to drm_util.h, with it's implementation moved to a new drm_util.c

Plus I guess including all that into the a new kerneldoc section.

Assuming your up for a notch more cleanup than just shutting up sparse?

Thanks, Daniel

> ---
>  drivers/gpu/drm/drm_syncobj.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
> index 3d400905100b..b06fa424bd44 100644
> --- a/drivers/gpu/drm/drm_syncobj.c
> +++ b/drivers/gpu/drm/drm_syncobj.c
> @@ -46,6 +46,7 @@
>   * The file takes a reference on the kref.
>   */
>  
> +#include <drm/drm_utils.h>
>  #include <drm/drmP.h>
>  #include <linux/file.h>
>  #include <linux/fs.h>
> -- 
> 2.17.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2019-05-27 18:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27 18:39 [PATCH] drm/syncobj: Include the <drm/drm_utils.h> header Fabio Estevam
2019-05-27 18:53 ` Daniel Vetter [this message]

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=20190527185311.GS21222@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=festevam@gmail.com \
    --cc=maxime.ripard@bootlin.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox