From: Jan Beulich Date: Wed, 14 Aug 2024 13:40:30 +0000 (+0200) Subject: xvmalloc: please Misra C:2012 Rule 8.2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cbe73b848286f1e6b855c0ba328d56e0014d19e6;p=people%2Faperard%2Fxen-unstable.git xvmalloc: please Misra C:2012 Rule 8.2 The cloning from xmalloc.h happened long before Misra work started in earnest, leading to the missing parameter name having been overlooked later on. Fixes: 9102fcd9579f ("mm: introduce xvmalloc() et al and use for grant table allocations") Signed-off-by: Jan Beulich Acked-by: Michal Orzel Acked-by: Andrew Cooper --- diff --git a/xen/include/xen/xvmalloc.h b/xen/include/xen/xvmalloc.h index ab71a1e1a7..e1969c8596 100644 --- a/xen/include/xen/xvmalloc.h +++ b/xen/include/xen/xvmalloc.h @@ -41,7 +41,7 @@ __alignof__(typeof(*(ptr))))) /* Free any of the above. */ -void xvfree(void *); +void xvfree(void *va); /* Free an allocation, and zero the pointer to it. */ #define XVFREE(p) do { \