Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp80785lqo; Thu, 9 May 2024 13:16:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFjXuX3RCjGM5q2HyISPTFOOKSXfA6yDwiLXwkXVdbYU/X3mXp08/IelUCW6mYVcKu5Yb59ULLQzJYfnlmG+R5zvrekw2PzeLHmhpSNw== X-Google-Smtp-Source: AGHT+IHInz7GPJplE8Tlp9PYvmGgZ7+b15D6V4J5m6VMYIodl0Je1IY0fqF24ysN7vb3xbhWtG2k X-Received: by 2002:a05:620a:e88:b0:790:c7f6:595f with SMTP id af79cd13be357-792c7574885mr53735185a.12.1715285776913; Thu, 09 May 2024 13:16:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715285776; cv=pass; d=google.com; s=arc-20160816; b=eXoReOZWf/CKd2/KZq7Ng9Brpie7bgLrUwcfyFe2glo5KZOBoAY0StpXC5pSHFXU3d ViNM0t3VJK8lbz2ATyAtEiFhMdJnBucf4WwamLxf2NbcbUnJboC5wyUOnqA135dpK9RZ 8YG9lqYVylEs9aZjE/LnIIGfZByjVMHScZDamhOOxN9qTSULJF3RyTa7CPSzTmTEbhEY rQ5B8iJXFvCaQjRiQTnA6aqtqTWaxlcd6S9oS4xSayEvq4pxoXv7v03WIOnAFBQV74y5 YnQqexTJBRc3APtVpATU3uxzQxDTY+u9E0SEWw7lMrpq8ku6MWZA9RTeigldMDChvNHB ybdg== 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=OdNEpQ1G1MITOV+6oevaHyGJgkLn2dsRDWPkXuUTfgQ=; fh=Vg6AZ/XlVcVU/NPu9s4ouwJ+URzCpALfRgv7nS4ACws=; b=t9n3YDUS5UwNbWIN05VrQSCL6Ie/WnJJxQbXC8j2K3sMxVBOKC/ZOucy9Iw0FiGYHd IP1zUmDH/IQpo9Vb1ZPakKNLK1h8lmK+HsE2hWMFexPyR3LaLjq40BQfkoWifH2wVZRb pr3vgROuhN1bz4QqPl5Vn55SF7Qqckyzk+euGt0uEZqBd8hHEjfV6PIC544Pcom/giLk rFE2u0RAZR6B62hfbFq0jDTPYyluIjjyt9Urg5s5AFIXtaC28qkEuMAN5y0TK3ZTqHl9 7v/6XVzWIarhWxQsv/ItaLmiKH6Y2DT4OUs93UxwqXdRbP8pRJhNCTpQI/CrhA/s2GSk vBPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="zZ3G/l5Z"; 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-174889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174889-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-792bf30abe4si200492385a.333.2024.05.09.13.16.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174889-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="zZ3G/l5Z"; 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-174889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174889-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 A088C1C21C58 for ; Thu, 9 May 2024 20:16:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E95513DDAC; Thu, 9 May 2024 20:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="zZ3G/l5Z" Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 6CB1C13DDC9 for ; Thu, 9 May 2024 20:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284974; cv=none; b=XDfwv/BXrwEGkCE48ThQVBH08t0m2cVFOMj/qWrxggh1K5MY0v3zLJ4UkFK0qoP/88dxFV7X2/WSamVsupwQNSlWPkHlgtgB3Q68YldO5JWRy7kGQh5Q20Kz+tVTDLihPqMAzDH7p1M8P6qSMhsFI+9j+OKzn7wUrVanr6Wt8Ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284974; c=relaxed/simple; bh=Gk9O9KznRK2sS7j8Er9nsL5OsozcdlefoHZ3QPUhY2g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KOtTlb6Ma/9vmc1UKNN/ODZKOVdY4rS8CjrD0ILfq2thri4Gd1Ke2XJr1RNcejTWGbIeYhwuLj8t+lCkHkR0/f9KSYnlpb1PnXiAW8T9y6hi8tNJ7JVX6T+iQGlJqxJ7zTZZ7bs+mLIXi5sJwztinEIe0xtckPM4KgJh6/T8o04= 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=zZ3G/l5Z; arc=none smtp.client-ip=209.85.210.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-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f452eb2108so1077241b3a.0 for ; Thu, 09 May 2024 13:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284971; x=1715889771; 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=OdNEpQ1G1MITOV+6oevaHyGJgkLn2dsRDWPkXuUTfgQ=; b=zZ3G/l5Z/Iw4gnqIee/8BQWzwZ2jPeX3yAFl+xlJd+hatszWGv4lmJ6Ja9BtrGXIyp XrplJvhIy2anfan8137Vq1r0WvHbKh9HR6+MtaaSmuZeEnY86JXTsjFZyR74GqRXzrx7 2JtTkDhLZZBXAEp+jbpyrKL/1pFf8rdAF62bIQvccyqz5PMiuiktn2QWyduxKqOWdOco 6Sq9Ioiek0ZxMc3nAabdy+Zjh48QlaPe49lrlqgu+OoiHo8v9mZX5W102oxebAOglJla dKb7GLw66S5l8Z/8ZYBMplo8SrzWYIA5jeQDdPvhhnckewVTEphtNXSqA28a4ljvp1/e 06Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284971; x=1715889771; 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=OdNEpQ1G1MITOV+6oevaHyGJgkLn2dsRDWPkXuUTfgQ=; b=NPCA/JrAGoYJXx5AudZeYwhK0iC4TNgIVhtAdkXqFunND/SzFc3bKKgsRxlicD7qNq S1Kwua3jrhngjA/9spKTQtKAJ2Fa0NfbYV4I6FF6bESljjUrPKqNLvW8V6jlqNmC+Bol W5HjYdAWi8jv1CRhzDVB2Aee85aEAFcuYTYHC9gqa83jRQ7FeGqqA+4vDFiECMExN4GR 4OGQc79tvFQ5OoBZ2hzwSeLJH3JQ96h/5KNRsVKL4U/vHxY2bsuMoqjwgk0VOLg2gZFg B0dAGJ4jWfiWMjRHKcdHQkEoS7FXZ/z+mHfio/pGmRAGUNTeKLQCJLXOqloNQoySzjqy 5dyQ== X-Gm-Message-State: AOJu0Yzfd9jZoGCTBiZGLp7LM7Lkna9dyrzZkOa2d2X5eATvy3CYZSP9 u/97LmCo6yzfnSSz4s6Al7QbSZtIr56t45vBJ9VXOc3vK9oKX72s6T7SyiPb9a8JCcshMqd8gfO Ocg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:3c83:b0:6ec:f400:95a7 with SMTP id d2e1a72fcca58-6f4df44d0e5mr44259b3a.3.1715284970758; Thu, 09 May 2024 13:02:50 -0700 (PDT) Date: Thu, 9 May 2024 19:58:34 +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-43-edliaw@google.com> Subject: [PATCH v3 42/68] selftests/perf_events: 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 , Edward Liaw , Muhammad Usama Anjum 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 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/perf_events/remove_on_exec.c | 2 -- tools/testing/selftests/perf_events/sigtrap_threads.c | 2 -- tools/testing/selftests/perf_events/watermark_signal.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/tools/testing/selftests/perf_events/remove_on_exec.c b/tools/testing/selftests/perf_events/remove_on_exec.c index 5814611a1dc7..ef4d923f4759 100644 --- a/tools/testing/selftests/perf_events/remove_on_exec.c +++ b/tools/testing/selftests/perf_events/remove_on_exec.c @@ -5,8 +5,6 @@ * Copyright (C) 2021, Google LLC. */ -#define _GNU_SOURCE - /* We need the latest siginfo from the kernel repo. */ #include #include diff --git a/tools/testing/selftests/perf_events/sigtrap_threads.c b/tools/testing/selftests/perf_events/sigtrap_threads.c index d1d8483ac628..14d1a3c8cb5c 100644 --- a/tools/testing/selftests/perf_events/sigtrap_threads.c +++ b/tools/testing/selftests/perf_events/sigtrap_threads.c @@ -5,8 +5,6 @@ * Copyright (C) 2021, Google LLC. */ -#define _GNU_SOURCE - /* We need the latest siginfo from the kernel repo. */ #include #include diff --git a/tools/testing/selftests/perf_events/watermark_signal.c b/tools/testing/selftests/perf_events/watermark_signal.c index 49dc1e831174..19557bd16e9e 100644 --- a/tools/testing/selftests/perf_events/watermark_signal.c +++ b/tools/testing/selftests/perf_events/watermark_signal.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE - #include #include #include -- 2.45.0.118.g7fe29c98d7-goog