vppinfra: fix page stats for large heaps 07/41707/2
authorDamjan Marion <[email protected]>
Mon, 14 Oct 2024 15:43:04 +0000 (17:43 +0200)
committerFlorin Coras <[email protected]>
Mon, 14 Oct 2024 18:26:08 +0000 (18:26 +0000)
Type: fix
Fixes: 6bfd076
Change-Id: I8da83a8a755e5893da627c0555039c62975a5e84
Signed-off-by: Damjan Marion <[email protected]>
src/vppinfra/linux/mem.c

index 17b4412..651ea10 100644 (file)
@@ -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;