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 06/15] um: kill unused cpu()
Date: Mon, 20 Sep 2021 21:32:52 +0000	[thread overview]
Message-ID: <20210920213301.1424730-6-viro@zeniv.linux.org.uk> (raw)
In-Reply-To: <20210920213301.1424730-1-viro@zeniv.linux.org.uk>

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 arch/um/include/shared/kern_util.h | 1 -
 arch/um/kernel/process.c           | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/kern_util.h
index a2cfd42608a0c..fbfff76065c5b 100644
--- a/arch/um/include/shared/kern_util.h
+++ b/arch/um/include/shared/kern_util.h
@@ -53,7 +53,6 @@ extern void do_uml_exitcalls(void);
 extern int __cant_sleep(void);
 extern int get_current_pid(void);
 extern int copy_from_user_proc(void *to, void *from, int size);
-extern int cpu(void);
 extern char *uml_strdup(const char *string);
 
 extern unsigned long to_irq_stack(unsigned long *mask_out);
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index a5a430c637ba1..d5079a35e48ae 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -264,11 +264,6 @@ int clear_user_proc(void __user *buf, int size)
 	return clear_user(buf, size);
 }
 
-int cpu(void)
-{
-	return current_thread_info()->cpu;
-}
-
 static atomic_t using_sysemu = ATOMIC_INIT(0);
 int sysemu_supported;
 
-- 
2.11.0


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


  parent 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 ` [PATCH 01/15] uml: trim unused junk from arch/x86/um/sys_call_table_*.c Al Viro
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   ` Al Viro [this message]
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-6-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.