From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 29 10:22:01 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64DFC16A420 for ; Sun, 29 Jan 2006 10:22:01 +0000 (GMT) (envelope-from pranavpeshwe@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id F332343D46 for ; Sun, 29 Jan 2006 10:22:00 +0000 (GMT) (envelope-from pranavpeshwe@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so847968wra for ; Sun, 29 Jan 2006 02:22:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WOdbxKPRTQNyJ18/1hGU2OTX19r61RXLmDY395TrAdNzLx2YmphF3/5op8jOXfa/NsM336UbAm9xavH4sEyifO2G7ltPmo5tauhWfm4S0D2xygwGpNt/CgqTRgb8/eO/Th3rddEUTC85qWfNEX1nJeMLHfbSnkKb4vHzNB+sy1o= Received: by 10.54.115.13 with SMTP id n13mr6301712wrc; Sun, 29 Jan 2006 02:22:00 -0800 (PST) Received: by 10.54.99.13 with HTTP; Sun, 29 Jan 2006 02:21:59 -0800 (PST) Message-ID: Date: Sun, 29 Jan 2006 15:51:59 +0530 From: Pranav Peshwe To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Warnings compiling a KLD #including vnode.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2006 10:22:01 -0000 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 above some other inclusions. TIA. Regards, Pranav