From 5b8d0cd5f08ffcb75ad084e0c45e4f0cbab73c65 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Fri, 13 Dec 2024 19:44:18 +0100 Subject: [PATCH] Revert "add kvmalloc alloc_size attribute" This reverts commit 11c4ea478b5f92e48c8d9bcf9bc6daae55c18a08. --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 48ca9cf12..14bb23986 100755 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -816,7 +816,7 @@ static inline int is_vmalloc_or_module_addr(const void *x) } #endif -extern void *kvmalloc_node(size_t size, gfp_t flags, int node) __attribute__((alloc_size(1))); +extern void *kvmalloc_node(size_t size, gfp_t flags, int node); static inline void *kvmalloc(size_t size, gfp_t flags) { return kvmalloc_node(size, flags, NUMA_NO_NODE);