Warnings compiling a KLD #including vnode.h

Sergey Uvarov uvarovsl at mail.pnpi.spb.ru
Sun Jan 29 10:01:12 PST 2006


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.


More information about the freebsd-hackers mailing list