From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D12CD2737FC; Fri, 21 Nov 2025 13:23:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763731395; cv=none; b=AJa8Geihfl7uBRrDqIqqMAbKYIlO/mUIfMQyEHuKTmKImJJy6nQxbH3zum5EZ3SlDNdlf5Sev1wcyQ1sqMpPgzoVEIE+wHxfmYFvrj1yL8fatk7NF5VcEmRZ8W0JL/Ag3sCk0CbP6RXBRvomYoJNZBque5dkSCa+UVroEEJM5Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763731395; c=relaxed/simple; bh=3u/89tq7o8cQpYqZxw6uiCJDN1eW30lxv6FQFrjXCN8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vi5SupUyki7vK32C5XnnoLtZ/cH2qFpCPb2JSSheY53VBfE8yieJoUvo62tB1laj44a2JXafqThMOl3iIjw8H12/6Ibccq9/+ZT56w5BM9xK9K9vxiJnb4xSBTYeSrSt+9aIFd+LCagKTP6HwZdgWiPRc+kLYCDtLqX55+oBUf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ehhdBlsp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ehhdBlsp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 561DDC4CEF1; Fri, 21 Nov 2025 13:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763731395; bh=3u/89tq7o8cQpYqZxw6uiCJDN1eW30lxv6FQFrjXCN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ehhdBlsppVDy4EyFH18kAR4RohTXANDlx98CWZ8t0zcz91rZhZxIKy6PnUlLFCkeG 7eRzg8Wp9nruzQD4DRKfhvT46FZNf01Blz92z7TCJFPnDQGsEU7+8VBylUyq6/R93+ YSaYwQKAp55b7Lb9cUkiVm2BOZdxDvEZETmi8EuA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Peter Oberparleiter , Matthieu Baerts , Andrew Morton Subject: [PATCH 6.17 161/247] gcov: add support for GCC 15 Date: Fri, 21 Nov 2025 14:11:48 +0100 Message-ID: <20251121130200.500677678@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130154.587656062@linuxfoundation.org> References: <20251121130154.587656062@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Oberparleiter commit ec4d11fc4b2dd4a2fa8c9d801ee9753b74623554 upstream. Using gcov on kernels compiled with GCC 15 results in truncated 16-byte long .gcda files with no usable data. To fix this, update GCOV_COUNTERS to match the value defined by GCC 15. Tested with GCC 14.3.0 and GCC 15.2.0. Link: https://lkml.kernel.org/r/20251028115125.1319410-1-oberpar@linux.ibm.com Signed-off-by: Peter Oberparleiter Reported-by: Matthieu Baerts Closes: https://github.com/linux-test-project/lcov/issues/445 Tested-by: Matthieu Baerts Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- kernel/gcov/gcc_4_7.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/kernel/gcov/gcc_4_7.c +++ b/kernel/gcov/gcc_4_7.c @@ -18,7 +18,9 @@ #include #include "gcov.h" -#if (__GNUC__ >= 14) +#if (__GNUC__ >= 15) +#define GCOV_COUNTERS 10 +#elif (__GNUC__ >= 14) #define GCOV_COUNTERS 9 #elif (__GNUC__ >= 10) #define GCOV_COUNTERS 8