Skip to contentSkip to conversation

dma-buf/sync_file: fix build warning with context format type

PATCH In review Gustavo Padovan 3 participants 3 messages Jun 3, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index f08cf2d..9aaa608 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw

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.

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
index f08cf2d..9aaa608 100644
@@ -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

#2 lore raw
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

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! :)

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
index f08cf2d..9aaa608 100644
@@ -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