Fix build of uma_core.c when DDB is not compiled into the kernel by
making uma_zone_sumstat() ifdef DDB, as it's only used with DDB now. Submitted by: Wolfram Fenske <Wolfram.Fenske at Student.Uni-Magdeburg.DE>
This commit is contained in:
parent
c601d0f319
commit
3f582797ac
@ -2768,6 +2768,7 @@ uma_print_zone(uma_zone_t zone)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
/*
|
||||
* Generate statistics across both the zone and its per-cpu cache's. Return
|
||||
* desired statistics if the pointer is non-NULL for that statistic.
|
||||
@ -2809,6 +2810,7 @@ uma_zone_sumstat(uma_zone_t z, int *cachefreep, u_int64_t *allocsp,
|
||||
if (freesp != NULL)
|
||||
*freesp = frees;
|
||||
}
|
||||
#endif /* DDB */
|
||||
|
||||
static int
|
||||
sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS)
|
||||
|
Loading…
Reference in New Issue
Block a user