diff options
| author | Dr. David Alan Gilbert <linux@treblig.org> | 2025-05-06 02:38:38 +0300 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2025-05-08 13:51:59 +0300 |
| commit | b3f737ae959a0d6386fcb54d4bf252fe88ab309c (patch) | |
| tree | 5a44861c4d2ea1e574e6e1a49a7c3358dcbaba1c /drivers/dma-buf/sync_debug.h | |
| parent | 78184f6e3db16c05ad5933b411faa416bb68ac1e (diff) | |
| download | linux-b3f737ae959a0d6386fcb54d4bf252fe88ab309c.tar.xz | |
dma-buf/sw-sync: Remove unused debug code
sync_file_debug_add() and sync_file_debug_remove() have been unused
since 2016's
commit d4cab38e153d ("staging/android: prepare sync_file for de-staging")
Remove them.
Since sync_file_debug_add was the only thing to add to
sync_file_list_head, the code that dumps it in part of
sync_info_debugfs_show can be removed, and the declaration of
the list and it's associated lock can be removed.
(The 'fences:\n...' marker in that debugfs file is left in
so as not to change the output)
That leaves the sync_print_sync_file() helper unused, and
is thus removed.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250505233838.105668-1-linux@treblig.org
Diffstat (limited to 'drivers/dma-buf/sync_debug.h')
| -rw-r--r-- | drivers/dma-buf/sync_debug.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma-buf/sync_debug.h b/drivers/dma-buf/sync_debug.h index a1bdd62efccd..02af347293d0 100644 --- a/drivers/dma-buf/sync_debug.h +++ b/drivers/dma-buf/sync_debug.h @@ -68,7 +68,5 @@ extern const struct file_operations sw_sync_debugfs_fops; void sync_timeline_debug_add(struct sync_timeline *obj); void sync_timeline_debug_remove(struct sync_timeline *obj); -void sync_file_debug_add(struct sync_file *fence); -void sync_file_debug_remove(struct sync_file *fence); #endif /* _LINUX_SYNC_H */ |
