Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "gcov: clang: fix clang-11+ build"

This reverts commit 04c53de57cb6435738961dace8b1b71d3ecd3c39.

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 <nathan@kernel.org>
Cc: Johannes Berg <johannes.berg@intel.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -1
+1 -1
kernel/gcov/clang.c
··· 369 369 INIT_LIST_HEAD(&fn_dup->head); 370 370 371 371 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); 373 373 if (!fn_dup->counters) { 374 374 kfree(fn_dup); 375 375 return NULL;