aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2023-09-05 18:15:52 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2023-09-05 18:15:52 +0000
commit553b1a4e4eb426d2c29a033b284c13bfbab30334 (patch)
tree82c34ba54d45ff575308d18d083d8d3c5dd2e380 /sys/amd64
parent96362992330894787a4485f0adc5e867879c5893 (diff)
downloadsrc-553b1a4e4eb426d2c29a033b284c13bfbab30334.tar.gz
src-553b1a4e4eb426d2c29a033b284c13bfbab30334.zip
linux(4): Deduplicate mprotect, madvise
MFC after: 1 week
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/linux/linux_machdep.c14
-rw-r--r--sys/amd64/linux32/linux32_machdep.c15
2 files changed, 0 insertions, 29 deletions
diff --git a/sys/amd64/linux/linux_machdep.c b/sys/amd64/linux/linux_machdep.c
index 2d2c5bb55ac8..7da1dccd6b45 100644
--- a/sys/amd64/linux/linux_machdep.c
+++ b/sys/amd64/linux/linux_machdep.c
@@ -98,20 +98,6 @@ linux_mmap2(struct thread *td, struct linux_mmap2_args *args)
}
int
-linux_mprotect(struct thread *td, struct linux_mprotect_args *uap)
-{
-
- return (linux_mprotect_common(td, uap->addr, uap->len, uap->prot));
-}
-
-int
-linux_madvise(struct thread *td, struct linux_madvise_args *uap)
-{
-
- return (linux_madvise_common(td, uap->addr, uap->len, uap->behav));
-}
-
-int
linux_iopl(struct thread *td, struct linux_iopl_args *args)
{
int error;
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index f6b14d8e4653..fb088ae37b26 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -62,7 +62,6 @@
#include <compat/linux/linux_emul.h>
#include <compat/linux/linux_fork.h>
#include <compat/linux/linux_ipc.h>
-#include <compat/linux/linux_misc.h>
#include <compat/linux/linux_mmap.h>
#include <compat/linux/linux_signal.h>
#include <compat/linux/linux_util.h>
@@ -346,20 +345,6 @@ linux_mmap(struct thread *td, struct linux_mmap_args *args)
}
int
-linux_mprotect(struct thread *td, struct linux_mprotect_args *uap)
-{
-
- return (linux_mprotect_common(td, PTROUT(uap->addr), uap->len, uap->prot));
-}
-
-int
-linux_madvise(struct thread *td, struct linux_madvise_args *uap)
-{
-
- return (linux_madvise_common(td, PTROUT(uap->addr), uap->len, uap->behav));
-}
-
-int
linux_iopl(struct thread *td, struct linux_iopl_args *args)
{
int error;