Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3330303imu; Sun, 11 Nov 2018 12:31:20 -0800 (PST) X-Google-Smtp-Source: AJdET5d225yK0BCDrgMoYe/PmTpS90S7Xlpa35GNWqogwg5hJ7lArMLM6LNNZvZ1rC2UQHwpxnkm X-Received: by 2002:a62:2803:: with SMTP id o3-v6mr17862580pfo.57.1541968280044; Sun, 11 Nov 2018 12:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968280; cv=none; d=google.com; s=arc-20160816; b=oUQc2NKJsbxjLI0Q/T29XUaNWqWaAKc+eQh/2DnE6KQylp24XZQRBQI+PXZwKBOOAI LXO8YKEBRUpACiwfW4QJmumT7gx5Ueh/28eBrn5uHJeUZNHrCWDJYYPdHXy5AUZ80NLy xRVl24/+7toZ18D2qGRpp7gStFZ7HmPKMeC8NJ2s03V1O0E3nJn4gE/xmKmHJT1hRnUF 534zTWxaNi/CN44wFzIiwjHW6/t08zR3UqMFtCpAA58pCcr9xMzPeYf6ET6UgJmOWxTK DL8lbI7JKvgOwUjoQsMYj5CXZvd6bDHkKf56QdGUI9eSu/yVnY62Omjjcj/J5IbwSN0P LPog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=L8vVv7kR4E48rJo5b2ZKsTngnWBstZ27Q6apIad3vgI=; b=CYq4sh1malIE13sB+iHtsNm16v0m+/C92/UdpMluboQKI+/3HTaYBIYey2TOp1b0g/ R8TkxbRxPjxTBB57cJpdQJz8OnYTEGWKF7RpG5uCjXcKlMAgNRkKSS32nmf1dO4kfXn5 jENQTHzaZ/A4491HvskTE8baxzdCASc1kpeZoVIBEvofNkj4GlfqRoRKL3C9lZOv/+NG ibyM1YlCA4S/34xI3jWQSI2t00Q2QO85f+5jGtckAPwXHr/r/GjdTo2Q+T6/38dfA7HW 247oSupQoYr5Duy5nfhBnb0fe0Jn7zru4uAJbztsuXS9mokHMbehDX1USQRd1IgJXuXZ h1qQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si13808650pgg.120.2018.11.11.12.31.05; Sun, 11 Nov 2018 12:31:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730582AbeKLGS4 (ORCPT + 99 others); Mon, 12 Nov 2018 01:18:56 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:50554 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730474AbeKLFsW (ORCPT ); Mon, 12 Nov 2018 00:48:22 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsi-0000lF-55; Sun, 11 Nov 2018 19:58:52 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsa-0001rI-5D; Sun, 11 Nov 2018 19:58:44 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Arnd Bergmann" , "Linus Torvalds" , "Martin Liska" , "Peter Oberparleiter" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 338/366] gcov: support GCC 7.1 In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Martin Liska commit 05384213436ab690c46d9dfec706b80ef8d671ab upstream. Starting from GCC 7.1, __gcov_exit is a new symbol expected to be implemented in a profiling runtime. [akpm@linux-foundation.org: coding-style fixes] [mliska@suse.cz: v2] Link: http://lkml.kernel.org/r/e63a3c59-0149-c97e-4084-20ca8f146b26@suse.cz Link: http://lkml.kernel.org/r/8c4084fa-3885-29fe-5fc4-0d4ca199c785@suse.cz Signed-off-by: Martin Liska Acked-by: Peter Oberparleiter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Cc: Arnd Bergmann Signed-off-by: Ben Hutchings --- kernel/gcov/base.c | 6 ++++++ kernel/gcov/gcc_4_7.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) --- a/kernel/gcov/base.c +++ b/kernel/gcov/base.c @@ -97,6 +97,12 @@ void __gcov_merge_icall_topn(gcov_type * } EXPORT_SYMBOL(__gcov_merge_icall_topn); +void __gcov_exit(void) +{ + /* Unused. */ +} +EXPORT_SYMBOL(__gcov_exit); + /** * gcov_enable_events - enable event reporting through gcov_event() * --- a/kernel/gcov/gcc_4_7.c +++ b/kernel/gcov/gcc_4_7.c @@ -18,7 +18,9 @@ #include #include "gcov.h" -#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1) +#if (__GNUC__ >= 7) +#define GCOV_COUNTERS 9 +#elif (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1) #define GCOV_COUNTERS 10 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9 #define GCOV_COUNTERS 9