Dear stable kernel maintainers, Please consider applying the following patch for 4.{4,9,14,19}-y kernel branches. 9c8e2f6d3d36 scripts/recordmcount.{c,pl}: support -ffunction-sections .text.* section names It is needed to fix a kernel boot issue with trunk clang compiler which now puts functions with __cold attribute to .text.unlikely section. Please feel free to check https://bugs.chromium.org/p/chromium/issues/detail?id=1184483 for details. 9c8e2f6d3d36 applies cleanly for 4.14 and 4.19. For 4.4 and 4.9, a slight changed diff for scripts/recordmcount.c is needed to apply the patch cleanly. The final changed lines are still the same. scripts/recordmcount.c diff for 4.4 and 4.9 kernel. --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -362,7 +362,7 @@ static uint32_t (*w2)(uint16_t); static int is_mcounted_section_name(char const *const txtname) { - return strcmp(".text", txtname) == 0 || + return strncmp(".text", txtname, 5) == 0 || strcmp(".ref.text", txtname) == 0 || strcmp(".sched.text", txtname) == 0 || strcmp(".spinlock.text", txtname) == 0 || Thanks, Manoj