Linux Test Project
 help / color / mirror / Atom feed
From: Sachin Sant <sachinp@linux.ibm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2 4/4] io_uring: remove unused io_uring_init_buffer_pattern()
Date: Thu,  7 May 2026 13:04:17 +0530	[thread overview]
Message-ID: <20260507073417.64123-4-sachinp@linux.ibm.com> (raw)
In-Reply-To: <20260507073417.64123-1-sachinp@linux.ibm.com>

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

Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
---
V2 changes:
- Update commit message to reflect correct function name
- Link to v1 https://lore.kernel.org/ltp/20260506183750.97191-1-sachinp@linux.ibm.com/T/#t
---
 .../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 523f686f8..84f93c7b1 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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2026-05-07  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07  7:34 [LTP] [PATCH v7 1/4] io_uring: Add io_uring04 test for vectored I/O operations Sachin Sant
2026-05-07  7:34 ` [LTP] [PATCH v2 2/4] io_uring: Add io_uring05 test for partial vector operations Sachin Sant
2026-05-07  7:34 ` [LTP] [PATCH v2 3/4] io_uring: Add io_uring06 test for varying buffer sizes Sachin Sant
2026-05-07  7:34 ` Sachin Sant [this message]
2026-05-07  9:39 ` [LTP] io_uring: Add io_uring04 test for vectored I/O operations linuxtestproject.agent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260507073417.64123-4-sachinp@linux.ibm.com \
    --to=sachinp@linux.ibm.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox