Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2006 15:51:59 +0530
From:      Pranav Peshwe <pranavpeshwe@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Warnings compiling a KLD #including vnode.h
Message-ID:  <cdfd7d6d0601290221g4a305382sdea711f47c91e6d5@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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

A similar warning is repeated for many more lines in the same header file.

There is also an error saying 'No such file' (on line 577) -- >
#include "vnode_if.h", i commented the line in the file and the KLD
compiled without an error.But the warnings still remain.

Can these warning be removed ? Are they caused due to an incorrect
sequence in #inclusion of the headers ? I thought this way because the
number of warnings and errors increases significantly if i move the
#include<sys/vnode.h> above some other inclusions.

TIA.

Regards,
Pranav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfd7d6d0601290221g4a305382sdea711f47c91e6d5>