Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 11:13:01 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/vm vm.h 
Message-ID:  <Pine.BSF.4.21.0201261112440.37522-100000@InterJet.elischer.org>
In-Reply-To: <200201261252.aa17054@salmon.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
All in-kernel prototypes should be invisible to userland.


On Sat, 26 Jan 2002, David Malone wrote:

> > In the kernel it is usual to have parameter names in prototypes 
> > (it was in style) It tends to keep people using standard names for certain
> > things...
> 
> OK, but I think something in userland sees this declaration and gcc
> whines about it. I might have made the change originally when I was
> playing with WARNS and gcc3. Should this declaration be protected
> by a #ifdef _KERNEL?
> 
> I can go an dig up what produced the warning if you think that I
> would be better fixing it some other way.
> 
> (Also, the parameter name was "kmi" and the line before in vm.h
> says "extern struct kva_md_info kmi;", so the parameter would always
> be shadowing a global variable. I guess that wouldn't have been
> ideal.)
> 
> 	David.
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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