Module Name: src
Committed By: martin
Date: Sat Mar 17 21:40:22 UTC 2012
Modified Files:
src/common/lib/libc/gmon: mcount.c
Log Message:
shut up lint
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/common/lib/libc/gmon/mcount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/gmon/mcount.c
diff -u src/common/lib/libc/gmon/mcount.c:1.8 src/common/lib/libc/gmon/mcount.c:1.9
--- src/common/lib/libc/gmon/mcount.c:1.8 Mon Jan 5 18:06:57 2009
+++ src/common/lib/libc/gmon/mcount.c Sat Mar 17 21:40:21 2012
@@ -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
/*