From owner-freebsd-current Sun Jul 7 14:49:34 2002 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 5399A37B401; Sun, 7 Jul 2002 14:49:30 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77B343E31; Sun, 7 Jul 2002 14:49:28 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id HAA27071; Mon, 8 Jul 2002 07:49:21 +1000 Date: Mon, 8 Jul 2002 07:52:22 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Alexander Leidinger Cc: current@FreeBSD.ORG, Subject: Re: buildkernel error with ENABLE_VFS_IOOPT/ZERO_COPY_SOCKETS In-Reply-To: <200207071607.g67G78JX076844@Magelan.Leidinger.net> Message-ID: <20020708074116.T13321-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 7 Jul 2002, Alexander Leidinger wrote: > -current from today fails in kern/kern_subr.c: > > ../../../kern/kern_subr.c:220: warning: function declaration isn't a prototype > > ---snip--- > #if defined(ENABLE_VFS_IOOPT) || defined(ZERO_COPY_SOCKETS) > /* > * Experimental support for zero-copy I/O > */ > static int > userspaceco(cp, cnt, uio, obj, disposable) > caddr_t cp; > u_int cnt; > struct uio *uio; > struct vm_object *obj; > int disposable; > { > ---snip--- This happens when ENABLE_VFS_IOOPT is configured by ZERO_COPY_SOCKETS is not configured. I don't like the #includes and declarations being in an unusual order just to avoid ifdefs. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message