Skip to content

Commit 28eff78

Browse files
ezequielgarciadanvet
authored andcommitted
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
1 parent 7420e04 commit 28eff78

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎drivers/dma-buf/sync_debug.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ struct sync_pt {
6262
struct rb_node node;
6363
};
6464

65-
#ifdef CONFIG_SW_SYNC
66-
6765
extern const struct file_operations sw_sync_debugfs_fops;
6866

6967
void sync_timeline_debug_add(struct sync_timeline *obj);
@@ -72,12 +70,4 @@ void sync_file_debug_add(struct sync_file *fence);
7270
void sync_file_debug_remove(struct sync_file *fence);
7371
void sync_dump(void);
7472

75-
#else
76-
# define sync_timeline_debug_add(obj)
77-
# define sync_timeline_debug_remove(obj)
78-
# define sync_file_debug_add(fence)
79-
# define sync_file_debug_remove(fence)
80-
# define sync_dump()
81-
#endif
82-
8373
#endif /* _LINUX_SYNC_H */

0 commit comments

Comments
 (0)