From: Tiwei Bie Date: Wed, 6 Mar 2024 10:19:18 +0000 (+0800) Subject: um: Fix the declaration of vfree X-Git-Tag: v6.10-rc1~14^2~23 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0c2b208c8b790b52587df6c66bfb6d9e0d6c4cd9;p=linux-block.git 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 Signed-off-by: Richard Weinberger --- 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__ */