]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
gcov: Disable gcov build with GCC 10
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 4 Sep 2020 15:58:08 +0000 (18:58 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:46:45 +0000 (14:46 +0100)
commitc89bb81fb15434335a3a76bcb0b97864d0ef40db
tree7f9a354d3cb6aa5a803f0d06d5a80160ea7fe2f9
parent41e9ce2a643ed77c49998682bab96d5955215791
gcov: Disable gcov build with GCC 10

BugLink: https://bugs.launchpad.net/bugs/1896824
[ Upstream commit cfc905f158eaa099d6258031614d11869e7ef71c ]

GCOV built with GCC 10 doesn't initialize n_function variable.  This
produces different kernel panics as was seen by Colin in Ubuntu and me
in FC 32.

As a workaround, let's disable GCOV build for broken GCC 10 version.

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891288
Link: https://lore.kernel.org/lkml/20200827133932.3338519-1-leon@kernel.org
Link: https://lore.kernel.org/lkml/CAHk-=whbijeSdSvx-Xcr0DPMj0BiwhJ+uiNnDSVZcr_h_kg7UA@mail.gmail.com/
Cc: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
kernel/gcov/Kconfig