gcov: add support for checksum field
authorRickard x Andersson <rickaran@axis.com>
Tue, 20 Dec 2022 10:23:18 +0000 (11:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Dec 2022 22:31:52 +0000 (14:31 -0800)
commite96b95c2b7a63a454b6498e2df67aac14d046d13
tree5678afd70052add7c9bec7e32d7c44336f10f9d4
parentc5651b31f51584bd1199b3a552c8211a8523d6e1
gcov: add support for checksum field

In GCC version 12.1 a checksum field was added.

This patch fixes a kernel crash occurring during boot when using
gcov-kernel with GCC version 12.2.  The crash occurred on a system running
on i.MX6SX.

Link: https://lkml.kernel.org/r/20221220102318.3418501-1-rickaran@axis.com
Fixes: 977ef30a7d88 ("gcov: support GCC 12.1 and newer compilers")
Signed-off-by: Rickard x Andersson <rickaran@axis.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Tested-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Martin Liska <mliska@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/gcov/gcc_4_7.c