Revert "add kvmalloc alloc_size attribute"

This reverts commit 11c4ea478b.
This commit is contained in:
Ksawlii 2024-12-13 19:44:18 +01:00
parent 2be24d6b8b
commit 5b8d0cd5f0

View file

@ -816,7 +816,7 @@ static inline int is_vmalloc_or_module_addr(const void *x)
} }
#endif #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) static inline void *kvmalloc(size_t size, gfp_t flags)
{ {
return kvmalloc_node(size, flags, NUMA_NO_NODE); return kvmalloc_node(size, flags, NUMA_NO_NODE);