projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7420e04
)
dma-buf: Remove unneeded stubs around sync_debug interfaces
author
Ezequiel Garcia
<ezequiel@collabora.com>
Fri, 4 May 2018 18:00:37 +0000
(15:00 -0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 7 May 2018 13:58:07 +0000
(15:58 +0200)
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
drivers/dma-buf/sync_debug.h
patch
|
blob
|
history
diff --git
a/drivers/dma-buf/sync_debug.h
b/drivers/dma-buf/sync_debug.h
index d615a89f774c249e2b779a82436561822e863bbc..05e33f937ad0efc83c5627772ebbe4a83e28bb3f 100644
(file)
--- a/
drivers/dma-buf/sync_debug.h
+++ b/
drivers/dma-buf/sync_debug.h
@@
-62,8
+62,6
@@
struct sync_pt {
struct rb_node node;
};
-#ifdef CONFIG_SW_SYNC
-
extern const struct file_operations sw_sync_debugfs_fops;
void sync_timeline_debug_add(struct sync_timeline *obj);
@@
-72,12
+70,4
@@
void sync_file_debug_add(struct sync_file *fence);
void sync_file_debug_remove(struct sync_file *fence);
void sync_dump(void);
-#else
-# define sync_timeline_debug_add(obj)
-# define sync_timeline_debug_remove(obj)
-# define sync_file_debug_add(fence)
-# define sync_file_debug_remove(fence)
-# define sync_dump()
-#endif
-
#endif /* _LINUX_SYNC_H */