From: Paul White <paul.white.kernel@gmail.com>
To: shuah@kernel.org
Cc: akpm@linux-foundation.org, jouyeol8739@gmail.com,
reddybalavignesh9979@gmail.com, richard.weiyang@gmail.com,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Paul White <paul.white.kernel@gmail.com>
Subject: [PATCH] selftests: ipc: Change operation not supported error number
Date: Mon, 20 Jul 2026 16:40:01 -0400 [thread overview]
Message-ID: <20260720204001.1663473-1-paul.white.kernel@gmail.com> (raw)
The application doesn't know what ENOTSUPP means, as it is a
kernelspace error code and the application doesn't have access to
kernelspace error codes.I used EOPNOTSUPP in its place as that is
an error number the application will recognize and know an operation is
being attempted that it cannot support.
Signed-off-by: Paul White <paul.white.kernel@gmail.com>
---
tools/testing/selftests/ipc/msgque.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c
index 82f73cdae120..4b4c1abfac0f 100644
--- a/tools/testing/selftests/ipc/msgque.c
+++ b/tools/testing/selftests/ipc/msgque.c
@@ -161,7 +161,7 @@ int dump_queue(struct msgque_data *msgque)
ret = msgrcv(msgque->msq_id, &msgque->messages[i].mtype,
MAX_MSG_SIZE, i, IPC_NOWAIT | MSG_COPY);
if (ret < 0) {
- if (errno == ENOSYS)
+ if (errno == EOPNOTSUPP)
ksft_exit_skip("MSG_COPY not supported\n");
ksft_test_result_fail("Failed to copy IPC message: %m (%d)\n", errno);
--
2.53.0
reply other threads:[~2026-07-20 20:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260720204001.1663473-1-paul.white.kernel@gmail.com \
--to=paul.white.kernel@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=jouyeol8739@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=reddybalavignesh9979@gmail.com \
--cc=richard.weiyang@gmail.com \
--cc=shuah@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.