diff options
author | jhb <jhb@FreeBSD.org> | 2001-05-30 21:57:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-05-30 21:57:52 +0000 |
commit | df2e009e62cb41124e5cb3077cb2ae4e1f7cb08c (patch) | |
tree | 4c7b8bcebb840e6312fe1bcf5bb21b4f53bad53f | |
parent | 189d400eedf92f3d35a5905015f0204ce7a9e3a2 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/amd64/amd64/sys_machdep.c | 7 | ||||
-rw-r--r-- | sys/i386/i386/sys_machdep.c | 7 |
2 files changed, 12 insertions, 2 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. diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index 1bcc9ad..65d47c7 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/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. |