kmstartup had the wrong type and unnecessarily external linkage for a

sysinit function.

subr_prof.c:
Remove useless comment.
This commit is contained in:
Bruce Evans 1995-08-29 03:09:14 +00:00
parent 7ceae9a83d
commit 5c7761b2af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10407
2 changed files with 7 additions and 14 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
* $Id: subr_prof.c,v 1.6 1995/03/16 18:12:41 bde Exp $
* $Id: subr_prof.c,v 1.7 1995/08/28 09:18:46 julian Exp $
*/
#include <sys/param.h>
@ -48,21 +48,17 @@
#include <sys/malloc.h>
#include <sys/gmon.h>
/*
* System initialization
*/
extern void kmstartup(); /* should be static*/
static void kmstartup __P((caddr_t));
SYSINIT(kmem, SI_SUB_KPROF, SI_ORDER_FIRST, kmstartup, NULL)
struct gmonparam _gmonparam = { GMON_PROF_OFF };
extern char btext[];
extern char etext[];
void
kmstartup()
static void
kmstartup(udata)
caddr_t udata;
{
char *cp;
struct gmonparam *p = &_gmonparam;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)gmon.h 8.2 (Berkeley) 1/4/94
* $Id: gmon.h,v 1.5 1995/05/14 03:00:04 davidg Exp $
* $Id: gmon.h,v 1.6 1995/05/30 08:14:22 rgrimes Exp $
*/
#ifndef _SYS_GMON_H_
@ -154,10 +154,6 @@ extern struct gmonparam _gmonparam;
#define GMON_PROF_ERROR 2
#define GMON_PROF_OFF 3
#ifdef KERNEL
void kmstartup __P((void));
#endif
/*
* Sysctl definitions for extracting profiling information from the kernel.
*/
@ -166,4 +162,5 @@ void kmstartup __P((void));
#define GPROF_FROMS 2 /* struct: from location hash bucket */
#define GPROF_TOS 3 /* struct: destination/count structure */
#define GPROF_GMONPARAM 4 /* struct: profiling parameters (see above) */
#endif /* !_SYS_GMON_H_ */