diff --git a/common/lib/libc/gmon/mcount.c b/common/lib/libc/gmon/mcount.c index 0a0c71688fde..3d1e868ee089 100644 --- a/common/lib/libc/gmon/mcount.c +++ b/common/lib/libc/gmon/mcount.c @@ -1,4 +1,4 @@ -/* $NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $ */ +/* $NetBSD: mcount.c,v 1.9 2012/03/17 21:40:21 martin Exp $ */ /* * Copyright (c) 2003, 2004 Wasabi Systems, Inc. @@ -76,7 +76,7 @@ #if 0 static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $"); +__RCSID("$NetBSD: mcount.c,v 1.9 2012/03/17 21:40:21 martin Exp $"); #endif #endif @@ -93,11 +93,13 @@ extern struct gmonparam _gmondummy; struct gmonparam *_m_gmon_alloc(void); #endif +#ifndef __LINT__ _MCOUNT_DECL __P((u_long, u_long)) #ifdef _KERNEL __attribute__((__no_instrument_function__)) #endif __used; +#endif /* XXX: make these interfaces */ #ifdef _RUMPKERNEL @@ -124,6 +126,7 @@ _MCOUNT_DECL __P((u_long, u_long)) * both frompcindex and frompc. Any reasonable, modern compiler will * perform this optimization. */ +#ifndef __LINT__ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ u_long frompc, selfpc; { @@ -258,6 +261,7 @@ overflow: #endif return; } +#endif #ifdef MCOUNT /*