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

dma-buf: Remove unneeded stubs around sync_debug interfaces

The sync_debug.h header is internal, and only used by
sw_sync.c. Therefore, SW_SYNC is always defined and there
is no need for the stubs. Remove them and make the code
simpler.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180504180037.10661-1-ezequiel@collabora.com

authored by

Ezequiel Garcia and committed by
Daniel Vetter
28eff786 7420e049

-10
-10
drivers/dma-buf/sync_debug.h
··· 62 62 struct rb_node node; 63 63 }; 64 64 65 - #ifdef CONFIG_SW_SYNC 66 - 67 65 extern const struct file_operations sw_sync_debugfs_fops; 68 66 69 67 void sync_timeline_debug_add(struct sync_timeline *obj); ··· 69 71 void sync_file_debug_add(struct sync_file *fence); 70 72 void sync_file_debug_remove(struct sync_file *fence); 71 73 void sync_dump(void); 72 - 73 - #else 74 - # define sync_timeline_debug_add(obj) 75 - # define sync_timeline_debug_remove(obj) 76 - # define sync_file_debug_add(fence) 77 - # define sync_file_debug_remove(fence) 78 - # define sync_dump() 79 - #endif 80 74 81 75 #endif /* _LINUX_SYNC_H */