From: Ville Syrjälä Date: Wed, 10 Jul 2019 12:51:41 +0000 (+0300) Subject: drm: Include prototype for drm_need_swiotlb() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2c05593ba0572495dc4ba02bcdf3c1c701ebeb5a;p=linux.git drm: Include prototype for drm_need_swiotlb() 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ä Link: https://patchwork.freedesktop.org/patch/msgid/20190710125143.9965-3-ville.syrjala@linux.intel.com Reviewed-by: Sean Paul --- diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index 0bec6dbb01421..fbea69d6f9090 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c @@ -40,6 +40,7 @@ #include #include +#include #include #include "drm_legacy.h"