[PATCH] drm: include <drm/drm_cache.h> for 'drm_need_swiotlb'
Ben Dooks (Codethink)
ben.dooks at codethink.co.uk
Thu Oct 17 11:08:46 UTC 2019
The drm_need_swiotlb is declared in <drm/drm_cache.h>
which should be included in drivers/gpu/drm/drm_memory.c
to silence the following warning:
drivers/gpu/drm/drm_memory.c:159:6: warning: symbol 'drm_need_swiotlb' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
---
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Maxime Ripard <mripard at kernel.org>
Cc: Sean Paul <sean at poorly.run>
Cc: David Airlie <airlied at linux.ie>
Cc: Daniel Vetter <daniel at ffwll.ch>
Cc: dri-devel at lists.freedesktop.org
---
drivers/gpu/drm/drm_memory.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c
index 0bec6dbb0142..2d8615baeadc 100644
--- a/drivers/gpu/drm/drm_memory.c
+++ b/drivers/gpu/drm/drm_memory.c
@@ -41,6 +41,7 @@
#include <drm/drm_agpsupport.h>
#include <drm/drm_device.h>
+#include <drm/drm_cache.h>
#include "drm_legacy.h"
--
2.23.0
More information about the dri-devel
mailing list