trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: trinity@vger.kernel.org
Subject: [PATCH] Ignore ENOSYS from sys_msgrcv() and sys_ipc()
Date: Wed,  4 Jun 2014 16:05:29 +1000	[thread overview]
Message-ID: <1401861929-23686-1-git-send-email-mpe@ellerman.id.au> (raw)

sys_msgrcv() and therefore also sys_ipc() can return ENOSYS when
CONFIG_CHECKPOINT_RESTORE=n. See prepare_copy() in ipc/msg.c.
---
 syscalls/ipc.c    | 1 +
 syscalls/msgrcv.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/syscalls/ipc.c b/syscalls/ipc.c
index d11d48d..ff161be 100644
--- a/syscalls/ipc.c
+++ b/syscalls/ipc.c
@@ -24,4 +24,5 @@ struct syscallentry syscall_ipc = {
 	.arg5name = "ptr",
 	.arg5type = ARG_ADDRESS,
 	.arg6name = "fifth",
+	.flags = IGNORE_ENOSYS,
 };
diff --git a/syscalls/msgrcv.c b/syscalls/msgrcv.c
index 44f11d5..2bfca90 100644
--- a/syscalls/msgrcv.c
+++ b/syscalls/msgrcv.c
@@ -21,4 +21,5 @@ struct syscallentry syscall_msgrcv = {
 		.num = 4,
 		.values = { MSG_NOERROR, MSG_EXCEPT, MSG_COPY, IPC_NOWAIT },
 	},
+	.flags = IGNORE_ENOSYS,
 };
-- 
1.9.1

             reply	other threads:[~2014-06-04  6:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-04  6:05 Michael Ellerman [this message]
2014-06-04 19:35 ` [PATCH] Ignore ENOSYS from sys_msgrcv() and sys_ipc() Dave Jones

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=1401861929-23686-1-git-send-email-mpe@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=trinity@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).