trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Ignore ENOSYS from sys_msgrcv() and sys_ipc()
@ 2014-06-04  6:05 Michael Ellerman
  2014-06-04 19:35 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2014-06-04  6:05 UTC (permalink / raw)
  To: trinity

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-04 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04  6:05 [PATCH] Ignore ENOSYS from sys_msgrcv() and sys_ipc() Michael Ellerman
2014-06-04 19:35 ` Dave Jones

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 NNTP newsgroup(s).