Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp770821ybc; Sat, 16 Nov 2019 08:23:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzhCTUwiINcspzApEyqvyrkNfIehDtDRTswNYjQ8vUm+f3mI/9INFXea5o6+TYLCjTBvRpM X-Received: by 2002:a17:906:7750:: with SMTP id o16mr11103157ejn.224.1573921424172; Sat, 16 Nov 2019 08:23:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921424; cv=none; d=google.com; s=arc-20160816; b=qsrKVZFVcGvJDI0ZAaT7hN7L8e0nZui2p38vNkXX+c2mkBqI7fY96pInl/HLGUaeCp S6dvC1wKCf0uiK1FElse6OLmcmHSqO6m7PWDdodfrGdcjXqW+PH1d1wNjyLRxkrk/H7G /zCu2VKZ65K9HAgu3El8ebLL2GDJwXDkO+SNN0MtU0Pp0wEBAdGXkwtshKGGwqLuwEEu 0UoWqxiCUFle8IZaBFTEFqt0sa60cyCIJ08IE4n1EhcGa2uJRSHpFvPa5+yCgf0i4MBn i5KX2kpcL7soGxPzLBpK5a2CnRMUXxvJty9ktsulezC3a/sUIxJhpYDudajJOHPjLUbC CfRA== 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 :dkim-signature; bh=GbUC5sh5pO6AEQPY9o2sOduM2cBJTC3Y53cQpH0qZ54=; b=gkeDq3w8e/7CPkdyTNMEelo0RvsOXLdMgibOzOmNIBgKuj6G5EDUaEUUs3n/fnyJpT AVjQxd6TCuupDJpkefO+4N+rr4orjKjZY36lZ79XCxj3l10TypXO5D3498eFFIMzGgwM sovG70uG/woN+7eZY9XSHXIgtqi2awUxdtVlF9KyV/vVteXUPUKym6PCJrHupCI7lIBq SCYDG+4v/ndB8zTgRIMZNfVcZvJSapke2tzDU2NL2LfJjr/RrqpRu15QBOZAgnIcomgR lU5RnhNzwQXUPk9u6i4oI5KBsr1IeUtjLuyFOxYL3zr5SSyHr3/rRHUR7D5DpzOKtsHc kUrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wnMe1cMn; 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=pass (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 ot13si8131174ejb.199.2019.11.16.08.23.19; Sat, 16 Nov 2019 08:23:44 -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; dkim=pass header.i=@kernel.org header.s=default header.b=wnMe1cMn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbfKPPno (ORCPT + 99 others); Sat, 16 Nov 2019 10:43:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:47858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbfKPPnn (ORCPT ); Sat, 16 Nov 2019 10:43:43 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D86720729; Sat, 16 Nov 2019 15:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919022; bh=S3hOXPcM+w0k/7va/5THvsyB8gokQ9VS9+1IN4YV+Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wnMe1cMnvrWVIZatEDP+2TRffjD6G7UtdNN93bFc4YzyJQoOOOmvmr0hTmgu5iuor i0bGkn84BcyWp4NKABrKCI88vSJooecDyotQ0XFensS7b11/3Sk0o7dPCoEv7ZD0+I x6Zbx1bMaODo8pkYHoia68byGS7qr3JOjoOBXGHo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Peng Hao , Shuah Khan , Sasha Levin , linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 120/237] selftests: fix warning: "_GNU_SOURCE" redefined Date: Sat, 16 Nov 2019 10:39:15 -0500 Message-Id: <20191116154113.7417-120-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Hao [ Upstream commit 0387662d1b6c5ad2950d8e94d5e380af3f15c05c ] Makefile contains -D_GNU_SOURCE. remove define "_GNU_SOURCE" in c files. Signed-off-by: Peng Hao Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/proc/fd-001-lookup.c | 2 +- tools/testing/selftests/proc/fd-003-kthread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/proc/fd-001-lookup.c b/tools/testing/selftests/proc/fd-001-lookup.c index a2010dfb21104..60d7948e7124f 100644 --- a/tools/testing/selftests/proc/fd-001-lookup.c +++ b/tools/testing/selftests/proc/fd-001-lookup.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ // Test /proc/*/fd lookup. -#define _GNU_SOURCE + #undef NDEBUG #include #include diff --git a/tools/testing/selftests/proc/fd-003-kthread.c b/tools/testing/selftests/proc/fd-003-kthread.c index 1d659d55368c2..dc591f97b63d4 100644 --- a/tools/testing/selftests/proc/fd-003-kthread.c +++ b/tools/testing/selftests/proc/fd-003-kthread.c @@ -14,7 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ // Test that /proc/$KERNEL_THREAD/fd/ is empty. -#define _GNU_SOURCE + #undef NDEBUG #include #include -- 2.20.1