diff options
-rw-r--r-- | src/vppinfra/cpu.h | 6 | ||||
-rw-r--r-- | src/vppinfra/linux/mem.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 31049f5458c..769bdb56e82 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -166,10 +166,10 @@ _ (asimddp, 20) \ _ (sha512, 21) \ _ (sve, 22) -u32 clib_get_current_cpu_id (); -u32 clib_get_current_numa_node (); +u32 clib_get_current_cpu_id (void); +u32 clib_get_current_numa_node (void); -typedef int (*clib_cpu_supports_func_t) (); +typedef int (*clib_cpu_supports_func_t) (void); #if defined(__x86_64__) #include "cpuid.h" diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c index 69f4363c8ac..8f696a1036a 100644 --- a/src/vppinfra/linux/mem.c +++ b/src/vppinfra/linux/mem.c @@ -100,7 +100,7 @@ legacy_get_log2_default_hugepage_size (void) } void -clib_mem_main_init () +clib_mem_main_init (void) { clib_mem_main_t *mm = &clib_mem_main; long sysconf_page_size; |