[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-bugs
Subject:    kern/26475: symbols defined in uvm_map.h may conflict with user variable names
From:       bbehr () networkstoragecorp ! com
Date:       2004-07-29 17:41:19
Message-ID: 20040729174119.17F9111152 () narn ! netbsd ! org
[Download RAW message or body]


>Number:         26475
>Category:       kern
>Synopsis:       symbols defined in uvm_map.h may conflict with user variable names
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 29 20:06:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     William Behr
>Release:        NetBSD 2.0 BETA
>Organization:
Network Storage Corporation
>Environment:
NetBSD raider 2.0_BETA NetBSD 2.0_BETA (GENERIC) #1: Thu Jul 29 15:10:02 EDT 2004
>Description:
nonspecific symbols min_offset and max_offset defined in uvm_map.h
may conflict with the names of unrelated simple variables declared
in other non-uvm source modules which indirectly include this file.
>How-To-Repeat:
compile any program source that includes <sys/vnode.h>
and declares variables named min_offset or max_offset.
>Fix:
suggested resolution: delete these symbol definitions in uvm_map.h,
modify the vm_map_min() and vm_map_max() macros to incorporate the
appropriate substitution directly, and alter all references to the
deleted symbols (27 total) in other modules to employ these macros.

modules affected:

sys/uvm/uvm_map.h (4)
sys/uvm/uvm_map.c (16)
sys/uvm/uvm_map_i.h (4)
sys/uvm/uvm_mmap.c (1)
sys/kern/kern_exec.c (1)
sys/arch/acorn26/acorn26/machdep.c (1)
>Release-Note:
>Audit-Trail:
>Unformatted:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic