Skip to content

Commit

Permalink
add kvmalloc alloc_size attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
  • Loading branch information
thestinger authored and anthraxx committed Sep 21, 2019
1 parent 3299e78 commit a2aa805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mm.h
Expand Up @@ -647,7 +647,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);
extern void *kvmalloc_node(size_t size, gfp_t flags, int node) __attribute__((alloc_size(1)));
static inline void *kvmalloc(size_t size, gfp_t flags)
{
return kvmalloc_node(size, flags, NUMA_NO_NODE);
Expand Down

0 comments on commit a2aa805

Please sign in to comment.