Date: Wed, 17 Jan 2018 11:21:04 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328082 - in head/sys/amd64: amd64 include Message-ID: <201801171121.w0HBL4Nm031161@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Jan 17 11:21:03 2018 New Revision: 328082 URL: https://svnweb.freebsd.org/changeset/base/328082 Log: Amd64 user_ldt_deref() is not used outside sys_machdep.c. Mark it as static. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/amd64/amd64/sys_machdep.c head/sys/amd64/include/proc.h Modified: head/sys/amd64/amd64/sys_machdep.c ============================================================================== --- head/sys/amd64/amd64/sys_machdep.c Wed Jan 17 10:30:49 2018 (r328081) +++ head/sys/amd64/amd64/sys_machdep.c Wed Jan 17 11:21:03 2018 (r328082) @@ -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) { Modified: head/sys/amd64/include/proc.h ============================================================================== --- head/sys/amd64/include/proc.h Wed Jan 17 10:30:49 2018 (r328081) +++ head/sys/amd64/include/proc.h Wed Jan 17 11:21:03 2018 (r328082) @@ -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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801171121.w0HBL4Nm031161>