Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp180387lqo; Thu, 9 May 2024 17:10:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwrInYYuFWapvsC/4IM3dZ6Ves+4UVXP3oPLiI6s48iVmJQ68fv5o/mx4qzpXYNseAnOwP+jnPKLBC4188uRxnDnr6Ev6Gy5og9o/SOQ== X-Google-Smtp-Source: AGHT+IESwbLhGwPaZ6aOzTW4YPAYB1cevLCt1Yn/4yJweeTvgLdKok1D2ynpMJ+eDCTdvrnXAKPy X-Received: by 2002:a17:906:2510:b0:a59:a7b7:2b9e with SMTP id a640c23a62f3a-a5a2d53ae41mr61220166b.8.1715299837472; Thu, 09 May 2024 17:10:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715299837; cv=pass; d=google.com; s=arc-20160816; b=A3i8+wrh+Opi8VlwmQm6DZGJTFa1PES8UTYDFsWVuZYND5lFTeeK1NBVS8ktRU+6mu 3j4WvILj1h0F6oF7zaZgm1EtGZgQiykI1goLTq7LhgL3uu+W0Awb7k+rOZxlYK1/sIqC joV6DjxK8hdyAHJZOFXke9kG95qcE4ndjoWb2rDKKeQE/H8CcM+W/RprnTiv8AL+c629 clBBHinlMM15AD0QO4zHy6h0EJTo3CYba7mN55Q1V6D+luA4r7p+JdfQ2BWn/CQgDeZ9 qiL3RbJZexdbf7HC9qTu5kFLUTl1nBSyb5fs18N2fv8F8QHO0aerXrYrf7YQk3z4X4K5 I+pQ== 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=tXggadKKCK6MVIJRJtEM2QQicrU97LLqONZv8Oqcmks=; fh=38jWoMZo4TCTXUwJsRFMf8iK6sPiQxAQR27yYy+K2iY=; b=yGlAcvuAeKRn0EFfO3RiERj0XFR07fbji2DWFwz5KA7CsZFl12cVxuktN9CaEcux0a aXtDEG78hRjtkEz4+FnwaQa/k/qunY4Ua7IM+r5LGWrR3aKeA56va/fxNGFNcZ+UIGg/ qgiYA9i1GLTY8l9+SAUDD1iGIRQxYAmr9GdU4i5P2YEApcKdfq7khCAcm6qPQ1jkgouP atY5ofgw5Lx+dEwebwTVPiTrAB0TIIFeGiVrg7Ibjj//sYkpUV+MUBiaszyPE8JMSsP2 CSurmWhSIyDrxvL+9FJMm5TXBSTaSAq/NyBDjIRZGc5G0CwSBFu4VRvVdrMI53D3qzFp qbHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AZltmngK; 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-175098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175098-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2c687si130485566b.931.2024.05.09.17.10.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=AZltmngK; 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-175098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175098-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 D744C1F22B6B for ; Fri, 10 May 2024 00:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B16F17C8; Fri, 10 May 2024 00:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="AZltmngK" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.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 96301E554 for ; Fri, 10 May 2024 00:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299749; cv=none; b=LbIKzgsL23SRDdaaNXLUt7KhoJmvZ8sWxzNJWJr9V1+Dva1aW25iiAOt008rwqYUwdU2yGyvOYwz61Q9nRW9/FxOdANymqpAZ+df0vSEaUN3beh5jXYWSzyeeIF9sTpramDU0o+wMUgDIBIy0aKSWVK/S1z4ujlijeMxwgxFO9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299749; c=relaxed/simple; bh=yFeGaq2CXG4DeBF3o2h2e5sDZVCCgYUHacvCQoyK0W4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NBfkcYkIMelzcwUtrwrKdluK5ZzMCA7xZUSFm8b0MuZ0hGGiGgdlvAna4HBJ4w3yM8sKSzihef7Yxi+XF6nw3EVEShQ5l0B8M8C4HCHddldVPHhyXqJFhhL8QePjlIwIMJ2B0N4qp2KoUR38OIx0fXfXYvZAkdTmHzSbB5ank2Q= 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=AZltmngK; arc=none smtp.client-ip=209.85.215.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-pg1-f202.google.com with SMTP id 41be03b00d2f7-6292562bac4so1906765a12.1 for ; Thu, 09 May 2024 17:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299746; x=1715904546; 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=tXggadKKCK6MVIJRJtEM2QQicrU97LLqONZv8Oqcmks=; b=AZltmngKUK0RNmdzuxPomwNa9pY7ILNP54SkZAzhQuIa7lNqJOlhHgSIX5N2iTlRmJ HmZsfH2BTLb/U1+4uU5ha2qzHBh+Ry8wMGnbgXWzUAtkKqkxATwgQvnSLqQgK2ZgD6eJ 1uZKT3hrhDxq4r4AdlnPV6P0nt6pMK3EdCNi636RWVE6gNIvNaKDiGPs1sdiWJSDgRzs 6kWbKjzhWmZhW73eioQalWx1rreWrqTG5DhVJ9atQEjrKeMwVNDOziU8xVj/GIAm2IIa haooh9/Ly9bAU1bZjc1O25Hli7VR6VyGT9h093HEVpP2kUiGZgj0v6XqbNJEwUXmHDTW 7gYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299746; x=1715904546; 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=tXggadKKCK6MVIJRJtEM2QQicrU97LLqONZv8Oqcmks=; b=ryqnIG27j3MmwY8b7AAe+AuNmi61CoY2VeiOx74w2pn35LAF42DWQsRHFLLpu/ZMy4 eyhyioQeZYMQ4y26caTVDGNO+4R8qE/sBs7AgJJkluCvKus9U8RodazDMXQNSIGE2wKt TJE+iQsaUOgHLhk5OX8k3cPOTG+m5OKjzy7qpqul8bVfn/OJjbl+VM2EKb6dQL8O4HTj vc6ru3YfwOIGYIakcI8qNzJDD7/1B2TfyA81x7DDDcIrq4HuNhGo1ZGGkIPwa77hK0E8 034i2pDAT5zv8rnKEYCprS2Ohg0KNc5pDk8/xhoJJGG0+J+pyDbX4j/qNBO5zIMp2xS0 c7Mw== X-Gm-Message-State: AOJu0YwJak6McpQzUWqpIieSkfrPYLyEWCRwVFnB2XV0JRN434dXbwe1 HFEcZO8mjmEwztHerJ9SX1XwE/60v8g2ehNAfB0PLDDRaJyscvXV1TczPcu6ZClsDjPYuUMtmnG 00w== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:6f0e:0:b0:5ff:bf83:21d7 with SMTP id 41be03b00d2f7-637416535a9mr2330a12.8.1715299745871; Thu, 09 May 2024 17:09:05 -0700 (PDT) Date: Fri, 10 May 2024 00:06:19 +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-3-edliaw@google.com> Subject: [PATCH v4 02/66] selftests/arm64: 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 , Catalin Marinas , Will Deacon 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, linux-arm-kernel@lists.infradead.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/arm64/fp/fp-ptrace.c | 3 --- tools/testing/selftests/arm64/fp/fp-stress.c | 2 -- tools/testing/selftests/arm64/fp/vlset.c | 1 - tools/testing/selftests/arm64/mte/check_buffer_fill.c | 3 --- tools/testing/selftests/arm64/mte/check_child_memory.c | 3 --- tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c | 3 --- tools/testing/selftests/arm64/mte/check_ksm_options.c | 3 --- tools/testing/selftests/arm64/mte/check_mmap_options.c | 3 --- tools/testing/selftests/arm64/mte/check_tags_inclusion.c | 3 --- tools/testing/selftests/arm64/mte/check_user_mem.c | 3 --- tools/testing/selftests/arm64/pauth/pac.c | 3 --- 11 files changed, 30 deletions(-) diff --git a/tools/testing/selftests/arm64/fp/fp-ptrace.c b/tools/testing/selftests/arm64/fp/fp-ptrace.c index c7ceafe5f471..eb1f14047361 100644 --- a/tools/testing/selftests/arm64/fp/fp-ptrace.c +++ b/tools/testing/selftests/arm64/fp/fp-ptrace.c @@ -3,9 +3,6 @@ * Copyright (C) 2023 ARM Limited. * Original author: Mark Brown */ - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/fp/fp-stress.c b/tools/testing/selftests/arm64/fp/fp-stress.c index dd31647b00a2..042f736970c2 100644 --- a/tools/testing/selftests/arm64/fp/fp-stress.c +++ b/tools/testing/selftests/arm64/fp/fp-stress.c @@ -2,8 +2,6 @@ /* * Copyright (C) 2022 ARM Limited. */ - -#define _GNU_SOURCE #define _POSIX_C_SOURCE 199309L #include diff --git a/tools/testing/selftests/arm64/fp/vlset.c b/tools/testing/selftests/arm64/fp/vlset.c index 76912a581a95..e572c0483c3a 100644 --- a/tools/testing/selftests/arm64/fp/vlset.c +++ b/tools/testing/selftests/arm64/fp/vlset.c @@ -3,7 +3,6 @@ * Copyright (C) 2015-2019 ARM Limited. * Original author: Dave Martin */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_buffer_fill.c b/tools/testing/selftests/arm64/mte/check_buffer_fill.c index 1dbbbd47dd50..c0d91f0c7a4d 100644 --- a/tools/testing/selftests/arm64/mte/check_buffer_fill.c +++ b/tools/testing/selftests/arm64/mte/check_buffer_fill.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_child_memory.c b/tools/testing/selftests/arm64/mte/check_child_memory.c index 7597fc632cad..ef69abc7c82d 100644 --- a/tools/testing/selftests/arm64/mte/check_child_memory.c +++ b/tools/testing/selftests/arm64/mte/check_child_memory.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c b/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c index 325bca0de0f6..aaa5519c6bbd 100644 --- a/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c +++ b/tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_ksm_options.c b/tools/testing/selftests/arm64/mte/check_ksm_options.c index 88c74bc46d4f..76357f914125 100644 --- a/tools/testing/selftests/arm64/mte/check_ksm_options.c +++ b/tools/testing/selftests/arm64/mte/check_ksm_options.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_mmap_options.c b/tools/testing/selftests/arm64/mte/check_mmap_options.c index 17694caaff53..66bddc8fe385 100644 --- a/tools/testing/selftests/arm64/mte/check_mmap_options.c +++ b/tools/testing/selftests/arm64/mte/check_mmap_options.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_tags_inclusion.c b/tools/testing/selftests/arm64/mte/check_tags_inclusion.c index 2b1425b92b69..e66d8b8d5bdc 100644 --- a/tools/testing/selftests/arm64/mte/check_tags_inclusion.c +++ b/tools/testing/selftests/arm64/mte/check_tags_inclusion.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/mte/check_user_mem.c b/tools/testing/selftests/arm64/mte/check_user_mem.c index f4ae5f87a3b7..220a8795d889 100644 --- a/tools/testing/selftests/arm64/mte/check_user_mem.c +++ b/tools/testing/selftests/arm64/mte/check_user_mem.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/arm64/pauth/pac.c b/tools/testing/selftests/arm64/pauth/pac.c index b743daa772f5..b5205c2fc652 100644 --- a/tools/testing/selftests/arm64/pauth/pac.c +++ b/tools/testing/selftests/arm64/pauth/pac.c @@ -1,8 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited - -#define _GNU_SOURCE - #include #include #include -- 2.45.0.118.g7fe29c98d7-goog