Skip to contentSkip to conversation

tools/virtio: Parameter type completion

PATCH New Xin Gao 1 participant 1 message Aug 8, 2022 virtio core

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 tools/virtio: Parameter type completion

'unsigned int' is better than 'unsigned'.

---
 tools/virtio/linux/kernel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/virtio/linux/kernel.h +1 -1
index 0b493542e61a..94144979fbba 100644
@@ -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);
 }
Signature · 1 line
2.30.2