From owner-freebsd-arm@FreeBSD.ORG Wed Dec 13 20:24:36 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E2FA16A492 for ; Wed, 13 Dec 2006 20:24:36 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F7BA43FC5 for ; Wed, 13 Dec 2006 20:17:24 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.7/8.13.4) with ESMTP id kBDKTdhk026727; Wed, 13 Dec 2006 21:29:39 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.7/8.13.4/Submit) id kBDKTc0C026726; Wed, 13 Dec 2006 21:29:38 +0100 (CET) (envelope-from mlfbsd) Date: Wed, 13 Dec 2006 21:29:38 +0100 From: Olivier Houchard To: ticso@cicely.de Message-ID: <20061213202938.GA26703@ci0.org> References: <20061213192500.GX75351@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061213192500.GX75351@cicely12.cicely.de> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: atomic_add_long and others missing X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2006 20:24:36 -0000 On Wed, Dec 13, 2006 at 08:25:00PM +0100, Bernd Walter wrote: > Netgraph expects further atomic functions: > ../../../netgraph/ng_base.c: In function `ng_dequeue': > ../../../netgraph/ng_base.c:1944: warning: implicit declaration of function `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1951: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: redundant redeclaration of 'atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: previous implicit declaration of 'atomic_add_long' was here > ../../../netgraph/ng_base.c: In function `ng_queue_rw': > ../../../netgraph/ng_base.c:1991: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: redundant redeclaration of 'atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: previous implicit declaration of 'atomic_add_long' was here > ../../../netgraph/ng_base.c: In function `ng_acquire_read': > ../../../netgraph/ng_base.c:2031: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: redundant redeclaration of 'atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: previous implicit declaration of 'atomic_add_long' was here > ../../../netgraph/ng_base.c:2039: warning: implicit declaration of function `atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: nested extern declaration of `atomic_subtract_long' > ../../../netgraph/ng_base.c: In function `ng_acquire_write': > ../../../netgraph/ng_base.c:2083: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: redundant redeclaration of 'atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: previous implicit declaration of 'atomic_add_long' was here > ../../../netgraph/ng_base.c:2087: warning: nested extern declaration of `atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: redundant redeclaration of 'atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: previous implicit declaration of 'atomic_subtract_long' was here > ../../../netgraph/ng_base.c: In function `ng_leave_read': > ../../../netgraph/ng_base.c:2107: warning: nested extern declaration of `atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: redundant redeclaration of 'atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: previous implicit declaration of 'atomic_subtract_long' was here > ../../../netgraph/ng_base.c: In function `ng_leave_write': > ../../../netgraph/ng_base.c:2113: warning: nested extern declaration of `atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: redundant redeclaration of 'atomic_subtract_long' > ../../../netgraph/ng_base.c:2039: warning: previous implicit declaration of 'atomic_subtract_long' was here > ../../../netgraph/ng_base.c: In function `ng_flush_input_queue': > ../../../netgraph/ng_base.c:2127: warning: nested extern declaration of `atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: redundant redeclaration of 'atomic_add_long' > ../../../netgraph/ng_base.c:1944: warning: previous implicit declaration of 'atomic_add_long' was here > *** Error code 1 > > I've #define'ed them localy to _32, but I suspect that there are > more missing. > Yes a bunch of those are missing. I remember des@ posting a patch to complete atomic.h, but I've never heard back from him. Olivier