Skip to content

Commit 7af0814

Browse files
committed
Revert "gcov: clang: fix clang-11+ build"
This reverts commit 04c53de. Nathan Chancellor points out that it should not have been merged into mainline by itself. It was a fix for "gcov: use kvmalloc()", which is still in -mm/-next. Merging it alone has broken the build. Link: https://github.com/ClangBuiltLinux/continuous-integration2/runs/2384465683?check_suite_focus=true Reported-by: Nathan Chancellor <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent bf05bf1 commit 7af0814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/gcov/clang.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn)
369369
INIT_LIST_HEAD(&fn_dup->head);
370370

371371
cv_size = fn->num_counters * sizeof(fn->counters[0]);
372-
fn_dup->counters = kvmalloc(cv_size, GFP_KERNEL);
372+
fn_dup->counters = vmalloc(cv_size);
373373
if (!fn_dup->counters) {
374374
kfree(fn_dup);
375375
return NULL;

0 commit comments

Comments
 (0)