Date: Mon, 30 Jan 2006 07:36:32 +0530 From: Pranav Peshwe <pranavpeshwe@gmail.com> To: Sergey Uvarov <uvarovsl@mail.pnpi.spb.ru> Subject: Re: Warnings compiling a KLD #including vnode.h Message-ID: <cdfd7d6d0601291806y2399a777k92945a86790c2a65@mail.gmail.com> In-Reply-To: <43DD02E2.8080705@mail.pnpi.spb.ru> References: <cdfd7d6d0601290221g4a305382sdea711f47c91e6d5@mail.gmail.com> <43DD02E2.8080705@mail.pnpi.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/29/06, Sergey Uvarov <uvarovsl@mail.pnpi.spb.ru> 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 <all your source files> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfd7d6d0601291806y2399a777k92945a86790c2a65>