vm: Use __diagused for variables only used in KASSERT().
This commit is contained in:
parent
40cbcb996c
commit
b8ebd99aa5
@ -1015,7 +1015,7 @@ static bool
|
||||
swp_pager_xfer_source(vm_object_t srcobject, vm_object_t dstobject,
|
||||
vm_pindex_t pindex, daddr_t addr)
|
||||
{
|
||||
daddr_t dstaddr;
|
||||
daddr_t dstaddr __diagused;
|
||||
|
||||
KASSERT((srcobject->flags & OBJ_SWAP) != 0,
|
||||
("%s: Srcobject not swappable", __func__));
|
||||
|
@ -223,7 +223,7 @@ static void
|
||||
kmapent_free(void *item, vm_size_t size, uint8_t pflag)
|
||||
{
|
||||
vm_offset_t addr;
|
||||
int error;
|
||||
int error __diagused;
|
||||
|
||||
if ((pflag & UMA_SLAB_PRIV) == 0)
|
||||
/* XXX leaked */
|
||||
@ -4250,7 +4250,7 @@ vmspace_fork(struct vmspace *vm1, vm_ooffset_t *fork_charge)
|
||||
vm_map_t new_map, old_map;
|
||||
vm_map_entry_t new_entry, old_entry;
|
||||
vm_object_t object;
|
||||
int error, locked;
|
||||
int error, locked __diagused;
|
||||
vm_inherit_t inh;
|
||||
|
||||
old_map = &vm1->vm_map;
|
||||
@ -4600,13 +4600,13 @@ vm_map_growstack(vm_map_t map, vm_offset_t addr, vm_map_entry_t gap_entry)
|
||||
vm_offset_t gap_end, gap_start, grow_start;
|
||||
vm_size_t grow_amount, guard, max_grow;
|
||||
rlim_t lmemlim, stacklim, vmemlim;
|
||||
int rv, rv1;
|
||||
int rv, rv1 __diagused;
|
||||
bool gap_deleted, grow_down, is_procstack;
|
||||
#ifdef notyet
|
||||
uint64_t limit;
|
||||
#endif
|
||||
#ifdef RACCT
|
||||
int error;
|
||||
int error __diagused;
|
||||
#endif
|
||||
|
||||
p = curproc;
|
||||
|
@ -1545,7 +1545,7 @@ static void
|
||||
vm_page_object_remove(vm_page_t m)
|
||||
{
|
||||
vm_object_t object;
|
||||
vm_page_t mrem;
|
||||
vm_page_t mrem __diagused;
|
||||
|
||||
vm_page_assert_xbusied(m);
|
||||
object = m->object;
|
||||
@ -1770,7 +1770,7 @@ static bool
|
||||
vm_page_replace_hold(vm_page_t mnew, vm_object_t object, vm_pindex_t pindex,
|
||||
vm_page_t mold)
|
||||
{
|
||||
vm_page_t mret;
|
||||
vm_page_t mret __diagused;
|
||||
bool dropped;
|
||||
|
||||
VM_OBJECT_ASSERT_WLOCKED(object);
|
||||
|
@ -560,7 +560,7 @@ vm_thread_swapin(struct thread *td, int oom_alloc)
|
||||
{
|
||||
vm_page_t ma[KSTACK_MAX_PAGES];
|
||||
vm_offset_t kaddr;
|
||||
int a, count, i, j, pages, rv;
|
||||
int a, count, i, j, pages, rv __diagused;
|
||||
|
||||
kaddr = td->td_kstack;
|
||||
pages = td->td_kstack_pages;
|
||||
|
@ -1290,7 +1290,7 @@ static void
|
||||
vnode_pager_putpages(vm_object_t object, vm_page_t *m, int count,
|
||||
int flags, int *rtvals)
|
||||
{
|
||||
int rtval;
|
||||
int rtval __diagused;
|
||||
struct vnode *vp;
|
||||
int bytes = count * PAGE_SIZE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user