Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp49502lqp; Tue, 21 May 2024 18:04:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM6WXznhqtDZxzhNpGGaXD4mGruRi/PKUGQXixLrakDvzTSmhmNUqYvmopG/mpf9Rp2gy126gl0tOBvjLBn8RsVuci1+ZiODCNnCheRA== X-Google-Smtp-Source: AGHT+IE+cgzavHZ/N2ruw/fk3+8diV0z/mSHmT+XOm3wJs8BtFf1gBeGnINbvCIEu7JOyJ5BTUyj X-Received: by 2002:a2e:9a96:0:b0:2e7:18dd:356e with SMTP id 38308e7fff4ca-2e949501a89mr2017791fa.1.1716339865088; Tue, 21 May 2024 18:04:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716339864; cv=pass; d=google.com; s=arc-20160816; b=OOVZD+6GuegYIve3MHq7ItyzMZi/pRkk0wfYkJvixkKBXsdEyekc2RBTbIUAgSFEhL H4acmMi9shRySEJCMjjh36Q2loFVIUwRsmaKbmQ055q8C8W7+NDTZGwr/33x67idUH38 hw2GmczJgv7uQRLsKj+Hz8j4QcluRQ9galdx5mQ9pP3QEw3ma0Ewx7rxwjsiP8YAvumV 6LjdTZYzwOWABxaO8GQRcM2BQ9qIC5DfIdNcX1TboyGiQTI0tIKNJt3VSXh8pIiMdNVv TK0GJCraYuVvlO29wQV4/6gOHGd7ukzBs+Y8I2PjflX0YAqrs3HXTjfeFjH66faBml/5 WXFA== 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=Zfexs9UjGmBXqFDc3RmOYfuuIPIjhIku4381mEPxmek=; fh=ilS3pUFyDrcCUIYz3PycK4DSHlkhJ1fOALY00/bRZAk=; b=ivlsQLVoRUUjMnOqBMde79xAaa2wGB1WqUtLGyCQT2AZMs8f770bPjAiU+pbZ8AXFp GCMEqyFQCRC9gWWqZ8JRVkxYE8YXBwlfZdhymdGvobabTeSKzyHJQ5Jxw+BKvfDF/Q3H uUJQSN1QEs63thM+0jfRJcNg2zw9gxjc7t0ztoHKgQz4J2iqBx6BgU/8GSQa2wbYnZWx GoJxU0f3AMOeAFnBFsEcqkHuy0DtIXtRvxE1YuemlhzFr8f4WuU6YumM0WW0V2R9Yy31 qLoZVQvC40VaAjj2qrBH70iZIBbY24uivDEXgHPNyEDhMyNKIYlV6EZBqm9quv37+i6P S/LQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MC5nN8Yk; 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-185585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3780a0si15109495a12.642.2024.05.21.18.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:04:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MC5nN8Yk; 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-185585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185585-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DEDAA1F23621 for ; Wed, 22 May 2024 01:04:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0DF14C84; Wed, 22 May 2024 01:00:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MC5nN8Yk" Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.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 BBED8762EB for ; Wed, 22 May 2024 01:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339606; cv=none; b=biaDGSP6iofoD+TeWejlfFOAxbNrEoprQbrnJo1cNQVnKlcnkpXKvavjBY6B/HecUyawJgCDjlBBn3nps9/vxrZAfLNGsb6C6Vnxwvv89UReKkXxJqeiI+R5Xs2bc3dah9STzLB5+LIpPAX9Y1hLqwwSGsqCO2QIz42o7g24oXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339606; c=relaxed/simple; bh=48j0kBVIuwpXnzwPdE9EQKf+xvifHDss5b365P6opso=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=q+JI3nPi61mcO83FZ8C+oGQwzu8WQBtjtaASYKkqB5JoV27QQNfPYQbqU4YKDOk3qFz0ieh5OOojj4WuvCdHeH/1tyULznG3pG/PboX6f6hJaXbdvKkYp6pGK7ZtvpT6vx/NvtGknZJ1fKChpUOf00Anh09q2AnjsrbbrJM5kdM= 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=MC5nN8Yk; arc=none smtp.client-ip=209.85.210.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-pf1-f201.google.com with SMTP id d2e1a72fcca58-6f45484830fso295214b3a.0 for ; Tue, 21 May 2024 18:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339603; x=1716944403; 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=Zfexs9UjGmBXqFDc3RmOYfuuIPIjhIku4381mEPxmek=; b=MC5nN8Yk+V1tBtvhXTPyW8RnlD26+YaQu/KDz6C/esic2/eGXIhIoPvgFLTUXs6r/D wabIolgZnXM/5X6tVAsW+oVikpliZf5whLUOnwUM5bsSlUu7PZTYQEOPrr6QDYAateDi nRvGKGUuGrx6BoYGQNwM/bRg+0sA6W/FksH7iYVSn8Dmt5A7A4ZcqXU1HW/oX2V1SacC eUC+OQ4ncDzJpN5N+6hMaiS62s+t0xnasyWi2rSxgNJ5qSeVxQ7AqIApVrES/3V3Q+qg iMKQ4DCCGkYiRbz1LYeQ4AS5nwTJCtLCoMA8A9e9+Yv6JgO9FnwQ02/16O/OsmMqXQvG xp8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339603; x=1716944403; 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=Zfexs9UjGmBXqFDc3RmOYfuuIPIjhIku4381mEPxmek=; b=YfYcaa0dCXeSuxxP6Z9Vx5vc1Fo3CmP8OycpCDmGl53oLPl5IFJu8g60gATXCo5vrR vfB5t3EV2vk+6n21ycrNWu2juVuoFDXuTiptq/uzBN7177LXDs2t0POUzbkawlpa2KJl Q+Xsh+nU4cZf9eXm2EWVA0awcSK8KOjNJ8oh5iQ67W9v3KD8bVh4Lnbj4Jps8jWlbScZ QFAKcCk4X2zPTPbRHffN/IOPyyPKsWhFNs5qHkGtz1aaMETDfL6VYS/jVxxGiABjeZat uEe9DyV7J9q89atsNXuBe5OsrV0MKUXebEuXB+8ZEfGxtRtpn6W2Wx4CwiyW4rNxQPQN 5Sig== X-Gm-Message-State: AOJu0YwWeLgvGYtPgPjvdHDyaan/fOOnhxxtp9m7raSuYjbMS1hPDMgV Jnkc0eUQFpg5wBFQy0vmVTZcWh4TAT62fnnohchxJ6sDCZ7CWQ5Lr1PUaHjkr9ti7dXjImMJWmS 5lA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:8b87:b0:6ea:df4b:86d0 with SMTP id d2e1a72fcca58-6f69fc55137mr43971b3a.2.1716339603118; Tue, 21 May 2024 18:00:03 -0700 (PDT) Date: Wed, 22 May 2024 00:56:56 +0000 In-Reply-To: <20240522005913.3540131-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: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-11-edliaw@google.com> Subject: [PATCH v5 10/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 Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, John Hubbard , Muhammad Usama Anjum Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. 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.1.288.g0e0cd299f1-goog