Skip to contentSkip to conversation

xvmalloc: please Misra C:2012 Rule 8.2

PATCH In review Jan Beulich 3 participants 3 messages Aug 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
xen/include/xen/xvmalloc.h +1 -1
@@ -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 { \
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Jan Beulich

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")

~Michal