[LTP] [PATCH 2/2] io_uring: remove unused io_uring_init_buffer_pattern()

Sachin Sant
2026-04-16T12:17:06Z

The io_uring04 test merged the functionality of
io_uring_init_buffer_pattern() into the unified function
init_iovec_buffers(). Since io_uring_init_buffer_pattern()
was not used by any existing test, remove it.

Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
---
.../kernel/syscalls/io_uring/io_uring_common.h | 13 -------------
1 file changed, 13 deletions(-)

diff --git a/testcases/kernel/syscalls/io_uring/io_uring_common.h b/testcases/kernel/syscalls/io_uring/io_uring_common.h
index aa31339fb..7816b55dc 100644
--- a/testcases/kernel/syscalls/io_uring/io_uring_common.h
+++ b/testcases/kernel/syscalls/io_uring/io_uring_common.h
@@ -230,19 +230,6 @@ static inline void io_uring_wait_cqe(struct io_uring_submit *s,
*cring->head = head + 1;
}

-/*
- * Initialize buffer with a repeating character pattern
- * Useful for creating test data with predictable patterns
- */
-static inline void io_uring_init_buffer_pattern(char *buf, size_t size,
- char pattern)
-{
- size_t i;
-
- for (i = 0; i < size; i++)
- buf[i] = pattern;
-}
-
/*
* Submit and wait for a non-vectored I/O operation
* Combines io_uring_submit_sqe() and io_uring_wait_cqe() with result reporting
--
2.39.1