Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5991087ybc; Wed, 27 Nov 2019 13:02:13 -0800 (PST) X-Google-Smtp-Source: APXvYqx9omQd2CFCChhO0VrkXjrwj8Nu5Fwc2+1s0SZ1NB9wt01rU3QLcu76//LpnWk+iEENphUz X-Received: by 2002:aa7:ca54:: with SMTP id j20mr4823538edt.179.1574888533257; Wed, 27 Nov 2019 13:02:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888533; cv=none; d=google.com; s=arc-20160816; b=S+bKKiec0OtrWOQYFzCDMxbCwmwkbBOHT6mVYbmRPH8LjIyVSdlDe2sox01LFrT/EI RrsHKCcw3gagodL3x7N6/tr1dCo4I4gABY6Rk9nCDA7HcV65NeZiyS6bZhxrFmaKeIcz iw6+Uo1TA/4pR0AMcnPbLyfp7daNTS1Rtv8gjbUzg27cT+cfeCMk9otUv/qZUyY5YMio Hramw4jTeBBiezu9itnD/kMAGHT2aDBtSiImv1OGtgGbWFgoPusgAbtG3JepHcBhbyC3 O3VDHgZp7Suwlj8OTAkx2nJRcjFKAgD2BJUy10haF6DHFL5DklbGmi6d00Tzr9C5WIr7 THCw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GbUC5sh5pO6AEQPY9o2sOduM2cBJTC3Y53cQpH0qZ54=; b=agHTPPz2huu0Og5lNaSxHd1jB2ogfFOeC8EQjVqpeZJjb0L8b5WktIZ1ayJ3PecbWa SBRr9jFMpu21rTadt0HqPNlkQrFFHC+zofuJ56QSPf+m+TT7AuRNR0W6OViOTOaoghi8 /hSldmozUJxnHP6u3YAw2O3xKUcIr+LFvqznmSauw3JEytbkWiltkMKwuPw9Hg+gi9FJ lDA9LtU/zcG4mW5eIIaZ9ZW4nl1BsWzbfe24x4lQ2qBt3C00CJVNeI+B1Foprp/FHuhW YdL4geAKE9EsTIa/2rfnww9rYv21gpWEaajRJLjhb7ajbqbHW1nDNdA3IT3QTVknbdoD NiUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LcqK2YBP; 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 c26si11889145edc.416.2019.11.27.13.01.48; Wed, 27 Nov 2019 13:02:13 -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=LcqK2YBP; 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 S1731639AbfK0VAz (ORCPT + 99 others); Wed, 27 Nov 2019 16:00:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:52888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731630AbfK0VAy (ORCPT ); Wed, 27 Nov 2019 16:00:54 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 23B512158A; Wed, 27 Nov 2019 21:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888453; bh=S3hOXPcM+w0k/7va/5THvsyB8gokQ9VS9+1IN4YV+Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LcqK2YBPVKzGCjWHDM0kUy3NX8d0gunyniSGoZqyD9FzOlkVUlJkPh3en+/hxCla8 a17ax2+bebDvHskzd3mzQA+GnNbr8WJ1gi3f1hs80w99XqdzNBFmvJ6WWDrkjac7HL k/GI4p1P6l3QWcUMs5yyf/hUu2dmy2FRpmzJfYn8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peng Hao , "Shuah Khan (Samsung OSG)" , Sasha Levin Subject: [PATCH 4.19 138/306] selftests: fix warning: "_GNU_SOURCE" redefined Date: Wed, 27 Nov 2019 21:29:48 +0100 Message-Id: <20191127203125.117312715@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.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 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