Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3875861pxb; Tue, 17 Nov 2020 06:00:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrAc8U/NUELsahpCzwgCJpZ3tmD2Ig1+dgDzG/R6E7MHtUZOAsvRPBcds3/kqghSZmJvXp X-Received: by 2002:a05:6402:1c8e:: with SMTP id cy14mr21617861edb.39.1605621658808; Tue, 17 Nov 2020 06:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621658; cv=none; d=google.com; s=arc-20160816; b=yjPdzs7//co86kzVCad9iBGfYQxwU5lX0HoGf2Hl48cwjtCmGV2RULEPcsIDRv/+T3 EFRew99ChaEqin+u63qjQBOcoqS3Gy41XSKTtMGVpAucdsN1TZ0ewe7OcHZyO2hNkU3F 9NCVxsC7uFBKwO/CmuxCByxyOw7g6FgTUwa47+HJfwuxs3YbQ/MpvI+dlSZ4RbXTfRBW cTfRtnoE7MlXFSdiqjAs4tSiIknPRet0WmCYUsPp3EmNi2FtBL4gqdss53etgqnU+zrO tlzDaxI8g0Hz3AO29ArkXM/qs34u54a6iZsaGaScxHEW39hYwmKdwUHIQpThtRMqUeai d3vA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=45Zk9aqoHJHJd69YgL4G0tFt2PdR3I9tp+qQ/0SZzXs=; b=YSo4Ik9heC5YBEfWidgC9nTVSFrLffu0ONd3Ez0F3dyv9PR0MPcuBfOuQDfS+OLhSU qqZl8sV+i3HVXCZjMuBIG3qvD+tSDrAcSeL+Zfn202YwlG5Cd5gUZLgQ7/ayLm28F/1T ngviLHjrETgAUaOXPsStt7+WYD28H+/M8WbWSOkFCzC/AlK4QOiNOey2kssW6/JERmr6 z30MP9dHHHG9PkJE3vBHBa3q113Np3DpvKE3GBjlExbLsps6/se68bujXhQe68vbGj3J GMvsDGCUqm/k1xk9ICdRGa2YIHhfQlV0kY3t6LUWLSXXwWGm/4YCkVMnxrfe8PtRdl6k Ntzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X0kRbkSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec19si13915006ejb.669.2020.11.17.06.00.33; Tue, 17 Nov 2020 06:00:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X0kRbkSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730876AbgKQN6h (ORCPT + 99 others); Tue, 17 Nov 2020 08:58:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:54186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730785AbgKQNUn (ORCPT ); Tue, 17 Nov 2020 08:20:43 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32EB9241A5; Tue, 17 Nov 2020 13:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619242; bh=PcodkDpP7V/CMTki9gtGulfrSYLM8ULRbc0zlvUMfq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X0kRbkSEHIz16Pp9GbkxiVwg1oqg+0qxUFU+bdVfYMTbNL129+Nr+CVa0fr9yZgRQ Yppc5Z9u3lUCgfjPc8+J/sfGUhCKxq9V6UEeM1orBB4V2Wvan2e+WkqptZhr9b5xII S0JAmg8yB5wQH/1DYhBkFcqeTjuRvt5TN8bXbtBQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tommi Rantala , Shuah Khan , Sasha Levin Subject: [PATCH 4.19 046/101] selftests: proc: fix warning: _GNU_SOURCE redefined Date: Tue, 17 Nov 2020 14:05:13 +0100 Message-Id: <20201117122115.341648973@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tommi Rantala [ Upstream commit f3ae6c6e8a3ea49076d826c64e63ea78fbf9db43 ] Makefile already contains -D_GNU_SOURCE, so we can remove it from the *.c files. Signed-off-by: Tommi Rantala Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/proc/proc-loadavg-001.c | 1 - tools/testing/selftests/proc/proc-self-syscall.c | 1 - tools/testing/selftests/proc/proc-uptime-002.c | 1 - 3 files changed, 3 deletions(-) diff --git a/tools/testing/selftests/proc/proc-loadavg-001.c b/tools/testing/selftests/proc/proc-loadavg-001.c index fcff7047000da..8edaafc2b92fd 100644 --- a/tools/testing/selftests/proc/proc-loadavg-001.c +++ b/tools/testing/selftests/proc/proc-loadavg-001.c @@ -14,7 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* Test that /proc/loadavg correctly reports last pid in pid namespace. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/proc/proc-self-syscall.c b/tools/testing/selftests/proc/proc-self-syscall.c index 5ab5f4810e43a..7b9018fad092a 100644 --- a/tools/testing/selftests/proc/proc-self-syscall.c +++ b/tools/testing/selftests/proc/proc-self-syscall.c @@ -13,7 +13,6 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/proc/proc-uptime-002.c b/tools/testing/selftests/proc/proc-uptime-002.c index 30e2b78490898..e7ceabed7f51f 100644 --- a/tools/testing/selftests/proc/proc-uptime-002.c +++ b/tools/testing/selftests/proc/proc-uptime-002.c @@ -15,7 +15,6 @@ */ // Test that values in /proc/uptime increment monotonically // while shifting across CPUs. -#define _GNU_SOURCE #undef NDEBUG #include #include -- 2.27.0