]> xenbits.xensource.com Git - xen.git/commitdiff
mm: adjust _xvrealloc() declaration
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Nov 2024 12:33:38 +0000 (13:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Nov 2024 12:33:38 +0000 (13:33 +0100)
... to match its definition parameter-name-wise, to please Misra C:2012
Rule 8.3.

Fixes: 9102fcd9579f ("mm: introduce xvmalloc() et al and use for grant table allocations")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/xvmalloc.h

index e1969c85960894d48fe5d5e4a017167d41660658..440d85a284bbc4d98c02568b0fdaad459fa0a871 100644 (file)
@@ -52,7 +52,7 @@ void xvfree(void *va);
 /* Underlying functions */
 void *_xvmalloc(size_t size, unsigned int align);
 void *_xvzalloc(size_t size, unsigned int align);
-void *_xvrealloc(void *ptr, size_t size, unsigned int align);
+void *_xvrealloc(void *va, size_t size, unsigned int align);
 
 static inline void *_xvmalloc_array(
     size_t size, unsigned int align, unsigned long num)