[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xvmalloc: please Misra C:2012 Rule 8.2



commit cbe73b848286f1e6b855c0ba328d56e0014d19e6
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Aug 14 15:40:30 2024 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Aug 14 15:40:30 2024 +0200

    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 <jbeulich@xxxxxxxx>
    Acked-by: Michal Orzel <michal.orzel@xxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/include/xen/xvmalloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 { \
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.