From: Benjamin Berg <benjamin@sipsolutions.net>
To: linux-um@lists.infradead.org
Cc: Benjamin Berg <benjamin.berg@intel.com>
Subject: [PATCH v2 4/5] um: Remove unused os_getpgrp function
Date: Fri, 13 Sep 2024 15:44:41 +0200 [thread overview]
Message-ID: <20240913134442.967599-5-benjamin@sipsolutions.net> (raw)
In-Reply-To: <20240913134442.967599-1-benjamin@sipsolutions.net>
From: Benjamin Berg <benjamin.berg@intel.com>
The function is not used anywhere.
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
---
arch/um/include/shared/os.h | 1 -
arch/um/os-Linux/process.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h
index a94093bfa5e4..e54f64f55bb7 100644
--- a/arch/um/include/shared/os.h
+++ b/arch/um/include/shared/os.h
@@ -204,7 +204,6 @@ extern void os_kill_process(int pid, int reap_child);
extern void os_kill_ptraced_process(int pid, int reap_child);
extern int os_getpid(void);
-extern int os_getpgrp(void);
extern void init_new_thread_signals(void);
diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c
index d1f5e6002805..f20602e793d9 100644
--- a/arch/um/os-Linux/process.c
+++ b/arch/um/os-Linux/process.c
@@ -53,11 +53,6 @@ int os_getpid(void)
return syscall(__NR_getpid);
}
-int os_getpgrp(void)
-{
- return getpgrp();
-}
-
int os_map_memory(void *virt, int fd, unsigned long long off, unsigned long len,
int r, int w, int x)
{
--
2.46.0
next prev parent reply other threads:[~2024-09-13 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 13:44 [PATCH v2 0/5] Minor cleanups for UML Benjamin Berg
2024-09-13 13:44 ` [PATCH v2 1/5] um: Remove unused os_process_pc Benjamin Berg
2024-09-13 13:44 ` [PATCH v2 2/5] um: Remove unused os_process_parent Benjamin Berg
2024-09-13 13:44 ` [PATCH v2 3/5] um: Remove unused os_stop_process Benjamin Berg
2024-09-13 13:44 ` Benjamin Berg [this message]
2024-09-13 13:44 ` [PATCH v2 5/5] um: Set HAVE_EFFICIENT_UNALIGNED_ACCESS for x86 Benjamin Berg
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=20240913134442.967599-5-benjamin@sipsolutions.net \
--to=benjamin@sipsolutions.net \
--cc=benjamin.berg@intel.com \
--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 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).