All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: linux-um@lists.infradead.org
Subject: [PATCH 01/15] uml: trim unused junk from arch/x86/um/sys_call_table_*.c
Date: Mon, 20 Sep 2021 21:32:47 +0000	[thread overview]
Message-ID: <20210920213301.1424730-1-viro@zeniv.linux.org.uk> (raw)
In-Reply-To: <YUj9S+S4Gd86mM6N@zeniv-ca.linux.org.uk>

a bunch of detritus there - definitions that are never expanded or
checked.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 arch/x86/um/sys_call_table_32.c |  4 ----
 arch/x86/um/sys_call_table_64.c | 14 --------------
 2 files changed, 18 deletions(-)

diff --git a/arch/x86/um/sys_call_table_32.c b/arch/x86/um/sys_call_table_32.c
index 0575decb5e544..89df5d89d6640 100644
--- a/arch/x86/um/sys_call_table_32.c
+++ b/arch/x86/um/sys_call_table_32.c
@@ -9,8 +9,6 @@
 #include <linux/cache.h>
 #include <asm/syscall.h>
 
-#define __NO_STUBS
-
 /*
  * Below you can see, in terms of #define's, the differences between the x86-64
  * and the UML syscall table.
@@ -23,8 +21,6 @@
 #define sys_vm86old sys_ni_syscall
 #define sys_vm86 sys_ni_syscall
 
-#define old_mmap sys_old_mmap
-
 #define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, native)
 
 #define __SYSCALL(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
diff --git a/arch/x86/um/sys_call_table_64.c b/arch/x86/um/sys_call_table_64.c
index 95725b5a41ac8..82b695ed23c41 100644
--- a/arch/x86/um/sys_call_table_64.c
+++ b/arch/x86/um/sys_call_table_64.c
@@ -9,8 +9,6 @@
 #include <linux/cache.h>
 #include <asm/syscall.h>
 
-#define __NO_STUBS
-
 /*
  * Below you can see, in terms of #define's, the differences between the x86-64
  * and the UML syscall table.
@@ -20,21 +18,9 @@
 #define sys_iopl sys_ni_syscall
 #define sys_ioperm sys_ni_syscall
 
-/*
- * The UML TLS problem. Note that x86_64 does not implement this, so the below
- * is needed only for the ia32 compatibility.
- */
-
 /* On UML we call it this way ("old" means it's not mmap2) */
 #define sys_mmap old_mmap
 
-#define stub_clone sys_clone
-#define stub_fork sys_fork
-#define stub_vfork sys_vfork
-#define stub_execve sys_execve
-#define stub_execveat sys_execveat
-#define stub_rt_sigreturn sys_rt_sigreturn
-
 #define __SYSCALL(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
 #include <asm/syscalls_64.h>
 
-- 
2.11.0


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


  reply	other threads:[~2021-09-20 21:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 21:29 [PATCHES] uml cleanups and (minor) fixes Al Viro
2021-09-20 21:32 ` Al Viro [this message]
2021-09-20 21:32   ` [PATCH 02/15] um: move amd64 variant of mmap(2) to arch/x86/um/syscalls_64.c Al Viro
2021-09-20 21:32   ` [PATCH 03/15] logic_io instance of iounmap() needs volatile on argument Al Viro
2021-09-20 21:32   ` [PATCH 04/15] um: stop polluting the namespace with registers.h contents Al Viro
2021-09-20 21:32   ` [PATCH 05/15] uml/i386: missing include in barrier.h Al Viro
2021-09-20 21:32   ` [PATCH 06/15] um: kill unused cpu() Al Viro
2021-09-20 21:32   ` [PATCH 07/15] um: remove a dangling extern of syscall_trace() Al Viro
2021-09-20 21:32   ` [PATCH 08/15] um: unexport handle_page_fault() Al Viro
2021-09-20 21:32   ` [PATCH 09/15] um, x86: bury crypto_tfm_ctx_offset Al Viro
2021-09-20 21:32   ` [PATCH 10/15] um: common-offsets.h debriding Al Viro
2021-09-20 21:32   ` [PATCH 11/15] um: header debriding - activate_ipi() Al Viro
2021-09-20 21:32   ` [PATCH 12/15] um: header debriding - mem_user.h Al Viro
2021-09-20 21:32   ` [PATCH 13/15] um: header debriding - net_*.h Al Viro
2021-09-20 21:33   ` [PATCH 14/15] um: header debriding - os.h Al Viro
2021-09-20 21:33   ` [PATCH 15/15] um: header debriding - sigio.h Al Viro

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=20210920213301.1424730-1-viro@zeniv.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=linux-um@lists.infradead.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.