* [PATCH] tools/virtio: Parameter type completion
@ 2022-08-08 14:48 Xin Gao
0 siblings, 0 replies; only message in thread
From: Xin Gao @ 2022-08-08 14:48 UTC (permalink / raw)
To: mst, jasowang; +Cc: virtualization, linux-kernel, Xin Gao
'unsigned int' is better than 'unsigned'.
Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
tools/virtio/linux/kernel.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
index 0b493542e61a..94144979fbba 100644
--- a/tools/virtio/linux/kernel.h
+++ b/tools/virtio/linux/kernel.h
@@ -58,7 +58,7 @@ static inline void *kmalloc(size_t s, gfp_t gfp)
return __kmalloc_fake;
return malloc(s);
}
-static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp)
+static inline void *kmalloc_array(unsigned int n, size_t s, gfp_t gfp)
{
return kmalloc(n * s, gfp);
}
--
2.30.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-08 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 14:48 [PATCH] tools/virtio: Parameter type completion Xin Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®