mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 12:11:59 +02:00
ANDROID: slab: remove __alloc_size attribute from __kmalloc_node_track_caller
Commitf78a03f6e2("mm/slab_common: remove CONFIG_NUMA ifdefs for common kmalloc functions") added back the __alloc_size(1) attribute to __kmalloc_node_track_caller() which was removed in commit93dd04ab0b("slab: remove __alloc_size attribute from __kmalloc_track_caller") due to causing a kernal panic when using the clang compiler. Let's remove it again since we are hitting the same kernel panic. The Clang team is still investigating this issue. Refer to https://github.com/ClangBuiltLinux/linux/issues/1599 for more details. Bug: 220186325 Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I2ca64ab68e7c96032924f0ee2bc00a32db1c19f7
This commit is contained in:
parent
d38fd7839b
commit
77fac2d171
|
|
@ -654,7 +654,7 @@ static inline __alloc_size(1, 2) void *kcalloc(size_t n, size_t size, gfp_t flag
|
|||
}
|
||||
|
||||
void *__kmalloc_node_track_caller(size_t size, gfp_t flags, int node,
|
||||
unsigned long caller) __alloc_size(1);
|
||||
unsigned long caller);
|
||||
#define kmalloc_node_track_caller(size, flags, node) \
|
||||
__kmalloc_node_track_caller(size, flags, node, \
|
||||
_RET_IP_)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user