From 6ac03385849242fa491c40264b3375a1c9e66ba9 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 6 Feb 2009 16:31:28 +0000 Subject: [PATCH] Don't declare the cprof buf if CPROFILE isn't on. --- kernel/profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.44.0