Skip to content

Commit 0c2b208

Browse files
btw616richardweinberger
authored andcommitted
um: Fix the declaration of vfree
The definition of vfree has changed since commit b3bdda0 ("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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 53471c5 commit 0c2b208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/include/shared/um_malloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern void *uml_kmalloc(int size, int flags);
1212
extern void kfree(const void *ptr);
1313

1414
extern void *vmalloc(unsigned long size);
15-
extern void vfree(void *ptr);
15+
extern void vfree(const void *ptr);
1616

1717
#endif /* __UM_MALLOC_H__ */
1818

0 commit comments

Comments
 (0)