summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-30 21:57:52 +0000
committerjhb <jhb@FreeBSD.org>2001-05-30 21:57:52 +0000
commitdf2e009e62cb41124e5cb3077cb2ae4e1f7cb08c (patch)
tree4c7b8bcebb840e6312fe1bcf5bb21b4f53bad53f /sys/amd64
parent189d400eedf92f3d35a5905015f0204ce7a9e3a2 (diff)
downloadFreeBSD-src-df2e009e62cb41124e5cb3077cb2ae4e1f7cb08c.zip
FreeBSD-src-df2e009e62cb41124e5cb3077cb2ae4e1f7cb08c.tar.gz
Quiet warnings by adding a prototype for set_user_ldt_rv() and making it
conditional on #ifdef SMP.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/sys_machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c
index 1bcc9ad..65d47c7 100644
--- a/sys/amd64/amd64/sys_machdep.c
+++ b/sys/amd64/amd64/sys_machdep.c
@@ -67,6 +67,9 @@ static int i386_get_ldt __P((struct proc *, char *));
static int i386_set_ldt __P((struct proc *, char *));
static int i386_get_ioperm __P((struct proc *, char *));
static int i386_set_ioperm __P((struct proc *, char *));
+#ifdef SMP
+static void set_user_ldt_rv __P((struct pcb *));
+#endif
#ifndef _SYS_SYSPROTO_H_
struct sysarch_args {
@@ -260,7 +263,8 @@ set_user_ldt(struct pcb *pcb)
PCPU_SET(currentldt, GSEL(GUSERLDT_SEL, SEL_KPL));
}
-void
+#ifdef SMP
+static void
set_user_ldt_rv(struct pcb *pcb)
{
@@ -271,6 +275,7 @@ set_user_ldt_rv(struct pcb *pcb)
set_user_ldt(pcb);
mtx_unlock_spin(&sched_lock);
}
+#endif
/*
* Must be called with either sched_lock free or held but not recursed.
OpenPOWER on IntegriCloud