Re: Warnings compiling a KLD #including vnode.h



On 1/29/06, Sergey Uvarov <uvarovsl@xxxxxxxxxxxxxxxx> 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 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.

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
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [SLE] Anyone Have An eMachines 6809 ?
    ... TIA and regards, ... Check the headers for your unsubscription address ...
    (SuSE)
  • Where Is __va_start Declared?
    ... Can anybody tell me where __va_start is declared in the Unix headers ... would be the most likely ones to bring in this declaration? ... process of porting all my CW code over to XCode (yeah, yeah, I know ... it on I began to get warnings on the following simple code segment at ...
    (comp.sys.mac.programmer.help)
  • RE: Design orientated C question
    ... //Function declaration ... void F1(HDC, struct tagIdRoomIndex RIndex[]); ... Best regards ... when I am passing the array of structures by the calling ...
    (microsoft.public.vc.language)
  • Re: Doctors oath in Britain?
    ... Tia. ... Declaration of Geneva, at graduation. ...
    (sci.med)
  • Re: SCardTransmit Fails
    ... Regards ... Pieter Philippaerts wrote: ... > This declaration is wrong; both pioSendRequest and pioRecvRequest should be ... > ByVal SendBuffLen As Integer, ByVal pioRecvRequest As IntPtr, ByRef RecvBuff ...
    (microsoft.public.platformsdk.security)