Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp187425lqo; Thu, 9 May 2024 17:29:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVetz+z3RwbG2aYNebNrZpgHg6Ae8qtxqall08NKVg5J1FlQdnm7mA9aB1vLvu8wJFClE7QuMQWjFI3g6gJ9bzsqXj1LoLYO7k39op+Rw== X-Google-Smtp-Source: AGHT+IHajVRFfmXXxL4dCJMMEuZN90PXSHJNotLbOq8ccjmVDWO7DZfcRJHuHEaIzlDDKW1VGhG9 X-Received: by 2002:a05:6402:430c:b0:572:afb6:3b7c with SMTP id 4fb4d7f45d1cf-573322c59ecmr4344697a12.0.1715300981262; Thu, 09 May 2024 17:29:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715300981; cv=pass; d=google.com; s=arc-20160816; b=caLZq5iZiQTJV6T94mfWSbV7wKDzde/ollIb0hqxqb1NEAsCq6HcEQWLpeQiDQ0J8l 9v/hA2P/OvvPpVhb0uC97GewzbQndijFH3RML6xoZY98sP0CHJGfyTcEWTdnPWdOCtM4 guENZMawK6rVdtgPqSGB/feSD30TNS9Q4RcJiwvjeUrRsxN1oZGtdfDHpYDJF9fHjCDz J8ZwJWTWuQ5KOwPUYIi+Q+RMIkVxhJ+GlO5cYHjMPBlmJYY1DtWwi1TuqEvzX8psAVG6 e4nHR9Bl/F2CzRtj3m6CEAIBtRHNAFnODOs/wkxR8QOQkapRymEvXQS+spMalBXypvtl I9mA== 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=BLIfPVA39L5GI7BSivGjVMs24Ei0WVbUZT0FyKIU17I=; fh=AnSNosXP/izepxD6Fa9rH6RKtOqcJD7gVmjSR+xzPIA=; b=YSza7mIp+9T60v/rDzn3ZZcPcSAxRLG32HTlKZrLaSVhJdxxpwIxgzrMLoHfh8riHE RVlR+jnBtufWFTjeHZLje98tZ7l+/zU5V+n0xYhr0LWshRHvF1fdo77706Rzxebg2Qxi AcsPiYTHhURMv1MkqQ1T16jVcn3ji1gB/ugjDRE2YmlWHAq0pUhXu7a5Vxg5EzS9/L66 WxQTb7ha4wNvCUKTLMjdy6yXPvEpH8wAremlxLnUxgRl+yTslt+masf1SR2+W95J/PnG d3/e+nTkx7htC2Mbx8kFQVwdBGXnG4tU0DqkmGo5bRSvJ8nYOKR66m9Zjcg7aLFAaT2I OVqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VXWsVMiQ; 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-175149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175149-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-5733beac6b6si1299541a12.31.2024.05.09.17.29.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175149-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=VXWsVMiQ; 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-175149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175149-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 86EEB1F2155B for ; Fri, 10 May 2024 00:29:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3BB713D52F; Fri, 10 May 2024 00:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VXWsVMiQ" Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 C063813D2AF for ; Fri, 10 May 2024 00:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299898; cv=none; b=mTXRekkNWU+dBkQ0hI2v0yisGDafSWknz5lss9oSXHq610KHfXLDVzMFrdqCf3vDXZqFrjCBg7K6vJjc1jpXiKlAGhRpY9rs9ip+gWNU4vRK41EiR4ZsmbLWQb5wNn/6ZRQU/XG4tNEk5BJVH4cAxQsVVDRuYFFUSAAznPQvh6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299898; c=relaxed/simple; bh=6p8G22YTy6ZtsOf462zez70QpBb44q4tILI9m4e2cqY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=BK6CTAzGE/w10n7twxToM3hcqJfdjkq5FONE5Ph5/iw65iXTJGQcDcLgehj6C2d9QqdWGYFCYBHTiFd5OjQYEUm3vAV5jdvZ6ZAcQ88gkix640k77+ZEWlyN7kXWwyaj0S6ExUASjlU3+syGR4CfG+M/PDp4tEFyw/XgrZRCYMc= 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=VXWsVMiQ; arc=none smtp.client-ip=209.85.214.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-pl1-f202.google.com with SMTP id d9443c01a7336-1ec4c65a091so11225485ad.3 for ; Thu, 09 May 2024 17:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299896; x=1715904696; 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=BLIfPVA39L5GI7BSivGjVMs24Ei0WVbUZT0FyKIU17I=; b=VXWsVMiQa9wO5DfJFjejH1tWvIekYjyfjIJDkDVb4jjgptmSYXwhYFd5z/4eTuj5t6 NwkL3PlLQpU+PFmnuTgW7FjPwkIr/RNUS3AibsEW7OV0WdrFOfoCDNmtnI8H7IwEQdJs haVCORWVjy1vojqfjYgE1ldORtLPAPDgOOpdZ4EEJxDixz6lByGAKLuuJYbt79EQVxUj p/VFbYk1jFZug7N5WKOM3dtwCjfsFtxZMU4/7Nq/a4UK4nJb5gI17U7Mw8PleFgmUV4Q YkyJsAKnBrKfCXEW/Ym7yhD25yB8HiNVDNwRu4RhJ4nU/7xXWZzBVAvgTsaUYcIM9Ire 10+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299896; x=1715904696; 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=BLIfPVA39L5GI7BSivGjVMs24Ei0WVbUZT0FyKIU17I=; b=xLh6AYWb1fjRajVR9SwYDtilvzOi0/4j81iIGar5E3Vg4ptWQegjNvBz319yUyfkD5 CUfuIw192jWu/6tOd1j8bMGBZrzDkJXFXU6gy1rcnNn8ja40bhyPHU3nlBXOv524rFT6 Lc/Zhq+vC0vAiyjhWZI4EX0v0yy4Q+CDeYDXiTf2BINDqcAKvJb8KOw42Qmo4nA4ZS8S ltgr/QWdERU7p+o5vBEcZkfWdb6TlYzK3Wn0Jzag79dcs8DMSC8UnT9fE7llOtkmOmzI jhrwSN1p8ciQB43Wkd09onJi3muzmv3q+XLCizdWO8CLdWg2GxC1H+6p07fYYbj9pRkH C14A== X-Gm-Message-State: AOJu0Yw7K5vfQG2MMVnKFdijOxw/+W091+utSH19F6HfYcyqQGYHK6Eb BaoBz8WBpEMvN6Nu62JSc99Ume1kDviwMQNTuf+sONc3yorfMLLSVRCGyXeAUPnaTWr8tZHlKng RrA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:903:1d1:b0:1e4:55d8:e210 with SMTP id d9443c01a7336-1ef43f4cf18mr628075ad.10.1715299895951; Thu, 09 May 2024 17:11:35 -0700 (PDT) Date: Fri, 10 May 2024 00:07:09 +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-53-edliaw@google.com> Subject: [PATCH v4 52/66] selftests/rseq: 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 , Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng 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/rseq/basic_percpu_ops_test.c | 1 - tools/testing/selftests/rseq/basic_test.c | 2 -- tools/testing/selftests/rseq/param_test.c | 1 - tools/testing/selftests/rseq/rseq.c | 2 -- 4 files changed, 6 deletions(-) diff --git a/tools/testing/selftests/rseq/basic_percpu_ops_test.c b/tools/testing/selftests/rseq/basic_percpu_ops_test.c index 2348d2c20d0a..5961c24ee1ae 100644 --- a/tools/testing/selftests/rseq/basic_percpu_ops_test.c +++ b/tools/testing/selftests/rseq/basic_percpu_ops_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: LGPL-2.1 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/basic_test.c b/tools/testing/selftests/rseq/basic_test.c index 295eea16466f..1fed749b4bd7 100644 --- a/tools/testing/selftests/rseq/basic_test.c +++ b/tools/testing/selftests/rseq/basic_test.c @@ -2,8 +2,6 @@ /* * Basic test coverage for critical regions and rseq_current_cpu(). */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/param_test.c b/tools/testing/selftests/rseq/param_test.c index 2f37961240ca..48a55d94eb72 100644 --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: LGPL-2.1 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/rseq.c b/tools/testing/selftests/rseq/rseq.c index 96e812bdf8a4..88602889414c 100644 --- a/tools/testing/selftests/rseq/rseq.c +++ b/tools/testing/selftests/rseq/rseq.c @@ -14,8 +14,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ - -#define _GNU_SOURCE #include #include #include -- 2.45.0.118.g7fe29c98d7-goog