OSDN Git Service

drm/syncobj: Include the prototype for drm_timeout_abs_to_jiffies()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 Jul 2019 12:51:42 +0000 (15:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 17:17:00 +0000 (20:17 +0300)
Sparse complains:
../drivers/gpu/drm/drm_syncobj.c:942:13: warning: symbol 'drm_timeout_abs_to_jiffies' was not declared. Should it be static?

Include the correct header with the prototype.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190710125143.9965-4-ville.syrjala@linux.intel.com
Reviewed-by: Sean Paul <sean@poorly.run>
drivers/gpu/drm/drm_syncobj.c

index 4b5c7b0..9ec3346 100644 (file)
 #include <drm/drm_gem.h>
 #include <drm/drm_print.h>
 #include <drm/drm_syncobj.h>
+#include <drm/drm_utils.h>
 
 #include "drm_internal.h"