Date: Wed, 24 Jan 2018 10:50:22 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r328322 - in stable/11/sys/amd64: amd64 include Message-ID: <201801241050.w0OAoMvw048833@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Jan 24 10:50:21 2018 New Revision: 328322 URL: https://svnweb.freebsd.org/changeset/base/328322 Log: MFC r328082: Amd64 user_ldt_deref() is not used outside sys_machdep.c. Mark it as static. Modified: stable/11/sys/amd64/amd64/sys_machdep.c stable/11/sys/amd64/include/proc.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/amd64/sys_machdep.c ============================================================================== --- stable/11/sys/amd64/amd64/sys_machdep.c Wed Jan 24 10:13:14 2018 (r328321) +++ stable/11/sys/amd64/amd64/sys_machdep.c Wed Jan 24 10:50:21 2018 (r328322) @@ -63,6 +63,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; @@ -81,8 +84,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) { Modified: stable/11/sys/amd64/include/proc.h ============================================================================== --- stable/11/sys/amd64/include/proc.h Wed Jan 24 10:13:14 2018 (r328321) +++ stable/11/sys/amd64/include/proc.h Wed Jan 24 10:50:21 2018 (r328322) @@ -90,7 +90,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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801241050.w0OAoMvw048833>