Date: Mon, 17 Jul 2006 07:00:04 +0200 From: Wolfram Fenske <Wolfram.Fenske@Student.Uni-Magdeburg.DE> To: freebsd-current@freebsd.org Subject: Build error in sys/vm/uma_core.c, patch attached Message-ID: <86r70kltbf.fsf@student.uni-magdeburg.de>
next in thread | raw e-mail | index | archive | help
--=-=-= Hello! When I just tried to build -current, I got a warning in sys/vm/uma_core.c about `uma_zone_sumstat' being defined but not used and the build stopped. This attached patch fixed the problem. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=uma_core.c.diff *** sys/vm/uma_core.c.orig Mon Jul 17 00:53:26 2006 --- sys/vm/uma_core.c Mon Jul 17 06:50:48 2006 *************** *** 2779,2784 **** --- 2779,2785 ---- * safe from off-CPU; we should modify the caches to track this information * directly so that we don't have to. */ + #ifdef DDB static void uma_zone_sumstat(uma_zone_t z, int *cachefreep, u_int64_t *allocsp, u_int64_t *freesp) *************** *** 2809,2814 **** --- 2810,2816 ---- if (freesp != NULL) *freesp = frees; } + #endif /* DDB */ static int sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS) --=-=-= Regards Wolfram -- A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r70kltbf.fsf>