From: Matthew Fernandez Date: Sat, 11 Jul 2020 21:00:12 +0000 (-0700) Subject: remove unnecessary 'reg' annotations in vmalloc X-Git-Tag: 2.46.0~20^2^2~182^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf0c23f2d9c27861fe99f944a111133803512e8b;p=graphviz remove unnecessary 'reg' annotations in vmalloc Whether these parameters are provided in registers or on the stack is entirely dictated by the platform's calling convention these days. --- diff --git a/lib/vmalloc/vmbest.c b/lib/vmalloc/vmbest.c index 0f9af6c67..b8aeb441a 100644 --- a/lib/vmalloc/vmbest.c +++ b/lib/vmalloc/vmbest.c @@ -43,7 +43,7 @@ static bool make_space(Vmdata_t *vd) { * @param vm region allocating from * @param size desired block size */ -static void *bestalloc(Vmalloc_t *vm, reg size_t size) { +static void *bestalloc(Vmalloc_t *vm, size_t size) { Vmdata_t *vd = vm->data; void *p; @@ -96,7 +96,7 @@ static int bestfree(Vmalloc_t *vm, void *data) { * @param size new size * @param type ignored */ -static void *bestresize(Vmalloc_t *vm, void *data, reg size_t size, int type) { +static void *bestresize(Vmalloc_t *vm, void *data, size_t size, int type) { Vmdata_t *vd = vm->data; size_t i;