Skip to content

gcov fixes for clang-11

Nick Desaulniers lkml stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review 1 of 2 applied
  2. v11 patch 9 repliesSuperseded

Patches in v2 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2gcov: fix clang-11+ supportkernel/gcov/clang.c+69 -02 repliesApplied
2/2gcov: clang: drop support for clang-10 and olderkernel/gcov/Kconfig kernel/gcov/clang.c+1 -852 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchFangrui SongNathan ChancellorPeter Oberparleiter
1/2R-b T-b R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] gcov fixes for clang-11

LLVM changed the expected function signatures for llvm_gcda_start_file() and llvm_gcda_emit_function() in the clang-11 release. Users of clang-11 or newer may have noticed their kernels failing to boot due to a panic when enabling CONFIG_GCOV_KERNEL=y +CONFIG_GCOV_PROFILE_ALL=y. Fix up the function signatures so calling these functions doesn't panic the kernel.

The first patch should allow us to backport it to stable; the second drops support for older toolchains.

Nick Desaulniers (2):
gcov: fix clang-11+ support
gcov: clang: drop support for clang-10 and older

 kernel/gcov/Kconfig |  1 +
 kernel/gcov/clang.c | 32 ++++++++------------------------
 2 files changed, 9 insertions(+), 24 deletions(-)

base-commit: f78d76e72a4671ea52d12752d92077788b4f5d50

Signature · 1 line
2.31.0.rc2.261.g7f71774620-goog