Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2019 22:47:24 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356102 - head/sys/powerpc/powerpc
Message-ID:  <201912262247.xBQMlOpU066157@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Thu Dec 26 22:47:24 2019
New Revision: 356102
URL: https://svnweb.freebsd.org/changeset/base/356102

Log:
  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.

Modified:
  head/sys/powerpc/powerpc/elf32_machdep.c

Modified: head/sys/powerpc/powerpc/elf32_machdep.c
==============================================================================
--- head/sys/powerpc/powerpc/elf32_machdep.c	Thu Dec 26 22:33:20 2019	(r356101)
+++ head/sys/powerpc/powerpc/elf32_machdep.c	Thu Dec 26 22:47:24 2019	(r356102)
@@ -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
 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 = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912262247.xBQMlOpU066157>