Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma-buf: Minor coding style fixes

- WARNING: Missing a blank line after declarations
- WARNING: line over 80 characters
- WARNING: please, no space before tabs

Signed-off-by: Jagan Teki <jteki@openedev.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>

authored by

Jagan Teki and committed by
Sumit Semwal
5136629d 9abdffe2

+20 -6
+7 -2
drivers/dma-buf/dma-buf.c
··· 287 287 struct reservation_object *resv = exp_info->resv; 288 288 struct file *file; 289 289 size_t alloc_size = sizeof(struct dma_buf); 290 + 290 291 if (!exp_info->resv) 291 292 alloc_size += sizeof(struct reservation_object); 292 293 else ··· 554 553 return -EINVAL; 555 554 556 555 if (dmabuf->ops->begin_cpu_access) 557 - ret = dmabuf->ops->begin_cpu_access(dmabuf, start, len, direction); 556 + ret = dmabuf->ops->begin_cpu_access(dmabuf, start, 557 + len, direction); 558 558 559 559 return ret; 560 560 } ··· 659 657 * @dmabuf: [in] buffer that should back the vma 660 658 * @vma: [in] vma for the mmap 661 659 * @pgoff: [in] offset in pages where this mmap should start within the 662 - * dma-buf buffer. 660 + * dma-buf buffer. 663 661 * 664 662 * This function adjusts the passed in vma so that it points at the file of the 665 663 * dma_buf operation. It also adjusts the starting pgoff and does bounds ··· 836 834 static int dma_buf_show(struct seq_file *s, void *unused) 837 835 { 838 836 void (*func)(struct seq_file *) = s->private; 837 + 839 838 func(s); 840 839 return 0; 841 840 } ··· 858 855 static int dma_buf_init_debugfs(void) 859 856 { 860 857 int err = 0; 858 + 861 859 dma_buf_debugfs_dir = debugfs_create_dir("dma_buf", NULL); 860 + 862 861 if (IS_ERR(dma_buf_debugfs_dir)) { 863 862 err = PTR_ERR(dma_buf_debugfs_dir); 864 863 dma_buf_debugfs_dir = NULL;
+6 -3
drivers/dma-buf/reservation.c
··· 337 337 rcu_read_lock(); 338 338 339 339 if (wait_all) { 340 - struct reservation_object_list *fobj = rcu_dereference(obj->fence); 340 + struct reservation_object_list *fobj = 341 + rcu_dereference(obj->fence); 341 342 342 343 if (fobj) 343 344 shared_count = fobj->shared_count; ··· 430 429 if (test_all) { 431 430 unsigned i; 432 431 433 - struct reservation_object_list *fobj = rcu_dereference(obj->fence); 432 + struct reservation_object_list *fobj = 433 + rcu_dereference(obj->fence); 434 434 435 435 if (fobj) 436 436 shared_count = fobj->shared_count; ··· 464 462 goto unlock_retry; 465 463 466 464 if (fence_excl) { 467 - ret = reservation_object_test_signaled_single(fence_excl); 465 + ret = reservation_object_test_signaled_single( 466 + fence_excl); 468 467 if (ret < 0) 469 468 goto unlock_retry; 470 469 }
+7 -1
drivers/dma-buf/seqno-fence.c
··· 24 24 static const char *seqno_fence_get_driver_name(struct fence *fence) 25 25 { 26 26 struct seqno_fence *seqno_fence = to_seqno_fence(fence); 27 + 27 28 return seqno_fence->ops->get_driver_name(fence); 28 29 } 29 30 30 31 static const char *seqno_fence_get_timeline_name(struct fence *fence) 31 32 { 32 33 struct seqno_fence *seqno_fence = to_seqno_fence(fence); 34 + 33 35 return seqno_fence->ops->get_timeline_name(fence); 34 36 } 35 37 36 38 static bool seqno_enable_signaling(struct fence *fence) 37 39 { 38 40 struct seqno_fence *seqno_fence = to_seqno_fence(fence); 41 + 39 42 return seqno_fence->ops->enable_signaling(fence); 40 43 } 41 44 42 45 static bool seqno_signaled(struct fence *fence) 43 46 { 44 47 struct seqno_fence *seqno_fence = to_seqno_fence(fence); 48 + 45 49 return seqno_fence->ops->signaled && seqno_fence->ops->signaled(fence); 46 50 } 47 51 ··· 60 56 fence_free(&f->base); 61 57 } 62 58 63 - static signed long seqno_wait(struct fence *fence, bool intr, signed long timeout) 59 + static signed long seqno_wait(struct fence *fence, bool intr, 60 + signed long timeout) 64 61 { 65 62 struct seqno_fence *f = to_seqno_fence(fence); 63 + 66 64 return f->ops->wait(fence, intr, timeout); 67 65 } 68 66