From patchwork Thu May 9 19:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79409C25B10 for ; Thu, 9 May 2024 20:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=eeIT+lUoVWPdYQqg7K131e7tYGXBWRS1upD3K9X7HLQ=; b=uuBySNZ+hq+PR2m84NB1M1L8x1 NgMvclwBlwIg7EZw7kAOBvTVlUH2q97fK+ufljwIBvpGLB17Eb6KEL/ukBZiNNlJ6ccpQCHSie2S3 KddFPflXTvVapmWkLrhOOZqjAn9SZ57/Yd0zUuY/PTkzh1c7qEyTcYbDiZvTaJwRIHo10yg+MWG6J dHfLvAz6nMiwYl675QibATi7aA/WZmzCBEq5QA14TD4Z/e8ljuBruM1GJZrzuGL4vln4Vns44j1wL sVGgxZibBKJ6B4B4LXEHRfhVclCjCUugp+mjrVPl0YvA6B3P7q1bu7MHaS6oTrSJZVUV/mSaZb0IM IPw+VjHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s59x1-00000002ari-0jHQ; Thu, 09 May 2024 20:01:11 +0000 Received: from mail-pf1-x449.google.com ([2607:f8b0:4864:20::449]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s59wm-00000002ajh-2FX4 for linux-riscv@lists.infradead.org; Thu, 09 May 2024 20:00:58 +0000 Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-6f43b7b8d16so931262b3a.1 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=lists.infradead.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=VhvMK7GIHaSYOcli0ONbu6BF7zFk67c2fdOqkfGDB3Z42+iAIMjBRNnwSB1ziZGzjW 8UKdipnHG0AuHtaFSU94toJ8YXgzFpZ30AGGlmFRpHbIR5lmv0JV1Sn++aGv2XvYjURE v2FkuVg56i6usKYy4KMjhy8Gba+S3XXJ39ujGXvwlbboYIsj97Byse5RNQdhtt5x6DXr HFBlq7obLkBuf/cHj/2jwhgCXxA+xIzwyG7HknlqB7hCt5BPYmq+wWNNFIRyuH8WiSJf uyfR4pX0sinUFS6C0CKyBW9BT7XXRB+olCaqChjAAUMzzNZnuApyCiHPVNsfXgT/IGB0 ObtQ== 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=oZbwOr+orin+7JrYKEU8BSLczWEHI7x98EJY3et/EntcW05fld4/uSaQi2GdLI7Tbz 3Dv4DBAKfs62SdQzDuvxEMpQQ/ntkwwi2+dU7njzxcVamu5pOAiqyGuFWm+28G/O70Q1 kgjFa0BpZVbhnTBSrJzWoSY5t+RC4ZB9jA5x5nul6FMPlFbdazEerZTAN4sg5w2/b8Tz VljUCsdB+xqfvhNWzBeJfjCZllBSNDo17vjB5pBBFFHEUn9JI1+VuEYz4i/mAcGu+YcS oF/tFAQ3ry4y13JOwd01ZU68l82BNfwM08qGGTx2VyfKMH1tiyZfVsTCuVt1pGRcOQSK hAWg== X-Forwarded-Encrypted: i=1; AJvYcCVcJv0FcbYa1q6nkXJR2wxbWKN4358lH1veSuffpgoRSjKKcoYW/ng00h3vuOCFtv3Tio/nu+EC4pPotJMeRubx9gM07CXey5vMnRb+awrJ X-Gm-Message-State: AOJu0YwE2HBoAHmiGqqvrNO7TB8xrsL9DBTYqVPSXA0ZQXbr+fqBJgMp Xmfux0iet7dp4X+FLXjA5k+SpMCI/ZGMRU3eArqh1jFsp3/X4wPbDBb9O94JJnJG99t+bLrV0c4 Zyg== X-Google-Smtp-Source: AGHT+IGmISzn3sOtqsFKSvxwdELjvMW4ApeP/SAyXNazvTMS8izkwq3WVotcYYgYNquUC063YUcWVoMXVGs= 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> 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_Sala=C3=BCn?= " , " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " , 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_130056_706076_36C744AB X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org _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