Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp87275lqo; Thu, 9 May 2024 13:30:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWm1nE+7LXn5oyKkitdV2xFgTZKwYzlA9Y4SMZ44wBRn+gA5PTiKhDAOr1nYzMTBzoy5JOOC37X3n5ltM8R1W/zDOzv8aQbBC/L+c6tLw== X-Google-Smtp-Source: AGHT+IFl1xVgt9kcdmF5DtqTwboy2sEJp4BK2mzF6o8n7vinnygfR15xxMbEBy93KOeL7FhiW2Lp X-Received: by 2002:a17:90a:ce16:b0:2b6:9039:20ba with SMTP id 98e67ed59e1d1-2b6cc3403b3mr601360a91.8.1715286622057; Thu, 09 May 2024 13:30:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715286622; cv=pass; d=google.com; s=arc-20160816; b=bvUAiLh8/IsUHRg+5/9MyOIGavV3jQ8418NZC2DJWwnwMjXsI8Cu2htRPNDOSP/F/4 vRR75f95m4hjQIHIlB38QrTo3ydC9/ud3OacxREP4WNMnkCvzlKZNllyjnxNfHQUhdky b6dN0DBqPhU4jtmWGeBFgLrI3c5O5cYRqyGGt6ZNvUv1jWBVyrOGo5RHzA29w9g1rdiF l2Pp/Z2suuI6j15lN0pcT4Z/vcTAqexuQaspzYQ1W7S9TNICyY7qA+dt9uXpk3of5lVo JQHatfOpieGy3JO0kbOEXIcaOxKb80C9E2zlpmueSsBO9PU68AnkQT79vjo00KzoqzU2 Ehsw== 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=g3CKdOXgASsJuwLQx7CbN/Z0GEpdiG1ZeUqLcW5lHOw=; fh=E2C3IpfCCXCyX4tamG8jMGXWVfLGSDBer0e9diy+sQs=; b=L5DaAPEdUKmJLDT0YeMc3zEkgyVSqdwX8EM7Z6qJ2hJDHKzMBH98Ek/RVA1q8NaVAn eQSU6TGL0oLhgE6p+yKCz5BlVCh8BotEbr7JECMJOYgb+hR6YN4ZcP+0DkHekgqH8O9q sLmLbKZoqkMLo+5HiDczzibag5xhJ8Nbqtr0e6OmmxfhALoIeSw6eKbOylNuaoip34Fs lFqEnDfXldWro1scRilUvCzZtRRQCZxbk7C1B/y3QoaQvLClVSNwfXjAr3ztBD9eNyrM bcPNJ/EQHCImIRjHHwZF/1I2riW7bze5b5oHvA3NsjXd64dUItm5tKhYnfJTO2GYcXuE R1wQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=liKTRHj5; 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-174891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f570acsi2083135a91.64.2024.05.09.13.30.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:30:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=liKTRHj5; 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-174891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174891-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A7FE228CEBF for ; Thu, 9 May 2024 20:16:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8307B13EFEC; Thu, 9 May 2024 20:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="liKTRHj5" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 625A413E88A for ; Thu, 9 May 2024 20:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284979; cv=none; b=R8cTzhzpdzq+9WY9WD8cO7ElW3JW1QkDWGdKPYcKXkpmEWIbcG7WM0/91ojZe702ZeiVaAyZx4lTVFXcxCQhNVZu07s5bRpJdOt78vekYW8+y+LCtDQf4g0Q4/NbNLD/IrGuNwND0yNfrPA26kEEDdsCD+aYasOMzhSbdpf+6wY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284979; c=relaxed/simple; bh=qtfxhXik4RCIYvSYFE6HURw6GVoBtbaX7K5kkbVFZRo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=M4hpxeA/ZccU3vAMM6WkiTXxSrBmp1zZ6qq/FTyz8pR6YbI/zVUSa9JPXvBasLNbQt34grfa2in6oqirNTrI2AUCjSolO1xbvc5+Lsu3V4TXBVHRyfcBSJt0uz1KK6esLhy4ekQ9YR2Zv0+EKl0DqbjIiUDtgMb7EppiYkgf9sw= 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=liKTRHj5; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-de8b6847956so3121263276.1 for ; Thu, 09 May 2024 13:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284976; x=1715889776; 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=g3CKdOXgASsJuwLQx7CbN/Z0GEpdiG1ZeUqLcW5lHOw=; b=liKTRHj5QIl2eeitf4x/5bWfCNGxhp8r8dnYaOIPmWI1MNDMzuNagiD05RIxM6waum snRusMQkRA2NUbZll+v/jKkRjAX7fQMhhcDbMIEi6cUIF/W4grtN/tlFeborPYaEzhxT dB0bUCjoQP88oWjnvM3vgL5Fwcfdv+qfxi+Rp2r++/EUThWJMIDzrgX/96OqgfDPlhZQ jXRQefFujsw3ptDjuCGpSroy56/2xURucU10FJ/QAFh3/M9S7iduGnMS2p5kUZiVCxtB RQJny/Lvudn6/k1t7b8JF3fGsNsH/yGPHA6WiU+z/ZkZuecScwDFUaTAMS/ONf8UPASO VuSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284976; x=1715889776; 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=g3CKdOXgASsJuwLQx7CbN/Z0GEpdiG1ZeUqLcW5lHOw=; b=uVdXEt3mA3rhgdg61JX77WoRq7svZifQ0qdGqbkLq8lh68Ge9FW6cFmbRJ+AFjiAZq 4G0fxPaUxfwYDlbQt2DhqFfJ9TlJ2vI0vUU+xhZ0wTut2uYlywJGZbKXOR1J0zkWtyTs YIaZ6SSGvI77Ystdy9DTmfSAT5ATCpdc+oqXKKh+AjJAc2Er3nzqKzozatjRo0rAdVRg Y1rP12JRRqxvVAxv/pHscN7tZGkADvKDusHphUFiWbkm68j9GD0dss/jDcXxE0RziwEQ E5lY32rzC01R09PJ+sxHW6himBCKwe6uosad/SUvUfi0TeYgauZcGRirR9nW6b9n5T98 EGMQ== X-Gm-Message-State: AOJu0YwuaN3+TxaCkJWkO2vURzAOOwCo/UUdqIEWBrnw8FGdszV1CzSy CCzYd2u95dW8Q4RkuLaWe3V7wlEbZ9xbpxD8BOJxUxZApRm7oibq+0Q4+57ssuf2r74o74weYyc SCw== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a25:4c81:0:b0:de6:569:325c with SMTP id 3f1490d57ef6-debcfca9a3emr851927276.4.1715284976566; Thu, 09 May 2024 13:02:56 -0700 (PDT) Date: Thu, 9 May 2024 19:58:36 +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-45-edliaw@google.com> Subject: [PATCH v3 44/68] selftests/pidfd: 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/pidfd/pidfd.h | 1 - tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_getfd_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_open_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_poll_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_setns_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_test.c | 2 -- tools/testing/selftests/pidfd/pidfd_wait.c | 2 -- 8 files changed, 15 deletions(-) diff --git a/tools/testing/selftests/pidfd/pidfd.h b/tools/testing/selftests/pidfd/pidfd.h index 88d6830ee004..e33177b1aa41 100644 --- a/tools/testing/selftests/pidfd/pidfd.h +++ b/tools/testing/selftests/pidfd/pidfd.h @@ -3,7 +3,6 @@ #ifndef __PIDFD_H #define __PIDFD_H -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c index f062a986e382..84135d75ece7 100644 --- a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c +++ b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_getfd_test.c b/tools/testing/selftests/pidfd/pidfd_getfd_test.c index cd51d547b751..b6a0e9b3d2f5 100644 --- a/tools/testing/selftests/pidfd/pidfd_getfd_test.c +++ b/tools/testing/selftests/pidfd/pidfd_getfd_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_open_test.c b/tools/testing/selftests/pidfd/pidfd_open_test.c index c62564c264b1..f6735eca1dab 100644 --- a/tools/testing/selftests/pidfd/pidfd_open_test.c +++ b/tools/testing/selftests/pidfd/pidfd_open_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_poll_test.c b/tools/testing/selftests/pidfd/pidfd_poll_test.c index 55d74a50358f..83af8489c88e 100644 --- a/tools/testing/selftests/pidfd/pidfd_poll_test.c +++ b/tools/testing/selftests/pidfd/pidfd_poll_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_setns_test.c b/tools/testing/selftests/pidfd/pidfd_setns_test.c index 47746b0c6acd..518051f0c3a1 100644 --- a/tools/testing/selftests/pidfd/pidfd_setns_test.c +++ b/tools/testing/selftests/pidfd/pidfd_setns_test.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_test.c b/tools/testing/selftests/pidfd/pidfd_test.c index 9faa686f90e4..53cce08a2202 100644 --- a/tools/testing/selftests/pidfd/pidfd_test.c +++ b/tools/testing/selftests/pidfd/pidfd_test.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/pidfd/pidfd_wait.c b/tools/testing/selftests/pidfd/pidfd_wait.c index 0dcb8365ddc3..54beba0983f1 100644 --- a/tools/testing/selftests/pidfd/pidfd_wait.c +++ b/tools/testing/selftests/pidfd/pidfd_wait.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #include #include #include -- 2.45.0.118.g7fe29c98d7-goog