Skip to contentSkip to conversation

drm: Include <linux/mem_encrypt.h> in drm_cache.c

PATCH In review Thomas Zimmermann 2 participants 3 messages Jan 14, 2021

Subsystems (2)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

PATCH 1/1 drm: Include <linux/mem_encrypt.h> in drm_cache.c

The function drm_need_swiotbl() needs mem_encrypt_active() from <linux/mem_encrypt.h>. The include got lost when refactoring the code recently.

Fixes 3abc66706385 ("drm: Implement drm_need_swiotlb() in drm_cache.c")
Cc Thomas Zimmermann <[email protected]>
Cc Christian König <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/drm_cache.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_cache.c +1 -0
index 49551a7fa22f..79a50ef1250f 100644
@@ -30,6 +30,7 @@
 
 #include <linux/export.h>
 #include <linux/highmem.h>
+#include <linux/mem_encrypt.h>
 #include <xen/xen.h>
 
 #include <drm/drm_cache.h>
Signature · 6 lines
2.29.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Am 14.01.21 um 09:05 schrieb Thomas Zimmermann:

Quoted 4 lines

The function drm_need_swiotbl() needs mem_encrypt_active() from <linux/mem_encrypt.h>. The include got lost when refactoring the code recently.

Quoted 11 lines
Fixes 3abc66706385 ("drm: Implement drm_need_swiotlb() in drm_cache.c")
Cc Thomas Zimmermann <[email protected]>
Cc Christian König <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>

You are typing faster than me :)

Quoted 9 lines
---
  drivers/gpu/drm/drm_cache.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_cache.c +0 -0
index 49551a7fa22f..79a50ef1250f 100644

drivers/gpu/drm/drm_cache.c line 36

Quoted 7 lines
drivers/gpu/drm/drm_cache.c +1 -0
@@ -30,6 +30,7 @@
 
  #include <linux/export.h>
  #include <linux/highmem.h>
+#include <linux/mem_encrypt.h>
  #include <xen/xen.h>
 
  #include <drm/drm_cache.h>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer Applied
#2 lore raw

Hi

Am 14.01.21 um 09:23 schrieb Christian König:

Quoted 17 lines

Am 14.01.21 um 09:05 schrieb Thomas Zimmermann:

Quoted 4 lines

The function drm_need_swiotbl() needs mem_encrypt_active() from <linux/mem_encrypt.h>. The include got lost when refactoring the code recently.

Quoted 11 lines
Fixes 3abc66706385 ("drm: Implement drm_need_swiotlb() in drm_cache.c")
Cc Thomas Zimmermann <[email protected]>
Cc Christian König <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Quoted 3 lines

You are typing faster than me :)

Pushed to -misc-next. Thanks for the fast reply.

Best regards
Thomas

Quoted 20 lines
Quoted 10 lines

---
  drivers/gpu/drm/drm_cache.c | 1 +

  1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_cache.c +0 -0
index 49551a7fa22f..79a50ef1250f 100644

drivers/gpu/drm/drm_cache.c line 34

Quoted 5 lines
drivers/gpu/drm/drm_cache.c +1 -0
@@ -30,6 +30,7 @@
   #include <linux/export.h>
   #include <linux/highmem.h>
+#include <linux/mem_encrypt.h>
   #include <xen/xen.h>
   #include <drm/drm_cache.h>

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel