Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp73449lqo; Thu, 9 May 2024 13:02:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKFU2D0cIr5w2jJn9HQ4rUlggycwsTQIXYouqkr9mZKmgPU5DMgPfoTLc/RcMhA5erSGoGiZr/S4QubnphPA1jRb1PPXbaC0ms16St/w== X-Google-Smtp-Source: AGHT+IH+GhPvi0eGoPRbR+oBsP8MHXrsA72WhH1Z0NnBwckPzw9fR+agMIMLz+kC6T58dy97qMx6 X-Received: by 2002:a05:6808:1827:b0:3c9:9404:6c99 with SMTP id 5614622812f47-3c9970ba1e5mr699376b6e.42.1715284965088; Thu, 09 May 2024 13:02:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715284965; cv=pass; d=google.com; s=arc-20160816; b=kSPPWLAe49A7L/GqgrybCjxo9KofVwd8mRI6I95uPSoEY0hY8T7Flx3e8QTI7RdB5E 163S0R9fMbplNLSHfuNUGHp60mj7f45Y9p75Wopw4gtp1CZbRrl2OGw9KFzd+Xh3TJnx yvasfmrzlfoDgztZ1eBOwv91oBMl4C3/F8ILHNWcaHT3EmdTbeOHjJycLs1ZujRrCOH3 ffGqxO4rNLf/YmLI7SF1YAYF1ZQm2vLalX7MFd8rEoQuCthiy2YvC7h4BGsdUFnYLrLJ yIzAFD/cODR+SKKKvQPnBNjPsCijutRpITDj6i+7sW1D8BScCbGhMjsZHoxdWT5++/vp XTuw== 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=7RwMbcr7bd11lSZk8czpu4eBIOH2u27Jnq3T4Cop/ko=; fh=0c3ZqOH87QnJos7H26qYDVxL/OMip85/OklHJL3w2B4=; b=Ko5Pvu03wZjJ2Q3vAEzR8F4Oduo0nHFvL4Pyqd4hnL2h/vLxsHPl/+WmUE8bS5ZURF 7eC4mu/6LFCGrcjt72pAKlf4UMsQdYbmZ4BNQcbs+sfTJtKQWz/B7ygGEMYd+2IetNsl rx21J04F5lR9V2kfuEc8n0I4bo4CN29Uz7CzlN5d266z8dwLeRLocJobsGxMYP3vucWN GlWN93swWKqlRQ7p4BBVAVNnjY7S8HqrsmJxoGkU2eknki5LfOTIrRvSuwiT4u2wtYqr WHrlfUhzKuni8xA3n8AIbNeSIE4JGxzDxb/Koa/PKx3eOFSadGWvtYLaOQcLP//lavOA Ku5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fgcn8ZXK; 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-174849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174849-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. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d734asi21320996d6.37.2024.05.09.13.02.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fgcn8ZXK; 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-174849-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174849-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 F24031C21AA7 for ; Thu, 9 May 2024 20:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D4E58613B; Thu, 9 May 2024 20:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fgcn8ZXK" 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 780E98595F for ; Thu, 9 May 2024 20:00:53 +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=1715284856; cv=none; b=Czs/Sk+8nUzwhr+Dg5KeBe1AoEOlx8gXSvqQl40YkRu5mrqe1+tIahthx46yuyxVFR3Xq8VQKuOK8PZVP+yal6B/bn8E8x4gciRrt4/56O5Zz5ACqDiA9sap61oypPo8+zD9ENivgSVfrwVuG6WdpBV6jEMYJTCYiaLk/UlnL3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284856; c=relaxed/simple; bh=qEmquAtOnIajUCIET+4FOjSPPjhOeil/rXAtjnxBHGo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UOaUb+gdRxk9r6rIA5EHCK2sRjadIUtv2wmheELrApNmjBawcZ/KtGESRFf7RIiLJD0iUSQzYveqoXMHMkmmFU+LWG305OWvG5Cj7pNB6q2x9OdPGn0Rmed963uphwO+pyeSWxIMEmn96UpgJqXKna9sA0URo2pV/lne7E4Dv/s= 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=fgcn8ZXK; 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-6f468ae6a5eso1208455b3a.2 for ; Thu, 09 May 2024 13:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284853; x=1715889653; 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=7RwMbcr7bd11lSZk8czpu4eBIOH2u27Jnq3T4Cop/ko=; b=fgcn8ZXKFlaZG2KQ3OSswpwXu9mSW/mWZj7A92DIMX3iUxojpiicNREJ25TMAFu1Mm ZmDE/GU4se3PJoaVLuO1KGWKhamn8C7y0hhg344rCVQ6BKgTFuJGrrTnww+ItQfSkMtu h81CyjcWVnVh3sBYzxTZj8Fm7PF7fwWqifKqvILceUpBp0m5iuw3e5ZSHOREYR1UdySJ B8CHBs6Q5sFTcYeCzGiCjRqf/FkjBo9Nyjv2ww2uHpWXahp7Ki8XkMtQOPeNttS2w6Xv y37g5e8vp4wAkXqhl2WHNKLLds+b/FsVfQd/MtDmaCBPDwtrPemeMo86UQ29pltPnDb/ 8Dgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284853; x=1715889653; 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=7RwMbcr7bd11lSZk8czpu4eBIOH2u27Jnq3T4Cop/ko=; b=qo0jqTP8lbUZLJGuuNWYcRfSge4u6oXIoYyBjF/99VLKnLLU3jyUqWEFs+6fhjFm64 IN6cshoJtdHr00bxBVIyhSTN4QSWS0C4WZ7RaAbqSivkhBcLwy2/RqHBQS454m4y0A8x S2thItnpcVUlO7pHAOpA5mzY9BFC4fSEH/HQKExaIubwv2njHNcCL88ewUaKqz5q8r78 COKaNv6VcWq7+FM9OUMA5ombloprVcJxDs08VjEPVBT6aob2eFdmn8zjHZmW6Ju/OeTp rlisqbSUDdv4YKSU88vaxccrmzoWmUHOpq2fUCW+Fvf/08Z9cYD8NLsfcj6svB3UfzcL OKqA== X-Gm-Message-State: AOJu0YxkrD3cKDN+gGb9H9S+juhjZR464m+wMXqzupDH8QOaoZZaIeRR cmsLPlu4+g7hDzBHfr3cAbdMaJZ4Un2uueFld0tTvS3VKM9aFr5pOrpw7+9ZCMfZsUwLpgz/MvL JkQ== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:2d11:b0:6ec:f407:ec0c with SMTP id d2e1a72fcca58-6f4e02aed8fmr1374b3a.2.1715284852715; Thu, 09 May 2024 13:00:52 -0700 (PDT) Date: Thu, 9 May 2024 19:57:56 +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-5-edliaw@google.com> Subject: [PATCH v3 04/68] 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 , Edward Liaw , Muhammad Usama Anjum , Andrew Morton 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, 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. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") 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