From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 30 02:06:34 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D15416A420 for ; Mon, 30 Jan 2006 02:06:34 +0000 (GMT) (envelope-from pranavpeshwe@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F92943D45 for ; Mon, 30 Jan 2006 02:06:33 +0000 (GMT) (envelope-from pranavpeshwe@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so938462wra for ; Sun, 29 Jan 2006 18:06:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U2aOFMNrxP181Bik0//UWpxSVnAYPAXFVd03jlq3oYin2kzxErjAbQ4eMQjLA57Kap0bIalq6G0W15enmeR1XSlrukaSFoiaTcDb8KfIx7l5V0/gV4JLqbzrGudNwLOvrvNSIgJTNFH7mVvYK8mI5YZitnAySbjqJiNG39Rrjj8= Received: by 10.54.123.3 with SMTP id v3mr7323733wrc; Sun, 29 Jan 2006 18:06:32 -0800 (PST) Received: by 10.54.99.13 with HTTP; Sun, 29 Jan 2006 18:06:32 -0800 (PST) Message-ID: Date: Mon, 30 Jan 2006 07:36:32 +0530 From: Pranav Peshwe To: Sergey Uvarov In-Reply-To: <43DD02E2.8080705@mail.pnpi.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43DD02E2.8080705@mail.pnpi.spb.ru> X-Mailman-Approved-At: Mon, 30 Jan 2006 02:08:40 +0000 Cc: Subject: Re: Warnings compiling a KLD #including vnode.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 02:06:34 -0000 On 1/29/06, Sergey Uvarov wrote: > Pranav Peshwe wrote: > > Hello, > > I am trying to write a pretty simple KLD.It compiles and > > works correctly. > > > > But,if i #include vnode.h in the KLD then i get a number of warnings sa= ying : > > > > @/sys/vnode.h:597: warning: "struct vop_lease_args" declared inside > > parameter list > > @/sys/vnode.h:597: warning: its scope is only this definition or > > declaration, which is probably not what you want > > Put vnode_if.h in to SRCS clause of your Makefile: > > SRCS =3D vnode_if.h > > In this case vnode_if.h will be properly built. > > Sergey. Thank you !! The errors and also the warnings are gone.I had to do the same things for a couple of other files like device_if.h and bus_if.h What are these files for ? i found them in the /sys/i386/compile/config-name/ directory.Most of the header files in that dir have a '_if' suffix and are dealing with kobj code,but what about the rest ? Why are they not kept(like other headers) in the /sys/sys or /sys/kern dirs ? TIA. Regards, Pranav --------------------------------------------------------------------------- No matter how much cats fight, there always seem to be plenty of kittens. ---Abraham Lincoln