From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 29 18:01:12 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 23A1C16A422 for ; Sun, 29 Jan 2006 18:01:12 +0000 (GMT) (envelope-from uvarovsl@mail.pnpi.spb.ru) Received: from mail.lsi.ru (mail.lsi.ru [212.58.192.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7562E43D45 for ; Sun, 29 Jan 2006 18:01:11 +0000 (GMT) (envelope-from uvarovsl@mail.pnpi.spb.ru) Received: from localhost (localhost.lsi.ru [127.0.0.1]) by mail.lsi.ru (Postfix) with ESMTP id 7572C388297 for ; Sun, 29 Jan 2006 21:01:06 +0300 (MSK) Received: from mail.lsi.ru ([127.0.0.1]) by localhost (mail.lsi.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 53616-02 for ; Sun, 29 Jan 2006 21:01:06 +0300 (MSK) Received: from [10.0.0.11] (unknown [212.58.210.222]) by mail.lsi.ru (Postfix) with ESMTP id E99F2388292 for ; Sun, 29 Jan 2006 21:01:04 +0300 (MSK) Message-ID: <43DD02E2.8080705@mail.pnpi.spb.ru> Date: Sun, 29 Jan 2006 21:01:06 +0300 From: Sergey Uvarov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at lsi.ru Subject: Re: 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 18:01:12 -0000 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 In this case vnode_if.h will be properly built. Sergey.