From owner-freebsd-current@FreeBSD.ORG Mon Jul 17 05:01:52 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A784116A4DA for ; Mon, 17 Jul 2006 05:01:52 +0000 (UTC) (envelope-from Wolfram.Fenske@Student.Uni-Magdeburg.DE) Received: from mail.uni-magdeburg.de (mail.uni-magdeburg.de [141.44.1.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D57C43D46 for ; Mon, 17 Jul 2006 05:01:52 +0000 (GMT) (envelope-from Wolfram.Fenske@Student.Uni-Magdeburg.DE) Received: from sunny.urz.uni-magdeburg.de ([141.44.8.7]) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.62) for id 1G2LEr-0003Mp-HV; Mon, 17 Jul 2006 07:01:51 +0200 Received: from hondo. (pD95168E2.dip0.t-ipconnect.de [217.81.104.226]) (authenticated bits=0) by sunny.urz.uni-magdeburg.de (8.12.10/8.12.10) with ESMTP id k6H51lSX026886 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 17 Jul 2006 07:01:48 +0200 To: freebsd-current@freebsd.org From: Wolfram Fenske Date: Mon, 17 Jul 2006 07:00:04 +0200 Message-ID: <86r70kltbf.fsf@student.uni-magdeburg.de> User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.6 (--) X-Spam-Report: ---- Start SpamAssassin results -2.6 points, 5.0 required; -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 AWL AWL: From: address is in the auto white-list ---- End of SpamAssassin results X-Scan-Signature: 2f255716d114fd33a6975e7c663eba49 Subject: Build error in sys/vm/uma_core.c, patch attached X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 05:01:52 -0000 --=-=-= 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? --=-=-=--