]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xvmalloc: please Misra C:2012 Rule 8.2
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Aug 2024 13:40:30 +0000 (15:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Aug 2024 13:40:30 +0000 (15:40 +0200)
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 <jbeulich@suse.com>
Acked-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/xvmalloc.h

index ab71a1e1a7b71c845b3130f99985024471cd73d9..e1969c85960894d48fe5d5e4a017167d41660658 100644 (file)
@@ -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 { \