X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fvec.h;h=1fcb5f1a37471c06cbc34b058227c4ca8ec384ac;hb=379aac395a2cc78847d8f14264a22a3ee99fc1c2;hp=df913c2b144b6453fcf755842236e70fb77bd6c0;hpb=c458c493667bde30c22760e3a1839f2cac6e6447;p=vpp.git diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h index df913c2b144..1fcb5f1a374 100644 --- a/src/vppinfra/vec.h +++ b/src/vppinfra/vec.h @@ -119,7 +119,7 @@ void *vec_resize_allocate_memory (void *v, #define _vec_resize_numa(V,L,DB,HB,A,S) \ ({ \ __typeof__ ((V)) _V; \ - _V = _vec_resize_inline(V,L,DB,HB,clib_max((__alignof__((V)[0])),(A)),(S)); \ + _V = _vec_resize_inline((void *)V,L,DB,HB,clib_max((__alignof__((V)[0])),(A)),(S)); \ _V; \ }) @@ -379,6 +379,8 @@ do { \ */ #define vec_free(V) vec_free_h(V,0) +void vec_free_not_inline (void *v); + /**\brief Free vector user header (syntactic sugar) @param h vector header @void