From e211e5fec6622350914807ab9c92db34e0756a56 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 26 Dec 2019 22:47:24 +0000 Subject: [PATCH] powerpc: Move ppc32_runtime_resolve() declaration to the right place The function is only used in 32-bit kernels, so move the declaration to !powerpc64. --- sys/powerpc/powerpc/elf32_machdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/powerpc/elf32_machdep.c b/sys/powerpc/powerpc/elf32_machdep.c index c14dc6bf7785..83df18844d1f 100644 --- a/sys/powerpc/powerpc/elf32_machdep.c +++ b/sys/powerpc/powerpc/elf32_machdep.c @@ -63,7 +63,6 @@ extern const char *freebsd32_syscallnames[]; static void ppc32_fixlimit(struct rlimit *rl, int which); -static void ppc32_runtime_resolve(void); static SYSCTL_NODE(_compat, OID_AUTO, ppc32, CTLFLAG_RW, 0, "32-bit mode"); @@ -75,6 +74,8 @@ SYSCTL_ULONG(_compat_ppc32, OID_AUTO, maxdsiz, CTLFLAG_RWTUN, &ppc32_maxdsiz, u_long ppc32_maxssiz = PPC32_MAXSSIZ; SYSCTL_ULONG(_compat_ppc32, OID_AUTO, maxssiz, CTLFLAG_RWTUN, &ppc32_maxssiz, 0, ""); +#else +static void ppc32_runtime_resolve(void); #endif struct sysentvec elf32_freebsd_sysvec = {