diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-07-10 15:51:41 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-09-30 20:16:28 +0300 |
commit | 2c05593ba0572495dc4ba02bcdf3c1c701ebeb5a (patch) | |
tree | d168b9871b5399f52a5070fd100e265563a370ea /drivers | |
parent | 40d51c05d04473e83f3ecfc5a046b1ab783670e4 (diff) | |
download | linux-2c05593ba0572495dc4ba02bcdf3c1c701ebeb5a.tar.xz |
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ä <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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index 0bec6dbb0142..fbea69d6f909 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c @@ -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" |