Skip to content

Commit

Permalink
mm: adjust _xvrealloc() declaration
Browse files Browse the repository at this point in the history
... to match its definition parameter-name-wise, to please Misra C:2012
Rule 8.3.

Fixes: 9102fcd ("mm: introduce xvmalloc() et al and use for grant table allocations")
Reported-by: Andrew Cooper <[email protected]>
Signed-off-by: Jan Beulich <[email protected]>
Acked-by: Andrew Cooper <[email protected]>
  • Loading branch information
jbeulich committed Nov 12, 2024
1 parent 0bfe567 commit 64d2290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xen/include/xen/xvmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64d2290

Please sign in to comment.