Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp75066lqo; Thu, 9 May 2024 13:05:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdyber3W2LBLg77V3ojoyx+C+GI0XVR5reuZd/jSDOADgTFU/EYIAJ4vyCRw19efLLkLSJL5tsgdc8bEdYj0e0RaN9lx6Rp0WY9FNZ4A== X-Google-Smtp-Source: AGHT+IG/EvpzJ0YCpiGTJ15DrJq2NfGFpk32SwfRjV3IXyYCS0IgYzryv5yrpRTICIydRxygDt5+ X-Received: by 2002:a05:620a:3cb:b0:792:a1c5:659f with SMTP id af79cd13be357-792c75abda4mr55914585a.32.1715285114774; Thu, 09 May 2024 13:05:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715285114; cv=pass; d=google.com; s=arc-20160816; b=ggFs4TX03A0CPqBE+1EfHZro6wlZPGad/Dz7yrEXhS0On4KVxI84I8gClTWBBke3J2 CDOEs7bNieCof53mn2hTmB63AQHt4hnD9QTwnFZze2FErsWzF5c/HG+ngcx5C8ZRqW1m uRVIGLgX4wjyf2QYDBGb1GMYdmWsW7bbdKagxYHFEUgwy090ASNn94NT0rtc7PKWLCRA KUIk5vlLCLgtBTX6E+g+mdtFwHSgFKxsSmiqn5soJ/98UwA0Mp+uwOa/8ZSWbHmubgq3 J8kp6u6EiDuHGjTw/aaGH0oZbXrd+eQRB9QdVcrZqiUPG6pmy2xd8ABsnydtCw+Pf3Uz EVsA== 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=5eQ6XGkPYgeissWdzFADaWCQSCh1US1lB39uUrru0zE=; fh=E2C3IpfCCXCyX4tamG8jMGXWVfLGSDBer0e9diy+sQs=; b=zppg97wGQOuZ8xSw6b4v4TGOfLApSLjheDXcvnpVOW4Hd3Dy9ScL2NQOGMyutbp+Lo 2Tm74fDAiOul7CQYPAEqfAQgU/D/JpHs7n4b2AH6KzOLCdtcFtMRbH4t+h5bv3vBtVWF xldxjM6aLTrr+jVhFgMKgHbYMNYLDhnTHRZw2VYnaOxuL88rkV00eVYJ705gsOrX9imO dcLWw8srX43/ungYWH4gGuddXG5DMGGCJk+WgTeDs+2Jm3E5PKPPUGCLS8QX+fFKz0Ug g22jXLaiEbEmG+YhojvYzXU2nDWG4jCWkBguswJw7mu5gwE1pZVHS3ArvPxMdPWaPX1O WeEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LeTTxI6A; 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-174857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d7a4si217119885a.700.2024.05.09.13.05.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:05:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LeTTxI6A; 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-174857-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174857-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 708B81C20E0A for ; Thu, 9 May 2024 20:05:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35AFB12D765; Thu, 9 May 2024 20:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LeTTxI6A" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 B0F6484A27 for ; Thu, 9 May 2024 20:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284883; cv=none; b=aLR096sNHp/uh52aBrq7GRpCPFI0QYm2sQrZKOh2pHSuekCFWaENijfTIXHye74sPe6wlWbL/bYdrGvXxG3hjWVhwi6JzVw3e3P97VgjJ5ZTCIDtKuBRClgZJiu8/hHv5h7jSmVPLzeM+lM6/Kfl7C67eMDcSGrMCjpX2UdF0Tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284883; c=relaxed/simple; bh=cdDEWfBHKO3HAJkkrjJc89EWN+jW+q7IeEi18D/icdk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=WB2hX8zJFrodj3IUuOLIyM3AAbtPbwG8YZ8ze4z2LeJ9t3C4kNu3mAdgGRR5+k2L6XnjvTSmJLcxuKdK4QgHQeTf42StmhQ+85t2V7yfmEJsF0rpPWDsHOMSGeomPof26BzBPZMie3L7/J+OPzqcwuiHnSVnEw0IEVkatqDscTs= 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=LeTTxI6A; arc=none smtp.client-ip=209.85.128.202 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-yw1-f202.google.com with SMTP id 00721157ae682-62079696c58so22259427b3.0 for ; Thu, 09 May 2024 13:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284881; x=1715889681; 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=5eQ6XGkPYgeissWdzFADaWCQSCh1US1lB39uUrru0zE=; b=LeTTxI6ANrrocxEThieg8eKgy9RaqISXcr5I1nQSy1dntfAWTB0elCVVX93pMaD+8X gQ8lTfhmZ/Oqj2560xLEgiI+3lVNYc6WzVOMr5hM1alTY96AFZv99DWtEyhbQK0PM7Ib TkG3GS2t1EqgY6P8CgxUWYOocAbWh65pkgTDDzJJTE38/IJn6UBSI3576Oc9LN+/2fIg szwGpnuZeVeh4v9fd+LiW3IpWRgOnc2zNTmPF2gJJXTr6FpwWPk3bSUiYBntTDlgrNnJ 0fWZHJdgMb/YINJXa5GxbCXitDXlIKryPL8EdRvL45nExc1emgLrkVA9nPLjltJsbjsY heBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284881; x=1715889681; 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=5eQ6XGkPYgeissWdzFADaWCQSCh1US1lB39uUrru0zE=; b=fMOmI9wV3xyh00RsoxEnt62BelTMOETUyUYybtNDoa7Lm8f48MwsLkJeY3z0Q1qy1G UcGNk+yAeGpSN8zDekKHGpfVJjGFFlhFvHh4ZgyA0/V1IxCGixGUi/g/qz526ZA+UOfn jY9T81dU3ye1OzvvgTLnS+ES1SW4/SQjex5E+iQdCs6QS2KD4MR8xaG9mdfZAluMTCdy j9BrRcaYxW3T7keFypf80ksWJrWYGKEiyRN45EIWiZamxEmGuKKMfbynvjVrkxIIovMg pfHBObF0S6NnyDdTfblusWnblq29Bhih7SButqM2BOUIWLOgCUZmpfw8jrxnioEMG97u 4wuw== X-Gm-Message-State: AOJu0Yz5P1hwwgfNfaM1J3LCZ/vd2YhZy65U9gie4df3//AE8cx6W1+l pSpWeRO6cJZ6nANPMQG4A+2U4ADu7pb9bwgSadzQTKaBgk84AKbLu7BfDb0U7BWGgEr0O4+spw+ qjA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a25:2e04:0:b0:deb:8bc5:eb5b with SMTP id 3f1490d57ef6-dee4f2de0bamr140844276.5.1715284880822; Thu, 09 May 2024 13:01:20 -0700 (PDT) Date: Thu, 9 May 2024 19:58:03 +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-12-edliaw@google.com> Subject: [PATCH v3 11/68] selftests/clone3: 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 , Andrew Morton , Muhammad Usama Anjum , 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, John Hubbard 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") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/clone3/clone3.c | 2 -- tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c | 2 -- tools/testing/selftests/clone3/clone3_clear_sighand.c | 2 -- tools/testing/selftests/clone3/clone3_selftests.h | 1 - tools/testing/selftests/clone3/clone3_set_tid.c | 2 -- 5 files changed, 9 deletions(-) diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index e61f07973ce5..ce2c149dab46 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* Based on Christian Brauner's clone3() example */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c index 31b56d625655..bb99ea20f7d5 100644 --- a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c +++ b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c @@ -7,8 +7,6 @@ */ /* capabilities related code based on selftests/bpf/test_verifier.c */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/clone3/clone3_clear_sighand.c b/tools/testing/selftests/clone3/clone3_clear_sighand.c index ce0426786828..8ee24da7aea8 100644 --- a/tools/testing/selftests/clone3/clone3_clear_sighand.c +++ b/tools/testing/selftests/clone3/clone3_clear_sighand.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/clone3/clone3_selftests.h b/tools/testing/selftests/clone3/clone3_selftests.h index 3d2663fe50ba..172e19d5515f 100644 --- a/tools/testing/selftests/clone3/clone3_selftests.h +++ b/tools/testing/selftests/clone3/clone3_selftests.h @@ -3,7 +3,6 @@ #ifndef _CLONE3_SELFTESTS_H #define _CLONE3_SELFTESTS_H -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/clone3/clone3_set_tid.c b/tools/testing/selftests/clone3/clone3_set_tid.c index bfb0da2b4fdd..a6df528341bb 100644 --- a/tools/testing/selftests/clone3/clone3_set_tid.c +++ b/tools/testing/selftests/clone3/clone3_set_tid.c @@ -5,8 +5,6 @@ * These tests are assuming to be running in the host's * PID namespace. */ - -#define _GNU_SOURCE #include #include #include -- 2.45.0.118.g7fe29c98d7-goog