drm: Include prototype for drm_need_swiotlb()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 10 Jul 2019 12:51:41 +0000 (15:51 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2019 17:16:28 +0000 (20:16 +0300)
Sparse is not happy:
../drivers/gpu/drm/drm_memory.c:159:6: warning: symbol 'drm_need_swiotlb' was not declared. Should it be static?

Include the correct header for drm_need_swiotlb() prototype.

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

index 0bec6dbb01421e0856271a2400f2b962411ce76f..fbea69d6f90902d93f910a4d93e50ba1ed9e3c61 100644 (file)
@@ -40,6 +40,7 @@
 #include <xen/xen.h>
 
 #include <drm/drm_agpsupport.h>
+#include <drm/drm_cache.h>
 #include <drm/drm_device.h>
 
 #include "drm_legacy.h"