Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3794178ybl; Mon, 13 Jan 2020 02:46:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwtSAZNDm1Y13KcV9I+VMOSXUROTxAooier7G9fo/QQgunIjXEphilYnrO5C9oDxkE1FpGA X-Received: by 2002:a9d:478:: with SMTP id 111mr12264879otc.359.1578912378978; Mon, 13 Jan 2020 02:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578912378; cv=none; d=google.com; s=arc-20160816; b=KGXt2nDdbBzuhT20zKaoJ2adR/xsMlui6VFCb14bOsHImeIIrcinrnnu83xEzd65Z9 AryESJE4Ib3mvCodRqKMc1d3kUI1CrZMz9TayFvGdzbt+yPYSs0V8XkJSh6EaaFL7IX9 wqgG/0Xyzk/+LpwbbEgowL0n/5i5kgqlDRWXH+J+gkQcVFiT3N5DnFGWW623xNGdUYJW 0Z6it/j8MlUCGnQ0N1XXOw3SrpRVYsHb0LOb1JWtgJiNJu0cZPXqo1m+wUYu7xTEFYmO /zFzw8vScLSbIB1k+Op2HBOmA0LdffNPTATKRU97KzRAkb6Utx7EYDrK62D5Fe4OCmMV gsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/XIjgJ6h1xFmg+C0R6iAuyG3e8iBRtbckus87MdPGqo=; b=jTDSKYKH1QCqB9tCqRFFEpJEqZmNr64+mgJ7F7dwDSiQg3aINRreXjwDsh1bbHSZDl fAIZborlK6FRLcrPlaAbTaV5cYQtoOdzmQ+d2d5mYOV2bwUocA5RiOqD8X/9ZWhXWRgg fHAV2ZU2WLwVcN49j6nFIl1ur5MIYoySRsTKy4RDJWOWj1aHGDNqu16r8j/lV2rlfE3i QgbWRYt30D/n45uYtIi9ZRIcRLgpbpNF2vRTqRU52aCzh9Go2SSh44IkgxPRjSM72hhw J2laXBH6Fak/a0hSh3/PXggYnOKwQ6KHZNQSQ3BVrbkNShAnJCIJ0r5K4wR5FMbzgaHo 4gOA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si5714211oij.160.2020.01.13.02.46.07; Mon, 13 Jan 2020 02:46:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728796AbgAMKoM convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Jan 2020 05:44:12 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:54398 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728787AbgAMKoJ (ORCPT ); Mon, 13 Jan 2020 05:44:09 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-388-RqTpWpiSO0Gysgeznoudqw-1; Mon, 13 Jan 2020 05:44:05 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 939448D5E93; Mon, 13 Jan 2020 10:44:03 +0000 (UTC) Received: from krava.redhat.com (unknown [10.43.17.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C65E5C21B; Mon, 13 Jan 2020 10:44:01 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Ravi Bangoria , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Jelle van der Waa Subject: [PATCH 2/2] perf/ui/gtk: Fix gtk2 build Date: Mon, 13 Jan 2020 11:43:58 +0100 Message-Id: <20200113104358.123511-2-jolsa@kernel.org> In-Reply-To: <20200113104358.123511-1-jolsa@kernel.org> References: <20200113104358.123511-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: RqTpWpiSO0Gysgeznoudqw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ravi Bangoria reported issue when detecting gtk2 on Fedora 31, where some types got deprecated: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: error: ‘GTypeDebugFlags’ is deprecated [-Werror=deprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); Fixing this for perf by allowing the compile to pass with deprecated symbols via -Wno-deprecated-declarations. Reported-by: Ravi Bangoria Tested-by: Ravi Bangoria Link: https://lkml.kernel.org/n/tip-kg8fqsa0bgq3suc9ubonh4xu@git.kernel.org Signed-off-by: Jiri Olsa --- tools/build/feature/Makefile | 2 +- tools/perf/ui/gtk/Build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index f30a89046aa3..7ac0d8088565 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -197,7 +197,7 @@ $(OUTPUT)test-libcrypto.bin: $(BUILD) -lcrypto $(OUTPUT)test-gtk2.bin: - $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) + $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) -Wno-deprecated-declarations $(OUTPUT)test-gtk2-infobar.bin: $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) diff --git a/tools/perf/ui/gtk/Build b/tools/perf/ui/gtk/Build index 9b5d5cbb7af7..eef708c502f4 100644 --- a/tools/perf/ui/gtk/Build +++ b/tools/perf/ui/gtk/Build @@ -1,4 +1,4 @@ -CFLAGS_gtk += -fPIC $(GTK_CFLAGS) +CFLAGS_gtk += -fPIC $(GTK_CFLAGS) -Wno-deprecated-declarations gtk-y += browser.o gtk-y += hists.o -- 2.24.1