Date: Sun, 29 Jan 2006 21:01:06 +0300 From: Sergey Uvarov <uvarovsl@mail.pnpi.spb.ru> To: freebsd-hackers@freebsd.org Subject: Re: Warnings compiling a KLD #including vnode.h Message-ID: <43DD02E2.8080705@mail.pnpi.spb.ru> In-Reply-To: <cdfd7d6d0601290221g4a305382sdea711f47c91e6d5@mail.gmail.com> References: <cdfd7d6d0601290221g4a305382sdea711f47c91e6d5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 saying : > > @/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 = vnode_if.h <all your source files> In this case vnode_if.h will be properly built. Sergey.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43DD02E2.8080705>