From: Ben Gras Date: Fri, 6 Feb 2009 16:31:28 +0000 (+0000) Subject: Don't declare the cprof buf if CPROFILE isn't on. X-Git-Tag: v3.1.4~111 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=6ac03385849242fa491c40264b3375a1c9e66ba9;p=minix.git Don't declare the cprof buf if CPROFILE isn't on. --- diff --git a/kernel/profile.c b/kernel/profile.c index 9f3f351e3..533626743 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -121,7 +121,7 @@ irq_hook_t *hook; #endif /* SPROFILE */ - +#if CPROFILE /* * The following variables and functions are used by the procentry/ * procentry syslib functions when linked with kernelspace processes. @@ -171,3 +171,4 @@ void *tbl_ptr; cprof_procs_no++; } +#endif