]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't declare the cprof buf if CPROFILE isn't on.
authorBen Gras <ben@minix3.org>
Fri, 6 Feb 2009 16:31:28 +0000 (16:31 +0000)
committerBen Gras <ben@minix3.org>
Fri, 6 Feb 2009 16:31:28 +0000 (16:31 +0000)
kernel/profile.c

index 9f3f351e337baa3fa965be54216608b0cffff2bc..5336267437a54abe7d68f06b60c5d13884926549 100644 (file)
@@ -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