File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,8 @@ static long dma_buf_ioctl(struct file *file,
388
388
389
389
return ret ;
390
390
391
- case DMA_BUF_SET_NAME :
391
+ case DMA_BUF_SET_NAME_A :
392
+ case DMA_BUF_SET_NAME_B :
392
393
return dma_buf_set_name (dmabuf , (const char __user * )arg );
393
394
394
395
default :
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ struct dma_buf_sync {
39
39
40
40
#define DMA_BUF_BASE 'b'
41
41
#define DMA_BUF_IOCTL_SYNC _IOW(DMA_BUF_BASE, 0, struct dma_buf_sync)
42
+
43
+ /* 32/64bitness of this uapi was botched in android, there's no difference
44
+ * between them in actual uapi, they're just different numbers.
45
+ */
42
46
#define DMA_BUF_SET_NAME _IOW(DMA_BUF_BASE, 1, const char *)
47
+ #define DMA_BUF_SET_NAME_A _IOW(DMA_BUF_BASE, 1, u32)
48
+ #define DMA_BUF_SET_NAME_B _IOW(DMA_BUF_BASE, 1, u64)
43
49
44
50
#endif
You can’t perform that action at this time.
0 commit comments