From 2be24d6b8b4e1d08e45b338fa20d0b5318abe036 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Fri, 13 Dec 2024 19:44:18 +0100 Subject: [PATCH] Revert "add vmalloc alloc_size attributes" This reverts commit 78d3c27fffdece074efc38f9359e1d630aff33c3. --- include/linux/vmalloc.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 3bb5cfe83..7946ab663 100755 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -99,18 +99,18 @@ static inline void vmalloc_init(void) static inline unsigned long vmalloc_nr_pages(void) { return 0; } #endif -extern void *vmalloc(unsigned long size) __attribute__((alloc_size(1))); -extern void *vzalloc(unsigned long size) __attribute__((alloc_size(1))); -extern void *vmalloc_user(unsigned long size) __attribute__((alloc_size(1))); -extern void *vmalloc_node(unsigned long size, int node) __attribute__((alloc_size(1))); -extern void *vzalloc_node(unsigned long size, int node) __attribute__((alloc_size(1))); -extern void *vmalloc_32(unsigned long size) __attribute__((alloc_size(1))); -extern void *vmalloc_32_user(unsigned long size) __attribute__((alloc_size(1))); -extern void *__vmalloc(unsigned long size, gfp_t gfp_mask) __attribute__((alloc_size(1))); +extern void *vmalloc(unsigned long size); +extern void *vzalloc(unsigned long size); +extern void *vmalloc_user(unsigned long size); +extern void *vmalloc_node(unsigned long size, int node); +extern void *vzalloc_node(unsigned long size, int node); +extern void *vmalloc_32(unsigned long size); +extern void *vmalloc_32_user(unsigned long size); +extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); extern void *__vmalloc_node_range(unsigned long size, unsigned long align, unsigned long start, unsigned long end, gfp_t gfp_mask, pgprot_t prot, unsigned long vm_flags, int node, - const void *caller) __attribute__((alloc_size(1))); + const void *caller); void *__vmalloc_node(unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller);