Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2661977rwj; Mon, 19 Dec 2022 07:23:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4E/VypZ9yxLtEeCRjC1KGkJEql6KV1hBJheIhL+1KeAxOulkLMyNAfmVD4hXNLtD/la7l/ X-Received: by 2002:a05:6a20:8c01:b0:ad:58d4:2a71 with SMTP id j1-20020a056a208c0100b000ad58d42a71mr41207474pzh.4.1671463427506; Mon, 19 Dec 2022 07:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671463427; cv=none; d=google.com; s=arc-20160816; b=FLyGUca46PfuAC7YasLS8Aa8M4cFgDqDMENuYH2gmOZxiGbXH8wQE2xqUWzqpr9Z5+ jndEwdgK3opE+f5ML8tOwuEo4/byEx8TVLNWOPhcatv7geAg7lTbsleDxQXbfs9c/fv0 zlltIq/pNI3nP0DsoQkyJkmWMyG1HQzGfQmv8YRtVUSmz4/sCoMMa7MUGyyu/MS3o9Um OH92ARBoLyYfRRv29jPbl1dQf1wE8JwoGikCcMY1EJXfYbniB3V9rB+1Aj2AKG23gSZu fMOzBxQrAVUSvanDZslToieaZPFEissSuOcvRda9zpHIkE7NocMMSUzgItx/12ayZ8Qf XRTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lF6zLSL3xN5QtbuDWpwls5qZgJO7KvkxQjJFjBbuqe8=; b=tnnbtzy//oFrR6ayQV9yDTOJt+wJ4GaUwt2kuCQQ9+6j8Ztk0zX4IQkwg7BUarJf+u FJ4j7KnkXydPjhNdu1rP3OVDbHGnmzr1j6w6t4XW7mZBgAHtkdEGnv4ZT0t8oZVDKQn0 2BXkrsrGK2avv1JhD7dxFlT03lBmInL9GZwoKieTXYLslOPSwUr6EqQZyxmm56g0aYT5 YpTC27oIYqnQC9ZGGVPjUMZHOVH+kinxB+yPlADpUn1CAmarf9QpgWRHIDHX5Vn3qa0b N9KOUkVzVl81u3jVTbzIeO78808+lWLpCH7MfFn5/EjtcFDNXUwLdB5qPJ0z1rpaaVWi u7ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=fSS3YZbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a68-20020a636647000000b00477cdcd6267si11261141pgc.697.2022.12.19.07.23.38; Mon, 19 Dec 2022 07:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=fSS3YZbz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbiLSPHl (ORCPT + 72 others); Mon, 19 Dec 2022 10:07:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbiLSPGt (ORCPT ); Mon, 19 Dec 2022 10:06:49 -0500 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78B5D72 for ; Mon, 19 Dec 2022 07:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1671462400; x=1702998400; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lF6zLSL3xN5QtbuDWpwls5qZgJO7KvkxQjJFjBbuqe8=; b=fSS3YZbzJjuTXaN7yt3ilvPJhY97NP6KMU9DTSjuywe0hk9gJy550dl3 OJr34fVEP4RZkVkw8+xITzst3jSNdTGr9VZzGXT/IpHvDZnBOLinBXOWC kfP3I8c+bCOSAL4p3RcrIpGNLbgtAJ7zkt1AhIIuGw2VSgNwiagLBWoPI YydFw74jgs2kYBYErCMImgSEVBulEySokXwt6lwMy2WTe9OT6E7bIeBus 1Bneg1O6YI9yJb5ZBiDVt42VDnvmhiLVB3o1BeLiWxDPBR5hUTvKkBb4A RLe0rS0LTe9erFh17Vs7jrIyJqoVRdObiPpAEWcrdL5FBBWsOhy16nFMv g==; From: Rickard Andersson To: , CC: , , Rickard x Andersson Subject: [PATCH] gcov: Add support for checksum field Date: Mon, 19 Dec 2022 16:06:21 +0100 Message-ID: <20221219150621.3310033-1-rickaran@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: se-mail07w.axis.com (10.20.40.13) To se-mail03w.axis.com (10.20.40.9) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rickard x Andersson In GCC version 12.1 a checksum field was added. Signed-off-by: Rickard x Andersson --- kernel/gcov/gcc_4_7.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c index c699feda21ac..04880d8fba25 100644 --- a/kernel/gcov/gcc_4_7.c +++ b/kernel/gcov/gcc_4_7.c @@ -85,6 +85,7 @@ struct gcov_fn_info { * @version: gcov version magic indicating the gcc version used for compilation * @next: list head for a singly-linked list * @stamp: uniquifying time stamp + * @checksum: unique object checksum * @filename: name of the associated gcov data file * @merge: merge functions (null for unused counter type) * @n_functions: number of instrumented functions @@ -97,6 +98,10 @@ struct gcov_info { unsigned int version; struct gcov_info *next; unsigned int stamp; + /* Since GCC 12.1 a checksum field is added. */ +#if (__GNUC__ >= 12) + unsigned int checksum; +#endif const char *filename; void (*merge[GCOV_COUNTERS])(gcov_type *, unsigned int); unsigned int n_functions; -- 2.30.2