Subject: kern/27028: wrong #ifdef pmap_wired_count
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 09/25/2004 09:08:35
>Number: 27028
>Category: kern
>Synopsis: wrong #ifdef pmap_wired_count
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 25 00:31:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD kaeru 2.0G NetBSD 2.0G (build.kaeru) #1700: Fri Sep 24 07:05:01 JST 2004 takashi@kaeru:/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
under /sys/uvm, there're code like:
#if defined(pmap_wired_count)
/* use pmap_wired_count */
#endif
while uvm_pmap.h has:
#if !defined(pmap_wired_count)
long pmap_wired_count(pmap_t);
#endif
>How-To-Repeat:
code inspection.
>Fix:
easy fix:
introduce a dedicated macro for testing pmap_wired_count's
availability.
better fix:
implement pmap_wired_count for ports missing it (only sparc?)
and make it mandatory.
>Release-Note:
>Audit-Trail:
>Unformatted: