[PATCH] drm/syncobj: Include the <drm/drm_utils.h> header

Fabio Estevam festevam at gmail.com
Mon May 27 18:39:31 UTC 2019


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 at gmail.com>
---
 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



More information about the dri-devel mailing list