summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2024-03-06 13:19:18 +0300
committerRichard Weinberger <richard@nod.at>2024-04-22 22:44:00 +0300
commit0c2b208c8b790b52587df6c66bfb6d9e0d6c4cd9 (patch)
treeb62301030293754367dc45f82dd19abb2c0cd297 /arch/um
parent53471c574974a3df4a5705b1db431d69058cc6d9 (diff)
downloadlinux-0c2b208c8b790b52587df6c66bfb6d9e0d6c4cd9.tar.xz
um: Fix the declaration of vfree
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>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/include/shared/um_malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/um_malloc.h b/arch/um/include/shared/um_malloc.h
index 13da93284c2c..d25084447c69 100644
--- a/arch/um/include/shared/um_malloc.h
+++ b/arch/um/include/shared/um_malloc.h
@@ -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__ */