um: Fix the declaration of vfree
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 6 Mar 2024 10:19:18 +0000 (18:19 +0800)
committerRichard Weinberger <richard@nod.at>
Mon, 22 Apr 2024 19:44:00 +0000 (21:44 +0200)
The definition of vfree has changed since commit b3bdda02aa54
("vmalloc: add const to void* parameters"). Update the declaration
of vfree in um_malloc.h to match the latest definition.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/um_malloc.h

index 13da93284c2c7f35cef859c3c79647a58315acd5..d25084447c695a7ea12254c7c35d95fe328164a4 100644 (file)
@@ -12,7 +12,7 @@ extern void *uml_kmalloc(int size, int flags);
 extern void kfree(const void *ptr);
 
 extern void *vmalloc(unsigned long size);
-extern void vfree(void *ptr);
+extern void vfree(const void *ptr);
 
 #endif /* __UM_MALLOC_H__ */