drm: include <drm/drm_cache.h> for 'drm_need_swiotlb'
Subsystems (2)
PATCH 1/1 drm: include <drm/drm_cache.h> for 'drm_need_swiotlb'
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?
---
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
--- drivers/gpu/drm/drm_memory.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_memory.c +1 -0
@@ -41,6 +41,7 @@#include <drm/drm_agpsupport.h> #include <drm/drm_device.h> +#include <drm/drm_cache.h> #include "drm_legacy.h"
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Ben Dooks (Codethink)
The
drm_need_swiotlbis declared in <drm/drm_cache.h> which should be included indrivers/gpu/drm/drm_memory.cto silence the following warning:
drivers/gpu/drm/drm_memory.c:159:6: warning: symbol 'drm_need_swiotlb' was not declared. Should it be static?
IIRC I silenced that already, so you're probably working on some old tree. For the latest stuff use:
git://anongit.freedesktop.org/drm-tip drm-tip
Quoted 32 lines
Signed-off-by Ben Dooks <[email protected]>---
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]--- drivers/gpu/drm/drm_memory.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/drm_memory.c +1
-0@@ -41,6 +41,7 @@#include <drm/drm_agpsupport.h> #include <drm/drm_device.h> +#include <drm/drm_cache.h> #include "drm_legacy.h" Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel