aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damjan.marion@gmail.com>2024-10-14 17:43:04 +0200
committerFlorin Coras <florin.coras@gmail.com>2024-10-14 18:26:08 +0000
commit1db9079ccb2b4461d7b2d07267df6cab05aaafa6 (patch)
treecad47e4ee67c5e4aae33ab5cf0cbc8b494eaa19d
parent6885d5f9ebd97e19d520280a2a85a4081e8ad060 (diff)
vppinfra: fix page stats for large heaps
Type: fix Fixes: 6bfd076 Change-Id: I8da83a8a755e5893da627c0555039c62975a5e84 Signed-off-by: Damjan Marion <damjan.marion@gmail.com>
-rw-r--r--src/vppinfra/linux/mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index 17b4412e6c9..651ea107b4d 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -515,7 +515,8 @@ __clib_export void
clib_mem_get_page_stats (void *start, clib_mem_page_sz_t log2_page_size,
uword n_pages, clib_mem_page_stats_t * stats)
{
- int i, *status = 0;
+ int *status = 0;
+ uword i;
void **ptr = 0;
unsigned char incore;