diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2018-01-17 11:21:03 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-01-17 11:21:03 +0000 |
commit | 94b011c4bc4a20f758ceb8acfff8f4897b731219 (patch) | |
tree | 3f1bf67d3ccc0b6918ccc5860901acf5a06aa24e | |
parent | b8ff144e19e1ddf60800e0a7506030a5c6ad1fdc (diff) | |
download | src-94b011c4bc4a20f758ceb8acfff8f4897b731219.tar.gz src-94b011c4bc4a20f758ceb8acfff8f4897b731219.zip |
Amd64 user_ldt_deref() is not used outside sys_machdep.c. Mark it as
static.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=328082
-rw-r--r-- | sys/amd64/amd64/sys_machdep.c | 7 | ||||
-rw-r--r-- | sys/amd64/include/proc.h | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index e85190a89b7e..f897a4e2df4e 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -65,6 +65,9 @@ __FBSDID("$FreeBSD$"); #include <security/audit/audit.h> +static void user_ldt_deref(struct proc_ldt *pldt); +static void user_ldt_derefl(struct proc_ldt *pldt); + #define MAX_LD 8192 int max_ldt_segment = 512; @@ -83,8 +86,6 @@ max_ldt_segment_init(void *arg __unused) } SYSINIT(maxldt, SI_SUB_VM_CONF, SI_ORDER_ANY, max_ldt_segment_init, NULL); -static void user_ldt_derefl(struct proc_ldt *pldt); - #ifndef _SYS_SYSPROTO_H_ struct sysarch_args { int op; @@ -529,7 +530,7 @@ user_ldt_derefl(struct proc_ldt *pldt) } } -void +static void user_ldt_deref(struct proc_ldt *pldt) { diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h index d561fc079bd9..f52c71208e64 100644 --- a/sys/amd64/include/proc.h +++ b/sys/amd64/include/proc.h @@ -92,7 +92,6 @@ struct syscall_args { struct proc_ldt *user_ldt_alloc(struct proc *, int); void user_ldt_free(struct thread *); -void user_ldt_deref(struct proc_ldt *); struct sysarch_args; int sysarch_ldt(struct thread *td, struct sysarch_args *uap, int uap_space); int amd64_set_ldt_data(struct thread *td, int start, int num, |