Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp188574lqo; Thu, 9 May 2024 17:32:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8PL7CgJZIiqKrL0LfElmNIA7Zi1B9IUBiXADZ83HcA/7dbaW0epmH/N1bECSGJa1xG+D9Vb09f6AaBuuUOIG1W81oQ1o23kH7m6tZhw== X-Google-Smtp-Source: AGHT+IFgf9gYVekMh3VZ/EJ/Aul2nPiRoaHS4B4H+tAx0vqVIYoGgnjcgdPYwKpqE4TQNHxKYRNG X-Received: by 2002:a05:6512:1314:b0:51f:601f:cbae with SMTP id 2adb3069b0e04-5220ff73602mr633090e87.56.1715301147708; Thu, 09 May 2024 17:32:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715301147; cv=pass; d=google.com; s=arc-20160816; b=TEzr96RlKmtaav+an3U1C60zZqsfn9+SayRxAui1btpmXmkqpsRKNHOQ6VCRUa2rtf 6390rt8KUvGOqxthL5RoYcc7cs0oYb8caO8UVDLFl6EEx7j3RNDmmysRc/kuzF0UuQjr BPNLTD2fHA6+yHp7XTCnGhhj7ltNV5magixec9/TZZYd6jnAeyXYVF36ywtWR7Ksuco7 seDjcJ7PeAR9aFM6YKhD6Jf/ucJYFRfNKkpnZ3BI49PrLx7GWg7YCsb1tS45LlmmVGP2 h2jfxijzzWW+K3erU4bM37EvBnsfKi30bSxjBz5Y3hz8SHU9HM+DFfnevnHOSgGrYTb1 ALUw== 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=1D5J95pTto7bxbDE1cccaXNIpSHnuQdMjPAvgEtW+8E=; fh=3QunbbxwS2krlZ4s01UVMEREr2oOXajYkZa0uMxoA+Q=; b=wCAxYQgdQRZoEEQkeZMtDjyC29W+o5YHfn1YgD+oDkW4U/9AyMt4gV9Gh5dTNBRsps ZdFL0r7xktAmMWkpcx98Mw2RxkhYtsKrEh4WW73WSMS1ue3MDL5e2SOIr6sCkO3J4IeW dKBAxHykvsGnaOBkYEV6cjQ6irTcpxfQGxLrZ9Jb07g5Zsg0JI7bPSAfTuIftB4pB4uP mcp8avAKCyRKtr/fP8equcZeh8qQpZebHzoLVVt6WfAnVcCRvmo9ePxt7nDsr+0e/rK8 F/vDfDt/aAwQd1hlyMcMpC6MjM2oir955oCXA0FGs0rnwqsiwwP68EhamENAoIO5FnKV ltew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="ZI/Fccnw"; 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-175137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175137-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-5733c2d5f14si1246449a12.229.2024.05.09.17.32.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175137-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="ZI/Fccnw"; 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-175137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175137-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 ECD631F26A84 for ; Fri, 10 May 2024 00:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA351139D16; Fri, 10 May 2024 00:11:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZI/Fccnw" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 5BE711386D9 for ; Fri, 10 May 2024 00:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299863; cv=none; b=OIgPNx14iLp266q1nGSWcxz/SLfYMJqEszEsl7y8REZDx9WfXrRnQQAraoYdzFUcWMs0hO4300lACzHKS9GC935zvED733tvs4FSiqvdItYQLAgTNi/mND/sluDmVkaXQySvqbuKGfgZ5cr9N9cD4/us6JUnqUjgzkz5sfsh/uQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299863; c=relaxed/simple; bh=L2xiJs0pvkHTyYEWb/dHuPHUb0aoyNpUC9tm+GW7Yvw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=fmohBqq+jFKogyodedWpTNLjKaKaofFzKcvkiRv5AMHUOQPZ+I2ctUKLBzaTMcwOC4HFPqtFhx3e5R2tT3prLrZUh3mnbubwzz9EupGMPmL6KkMHZyvL2EB8uisSJteOW0lgt1DlqVeTUug4qGx68/Yx88TWUc9B2iu91U4fCh4= 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=ZI/Fccnw; arc=none smtp.client-ip=209.85.128.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-yw1-f201.google.com with SMTP id 00721157ae682-62035d9ecc4so24616147b3.1 for ; Thu, 09 May 2024 17:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299860; x=1715904660; 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=1D5J95pTto7bxbDE1cccaXNIpSHnuQdMjPAvgEtW+8E=; b=ZI/FccnwydftpCTsWBICZzni4XlznE8txSZti84AyoJxhIecc0z0YGcPKdGW9T/Bpl v3ZUGwVxpqACjDO/HeIIaO9bjIJfHT5bhLLnwh+aZZNiHWcm9nIsa5MRQUXzhzC6Jo1A PbNHYTHe7Zopr2w/USQX4txe2oB/XUTly36WbGaWZL3NKB4rahhd1t927SRfT05Lq2Ae uFTYJE7f6PAO2Bpt672AO8L7rbqqUjoQtKAde7FGHGS51593cnG7/SnNVOOI+5UCu0dG JVTf0orCWc8z8ajGbafb24kk38e5wSkqzGlbDmD/sq8oXyhbC0mECAI3Zxzc/gh1DDBe fHPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299860; x=1715904660; 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=1D5J95pTto7bxbDE1cccaXNIpSHnuQdMjPAvgEtW+8E=; b=jFr7PIPOsivhVoA+GXGRw8d7bQkfEW9ynfzg29dDT/69N90dgXJtiWg5wvSO8h9/19 hPE0QqESP4mSQN32sdmZ4BWzLuO13w/9iU0I52M0b+LBJgu34ZoCVsHUHC5MfWM5SeE1 0aKBSOclSat67uZN7EYVuoscHr0cl0mRVNvuS6AqlUC1eGlGjChgT/v0Q718hVanEhqg 2+77TFoZYK0Dv89V6UfqqMNLc+mHrgr3BYCGx/XLh44Lj7WtdVSop+wDWXysfAYRuLpe /sSnjH0Ic7+2DinM7s15zog/zK5+Io4DsgBzn/H1ZAWwJEJxo5EVpj4T6Xawu3sMb4Ju yffw== X-Gm-Message-State: AOJu0YzkpeIjcUABma51M1w9LzCPM3h+bAGkuJ/NWbPevsP7d2qmMR6v 5bEn1YpKxMh1OxBshD1ywFOcMZ6gYU0JbnfNL7gaAhww1Md0yqI7DykOZ3O2vPJYtJ6xK23N0gw bMg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:284:b0:61b:e8ce:18a1 with SMTP id 00721157ae682-622b016af8cmr2822137b3.10.1715299860502; Thu, 09 May 2024 17:11:00 -0700 (PDT) Date: Fri, 10 May 2024 00:06:57 +0000 In-Reply-To: <20240510000842.410729-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: <20240510000842.410729-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510000842.410729-41-edliaw@google.com> Subject: [PATCH v4 40/66] 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 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 Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. 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