Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp77315lqo; Thu, 9 May 2024 13:09:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOKz6QEIUWPIEWheer23c7KglvG5Qr5gL4XMkfJZcf7sC/NLIdilpEvKABEBd7j0CJ2mFaS7C+e4YOBukFy5ycPqPpxdZ6M8oSn8eKfg== X-Google-Smtp-Source: AGHT+IHrevv3yzqpNRRAuH9vV1GitipfNOqRB54VOg5SpysVynQp/DFVNTXbyiLqGEBJ7jvOklkg X-Received: by 2002:a17:90a:e389:b0:2af:2be3:89c5 with SMTP id 98e67ed59e1d1-2b6cc76d2bamr501378a91.29.1715285364915; Thu, 09 May 2024 13:09:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715285364; cv=pass; d=google.com; s=arc-20160816; b=GgBg/q4516H/g0rC3qqY45JbZQYrJwW2jT05xd5RFg27bj2N1kVTuiqGysOD9hggPB N1tDJMRmfC3DD20b7zy+PoP8jsCTdrIR/CUnM1UphZnmcClKN/Yt1eqAJnXSIoy5Cpwh sD2Ok1jMM5a+uG5SF5y4rjfq4pPBFvN9D+cjEdgQwuNa4luozCr9bnx+3v8RnVUYbsG0 bKL7PxVXZGAkk4ECZ9a1iAS8fBXuPcWR7VroPfTGFtaHleco2KrIYOnxxQXF1tqc/OeM BBlBbyL22wpx52BvCeHVPCATvqqoPW6xqd6BdENLp2nB4vXjNe87ZUWuUzrNuOljGEJw IL5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; fh=gbRzI0Tzqi6rlbCax2Qxeua+U6bB7ggT9SUPvA5pj70=; b=asq0EvHbfWULS9OHM2Tt+muiBIQlmg4OS1JfCegSylFNCQxx0hJ8Ielux30VtvkKfJ l83T0z+86ahSNwjJjcQLgyHdWXWY4KDSz2fEiJAHlq2CXsi8ek0TBn0FADxuDbPnm2ow xDYpdMyVuh0mpkArGbd8JrrSdr0BGEGaHe0EDaGUqtNFkb/gdjhKYWN1xgf4aEZ49Egv bzUwVMn3HIwkq6OWrPmqxCPB/vD8oeg4QZPPaqujnJ+uhhn3RHTdNiaFq4h8FIHf/1pT TcRWUE7JQoC4JtSqwuEPbuDobchw14twPzmVPRRiHmDws2aY9gXGCHn194FnIk4o+QQc a48w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Wg/hIfvO"; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-174856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67116305csi2126590a91.86.2024.05.09.13.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Wg/hIfvO"; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-174856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E7112B23581 for ; Thu, 9 May 2024 20:04:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71AB212CDB5; Thu, 9 May 2024 20:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Wg/hIfvO" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6E9512C48F for ; Thu, 9 May 2024 20:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284880; cv=none; b=R6cEQcLHw1cuEdhqMF/Sal3h+PCQ0xfctSshDjq1rGywjaYiLgtuMNc+X68SEcC0ep1sk0Kog9FRZE4LGknLKvuW5DW6Ms7iGhDSFRbr2yKUSFxgb3rdZYXmGZu0mPJigqRjCQQ/Ax6GyneUJjOPr8eCYUHtuCgQ0qgJP42Lmaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284880; c=relaxed/simple; bh=I/StWvCKS3Dv4OeTH5aI03p7PaglUOESCGcwVHlL8fM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nsQeLgHKX0zOBUpFl0/RKz+qr5kyX9o4M+T7bWs8SL3MBeQ7SJRzhloApQuay0SjxT9VuBBaGWl+mUtQ2S591ag0d/IwF2KfNnSljOotzf9su77iejWSBZ9qTBvWm2aEY7Qs/rdFK/CW0OO/yJKrGZsEs0e2ciCyEl47aSPKo54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Wg/hIfvO; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcc0bcf9256so1998463276.3 for ; Thu, 09 May 2024 13:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284878; x=1715889678; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; b=Wg/hIfvO9aJb3kjfgcDdw/uFDpldCChWbHLUVctTZD9h/mmyxj8KgWAi5JpGpBZDDY i1ck6brxG1nMTAPRl/njLJLq5kDff08webY88wEkqsfaPt3j58JJ+yVlWWODuximd2it n2WBKLnyaCcNd3IrmUe01jT2g5nkRwY8iRbppKt0gwnmoWpqkDvn/d7vOeRW9CwuxS4d PDxrl6yasyaxKshx1WIxtOIJayDZiKZU/d2SILtziVJ/Id4cJH4gvsbJGmNuixTJXIgv rJr1jcm8lh2Fgxfo/tVz8OxClbX08lmluE0n5uV/kmVJr2ReRxQyeNUVDyFo2SL3Uf3u VM/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284878; x=1715889678; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Rvw1r0YiZ9FWMZEUFCynhvM36Z8DTNYRZhlWsu0lkBc=; b=rQH6sLwvTtb1KzHL0wEp2p/LBwGiO1/YC+C4HEkP0axOcGRxHGU5AAxUBJri7hFVk0 VugARvWp+fqVLQxa2TReRzGFBwnxuzHo4LLuZ1XiH7ev6RfVtaqGJ0bDTUFL2mr6TkJS Zkc+rZ1eR5HS7rTYv1yGHHdzCIrBUeqq3tVjnuqT1RA0MWXHZFef/PAKq69e1KcUlSX9 /ftBRRisKkDx7PeKcTseRlOjxc7Ky7HI5ZXncLQzjbB8dChlLa4+Y0Ia0vKe+qgOdLWU rzaRbTo0Ov3FXMnlRwHAez66yAK/nuInjSoxvBPmyzqQM0vr1MJ4DxLieJJ1VIgrZ2Mb Zx5A== X-Gm-Message-State: AOJu0Yw4CUK9dg1y03x+fvRSd20fdggv2+LvPTw9+TudTuds3R7vgrhk BPdAg/cWSS2bLf2dNjctenjCD5e35oUNGHl17CL7uiaeRGVgZZoMJxTPJk/R8vGS9AktANKXuEU X7w== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a25:8d03:0:b0:de5:1ea2:fc75 with SMTP id 3f1490d57ef6-dee4f2deb83mr57084276.7.1715284877769; Thu, 09 May 2024 13:01:17 -0700 (PDT) Date: Thu, 9 May 2024 19:58:02 +0000 In-Reply-To: <20240509200022.253089-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-11-edliaw@google.com> Subject: [PATCH v3 10/68] selftests/cgroup: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Tejun Heo , Zefan Li , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Yosry Ahmed , Nhat Pham , Chengming Zhou , Muhammad Usama Anjum , Andrew Morton , Edward Liaw Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Signed-off-by: Edward Liaw --- tools/testing/selftests/cgroup/cgroup_util.c | 3 --- tools/testing/selftests/cgroup/test_core.c | 2 -- tools/testing/selftests/cgroup/test_cpu.c | 2 -- tools/testing/selftests/cgroup/test_hugetlb_memcg.c | 2 -- tools/testing/selftests/cgroup/test_kmem.c | 2 -- tools/testing/selftests/cgroup/test_memcontrol.c | 2 -- tools/testing/selftests/cgroup/test_zswap.c | 2 -- 7 files changed, 15 deletions(-) diff --git a/tools/testing/selftests/cgroup/cgroup_util.c b/tools/testing/selftests/cgroup/cgroup_util.c index 432db923bced..ce16a50ecff8 100644 --- a/tools/testing/selftests/cgroup/cgroup_util.c +++ b/tools/testing/selftests/cgroup/cgroup_util.c @@ -1,7 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_core.c b/tools/testing/selftests/cgroup/test_core.c index a5672a91d273..de8baad46022 100644 --- a/tools/testing/selftests/cgroup/test_core.c +++ b/tools/testing/selftests/cgroup/test_core.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/cgroup/test_cpu.c b/tools/testing/selftests/cgroup/test_cpu.c index dad2ed82f3ef..5a4a314f6af7 100644 --- a/tools/testing/selftests/cgroup/test_cpu.c +++ b/tools/testing/selftests/cgroup/test_cpu.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/cgroup/test_hugetlb_memcg.c b/tools/testing/selftests/cgroup/test_hugetlb_memcg.c index 856f9508ea56..80d05d50a42d 100644 --- a/tools/testing/selftests/cgroup/test_hugetlb_memcg.c +++ b/tools/testing/selftests/cgroup/test_hugetlb_memcg.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_kmem.c b/tools/testing/selftests/cgroup/test_kmem.c index 96693d8772be..2e453ac50c0d 100644 --- a/tools/testing/selftests/cgroup/test_kmem.c +++ b/tools/testing/selftests/cgroup/test_kmem.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_memcontrol.c b/tools/testing/selftests/cgroup/test_memcontrol.c index 41ae8047b889..c871630d62a3 100644 --- a/tools/testing/selftests/cgroup/test_memcontrol.c +++ b/tools/testing/selftests/cgroup/test_memcontrol.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/cgroup/test_zswap.c b/tools/testing/selftests/cgroup/test_zswap.c index d13954256335..87512e91845e 100644 --- a/tools/testing/selftests/cgroup/test_zswap.c +++ b/tools/testing/selftests/cgroup/test_zswap.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include -- 2.45.0.118.g7fe29c98d7-goog