X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvlib%2Fphysmem_funcs.h;h=3e9208b4e95ba52d595e557ce0ff6e8bcee00241;hb=c9c9143898aa1f5b5aa90ab03a4c94181dcf7ed6;hp=18daeebabd90e4945574f467010218feff2616e9;hpb=d2bfb78f4f8fbfae204424467a4106530b89e608;p=vpp.git diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h index 18daeebabd9..3e9208b4e95 100644 --- a/src/vlib/physmem_funcs.h +++ b/src/vlib/physmem_funcs.h @@ -40,6 +40,11 @@ #ifndef included_vlib_physmem_funcs_h #define included_vlib_physmem_funcs_h +#include +#include +#include +#include + clib_error_t *vlib_physmem_init (vlib_main_t * vm); clib_error_t *vlib_physmem_shared_map_create (vlib_main_t * vm, char *name, uword size, u32 log2_page_sz, @@ -104,7 +109,8 @@ vlib_physmem_get_pa (vlib_main_t * vm, void *mem) always_inline clib_error_t * vlib_physmem_last_error (struct vlib_main_t * vm) { - return clib_error_return (0, "unknown error"); + clib_pmalloc_main_t *pm = vm->physmem_main.pmalloc_main; + return pm->error; } #endif /* included_vlib_physmem_funcs_h */