dma-buf/sync_file: fix build warning with context format type
Subsystems (2)
PATCH 1/1 dma-buf/sync_file: fix build warning with context format type
From: Gustavo Padovan <[email protected]>
Christian König changed fence context to a u64 type, so we need to update all users accordingly.
---
Should we get this via drm-misc to silent the warning added by the change on the fence context?
drivers/dma-buf/sync_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma-buf/sync_file.c +1 -1
@@ -82,7 +82,7 @@ struct sync_file *sync_file_create(struct fence *fence) sync_file->num_fences =1 ;atomic_set (&sync_file->status,1 ); -snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%d-%d" , +snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%llu-%d" , fence->ops->get_driver_name (fence), fence->ops->get_timeline_name (fence), fence->context, fence->seqno);
Signature · 6 lines
2.5.5 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Gustavo,
Quoted 7 lines · Gustavo Padovan
From: Gustavo Padovan <[email protected]>
Christian König changed fence context to a u64 type, so we need to update all users accordingly.
Signed-off-by Gustavo Padovan <[email protected]>
Thanks for the patch,
Quoted 4 lines
---
Should we get this via drm-misc to silent the warning added by the change on the fence context?
Yes, please! :)
Quoted 18 lines
drivers/dma-buf/sync_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma-buf/sync_file.c +1
-2@@ -82,7 +82,7 @@ struct sync_file *sync_file_create(struct fence *fence) sync_file->num_fences =1 ;atomic_set (&sync_file->status,1 ); -snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%d-%d" , +snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%llu-%d" , fence->ops->get_driver_name (fence), fence->ops->get_timeline_name (fence), fence->context, fence->seqno); --
Quoted 2 lines
2.5.5
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Sumit Semwal
Hi Gustavo,
Quoted 6 lines · Gustavo Padovan
From: Gustavo Padovan <[email protected]>
Christian König changed fence context to a u64 type, so we need to update all users accordingly.
Quoted 8 lines
Quoted 1 line
Signed-off-by Gustavo Padovan <[email protected]>Thanks for the patch,
Acked-by Sumit Semwal <[email protected]>Quoted 4 lines
---
Should we get this via drm-misc to silent the warning added by the change on the fence context?
Yes, please! :)
Done, thanks.
-Daniel
Quoted 21 lines
Quoted 21 lines
drivers/dma-buf/sync_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma-buf/sync_file.c +1
-2@@ -82,7 +82,7 @@ struct sync_file *sync_file_create(struct fence *fence) sync_file->num_fences =1 ;atomic_set (&sync_file->status,1 ); -snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%d-%d" , +snprintf (sync_file->name,sizeof (sync_file->name),"%s-%s%llu-%d" , fence->ops->get_driver_name (fence), fence->ops->get_timeline_name (fence), fence->context, fence->seqno); --2.5.5
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel