From b305226ffb71d99cb3c05d00751478372b80f5ce Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 9 May 2024 13:54:20 -0400 Subject: [PATCH] syscalls: Remove unused duplicated code lttng_abi_syscall_list() was moved to src/lttng-abi.c within the 2.13 refactoring. Remove this unused copy. Signed-off-by: Mathieu Desnoyers Change-Id: Iabbab3b576e3d85bc5ac9831729a5786b5c5f224 --- src/lttng-syscalls.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 03c521a1..a4250591 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -1809,35 +1809,3 @@ long lttng_channel_syscall_mask(struct lttng_kernel_channel_buffer *channel, kfree(tmp_mask); return ret; } - -int lttng_abi_syscall_list(void) -{ - struct file *syscall_list_file; - int file_fd, ret; - - file_fd = lttng_get_unused_fd(); - if (file_fd < 0) { - ret = file_fd; - goto fd_error; - } - - syscall_list_file = anon_inode_getfile("[lttng_syscall_list]", - <tng_syscall_list_fops, - NULL, O_RDWR); - if (IS_ERR(syscall_list_file)) { - ret = PTR_ERR(syscall_list_file); - goto file_error; - } - ret = lttng_syscall_list_fops.open(NULL, syscall_list_file); - if (ret < 0) - goto open_error; - fd_install(file_fd, syscall_list_file); - return file_fd; - -open_error: - fput(syscall_list_file); -file_error: - put_unused_fd(file_fd); -fd_error: - return ret; -} -- 2.34.1