From patchwork Wed Feb 13 16:12:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10810299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5265922 for ; Wed, 13 Feb 2019 16:13:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D309B2DDBD for ; Wed, 13 Feb 2019 16:13:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D15992DD91; Wed, 13 Feb 2019 16:13:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 750902DEF0 for ; Wed, 13 Feb 2019 16:13:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404331AbfBMQNC (ORCPT ); Wed, 13 Feb 2019 11:13:02 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:34626 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404347AbfBMQNC (ORCPT ); Wed, 13 Feb 2019 11:13:02 -0500 Received: by mail-wm1-f68.google.com with SMTP id y185so2235098wmd.1 for ; Wed, 13 Feb 2019 08:13:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mKs1zarKSC8o1Uy90Brrsr+wBlmMCuceYalzEjoBYt4=; b=ekd0KgMdkSGnloLUwlCjuEgz9SuuNbBvv32P5ZccaNDFO+2LPvPICqAzcUXhpSQmg/ INxbu6wisr39E0i87F8O5EsiMzqRiw8dc5eK2Nyk6fmbQzmkaWO8WZA1s2tAT8gFzyW3 4mmYAN5j8kzjfiPueAqCRRs4HUoDqBnTECKKBCvs7HPIKSbYj4/ZFZ1mkvEhel2SOwsu d1qPsW68gFnbcNcL1/C3sOypllPbjTLydUuwB4428mMiLteAWpppQsvT+yPlrm7PJem3 EqxODgEvtaXyu5SgL8pTEIMAt8/RRnU2N7MfcqYHUao99HcAhpAblDSNJFpux0Kw8fFC v6zA== X-Gm-Message-State: AHQUAuYhUCHwTjYI5OwquNRI8WjLcMXftMwOYxldd5Tod7hEXQL9klET 2R1ZF4ZlUefO17cfCeseg/0= X-Google-Smtp-Source: AHgI3Ia+qybbPRmPMhWan0yTdYD3DGCR35T81ZfW2bli5SWhaym88JYQPsqGdO9dZm+Eusxs3jRuBw== X-Received: by 2002:a1c:c008:: with SMTP id q8mr818983wmf.99.1550074380616; Wed, 13 Feb 2019 08:13:00 -0800 (PST) Received: from localhost.localdomain ([95.87.211.218]) by smtp.gmail.com with ESMTPSA id h9sm3111631wrv.11.2019.02.13.08.12.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 08:13:00 -0800 (PST) From: Yordan Karadzhov To: rostedt@goodmis.org Cc: linux-trace-devel@vger.kernel.org, Yordan Karadzhov Subject: [PATCH 6/8] kernel-shark: Fix the compile warnings about _GNU_SOURCE being redefined Date: Wed, 13 Feb 2019 18:12:14 +0200 Message-Id: <20190213161216.14438-7-ykaradzhov@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213161216.14438-1-ykaradzhov@vmware.com> References: <20190213161216.14438-1-ykaradzhov@vmware.com> Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes wornings from: kernel-shark/src/libkshark-configio.c and kernel-shark/src/libkshark-plugin.c Signed-off-by: Yordan Karadzhov --- kernel-shark/src/libkshark-configio.c | 4 ++++ kernel-shark/src/libkshark-plugin.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/kernel-shark/src/libkshark-configio.c b/kernel-shark/src/libkshark-configio.c index d7b8a69..ab88864 100644 --- a/kernel-shark/src/libkshark-configio.c +++ b/kernel-shark/src/libkshark-configio.c @@ -10,8 +10,12 @@ */ // C +#ifndef _GNU_SOURCE /** Use GNU C Library. */ #define _GNU_SOURCE + +#endif + #include #include diff --git a/kernel-shark/src/libkshark-plugin.c b/kernel-shark/src/libkshark-plugin.c index 10e4647..4b21392 100644 --- a/kernel-shark/src/libkshark-plugin.c +++ b/kernel-shark/src/libkshark-plugin.c @@ -10,7 +10,12 @@ */ // C +#ifndef _GNU_SOURCE +/** Use GNU C Library. */ #define _GNU_SOURCE + +#endif + #include #include #include