From patchwork Fri May 10 00:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660602 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FAA6C10F1A for ; Fri, 10 May 2024 00:10:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 02A4B6B0088; Thu, 9 May 2024 20:10:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EF58D6B0099; Thu, 9 May 2024 20:10:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D96306B009A; Thu, 9 May 2024 20:10:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id B661F6B0088 for ; Thu, 9 May 2024 20:10:33 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3B2E41416A9 for ; Fri, 10 May 2024 00:10:33 +0000 (UTC) X-FDA: 82100554746.23.AABFB33 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) by imf02.hostedemail.com (Postfix) with ESMTP id 671F28000D for ; Fri, 10 May 2024 00:10:31 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=iX9IipOz; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 39mU9ZgYKCO8VUcZRnXffXcV.TfdcZelo-ddbmRTb.fiX@flex--edliaw.bounces.google.com designates 209.85.210.202 as permitted sender) smtp.mailfrom=39mU9ZgYKCO8VUcZRnXffXcV.TfdcZelo-ddbmRTb.fiX@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715299831; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Mr4NdGT2PNvZU+5L6nsbhn20MQoXzIm4/FSacRpNfog=; b=Tnq27HbNFMu8xcg015uB+ftdZ3vh3Chk1kRiK2tjnPVi7t/WQGkr6KuGTNpr2Cgw2ORFDL OWPOatcu8D7Kz3pPOZwl8gJUAIliE6LMsp6aUyGkMzn5H8M8ysFDxtupZ6CkruO8oDyCgG ICR4z6IDT7p+j6sA2A7sdvqqVh8RXYg= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=iX9IipOz; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 39mU9ZgYKCO8VUcZRnXffXcV.TfdcZelo-ddbmRTb.fiX@flex--edliaw.bounces.google.com designates 209.85.210.202 as permitted sender) smtp.mailfrom=39mU9ZgYKCO8VUcZRnXffXcV.TfdcZelo-ddbmRTb.fiX@flex--edliaw.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715299831; a=rsa-sha256; cv=none; b=aJCyhiN+S8r2KLM9YOHqZJ5LKqB8sSLUU2k4NBss7WLDANfVsH1weDwd7+DaGP+Vl+MQRZ nHuFkwGk/dE1zk3NxsEcCcpD+j+3cNN+RP/58uOEDEE7ck4Sx4DKpIHKyd0Yz0Z9yuzKLh MTtWqgse0B5XtOYj89hAUHi99Riq1pg= Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f4574f6bffso1252247b3a.1 for ; Thu, 09 May 2024 17:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299830; x=1715904630; darn=kvack.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=Mr4NdGT2PNvZU+5L6nsbhn20MQoXzIm4/FSacRpNfog=; b=iX9IipOz6w2ZVludnNo/0Q6Jjetv3Petojm/rMBjoDcvLz9ek91sj5mssFLx53Uz6x B225y5d8BpOGE9AdYcxMRhvTzCUUm88JM3ez5O2uOl7dEoE7Bye/3+gN7uxtSWTXboA0 4Zs8yVbAkHCmnjIFoKvuCthgaJei4jBX9+FRxNbFUABUBB1e+3D5Tb5r5AiQ18IU9HDm iW67ytWsrUgT7tnf3Tvxoq8Y3J4jbaB48C27uyoXClUlw0WHl6hwiXifJHUXzaW7smIs fiGnvHHQ6I/KwljIVkEIuCXkPF3FXC7cDNjZD+K59PwFn7eLa1x/O7TiVsm53ojWgnVB arOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299830; x=1715904630; 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=Mr4NdGT2PNvZU+5L6nsbhn20MQoXzIm4/FSacRpNfog=; b=dFTMuU99XV0gnwa6HBNZZ0ERDi0g0lGpepyXE93HLLSkwLhGJUO/LZzrxyRmeBserF jGbytjXni1PdageV1rfCIh2OeXB5+1GX+Vxrrz/un3wj4brioSrlHf4pyg+5GDQiVsJa Vk7qA9nOQJpQdtovbHO8+NglvIj/gf9NAalUWqXv6rtfgziO/Ka/r+lM645cDIIzifyz CWWHciKa1cEbvmH6+85Z4BItZYhZVl9prUkbQ/LqeFE980X+nNhqiwRm4+utVAyHt1Hn cBxum7s3Yl4sfXvef9Fx5lre83O421kvq6QDzODrx+U3aICA5kOfOwgsv35qeIZHxEeO et2w== X-Forwarded-Encrypted: i=1; AJvYcCW3sRC7CZMecxtGHRWnzrqKHFc3MFcu5dvudABp1QzaX9idlF52DccH6axGvA+zSDrAUCV/T4MkW6ToiZ4FFQN1f5Y= X-Gm-Message-State: AOJu0YzDIupsHsycVz5zNH6sFDuwntxTUFgtujiEoxXrfRcsJRdiZaDu FYeF1JWsuFqQz5WOwvLMdW6/oE/zJh/PEWM1gau/WOo7rbfawjFv/PhfculnBsgUNbE0+kc745c TxQ== X-Google-Smtp-Source: AGHT+IGkqcBYg1ifiUd3TZtoa2X7YmEYrYy5gqzOTI3Rl8hbGb6PZhI2rE5TebYUa8SG5dpiJTZlea5cdbc= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:c93:b0:6ea:e2d9:f2af with SMTP id d2e1a72fcca58-6f4e015f786mr15106b3a.0.1715299830166; Thu, 09 May 2024 17:10:30 -0700 (PDT) Date: Fri, 10 May 2024 00:06:47 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> 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-31-edliaw@google.com> Subject: [PATCH v4 30/66] selftests/mm: 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 , Andrew Morton 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-mm@kvack.org X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 671F28000D X-Stat-Signature: agu6ixrcugdznf61h19ega1qygejmtik X-HE-Tag: 1715299831-166978 X-HE-Meta: U2FsdGVkX18N7SUxSqvtts/DUqfzoeVGemrR9j4T1mh99IeKn5vLz8z6czBwVjWDj21BFp8HmAQChwfGdkYBqEYsTDFodd/oDHhdrW7Mtxt1xlD/kjvxqfYATRF4GX7ZOAGeo0AXGWG/L2cNfeyrZ0PkRDXlxD618FVMkSCF19kjB0gMsrgLbUTQYG+svy0lhmXkQFzKqkwxDVqYam6xPe2JVU8nywiKfDSSC1A1wz5trpFT1/iBnDJ57ry/r/F7Hn2bw4IHDvtQmRbEa99QNR1QmFVr1Fkl4dXHs2/2e//GfEX3uWdYyXa0OtMeHBM8qGne2+j0etvDEAAwtUX372gZxikN2mpp48A0jPCBli/OWeJ8JhIn8V4V1gBykn6v7/PFzax1yDzJ4N0QbxgF91iFTaIjmQCVKI9szT4aoaIDpgoxzqDqN620u5CNhaRhp6IiUP6vttTH0zQ2f/+7BU6u+nrlvlKTqVyPBPsNwBLLb5puUKnuEsq+2wtnIyZCPfAohqJ7iYc9wDxTg5zZabQ+T5eHp+ssIexGO/Xu3ngRq6ALm43/ODDHDZg/ipqII7CtsWyTI12CRRrr5FVdMVuFKtj5VuQl3Ustf+5lbTbHwEIlobAMyhY7+BFPwAz8DmXHaVqlrmxLgy5WUzGstjf4o7JU+VWJ9z1MQWalZbpbQXniWq/2qhDxiquD6/gqdT0mFF7lE3wHQ5Kb/DbNk30vjTzbEFNAB3Zta3jRT8f8BxqFM9UhNFqg4vYllo949vc1emr6Lfst14z541wQAFn2KpHG5zu2ixX1fXYbkRh5mpdMsC8g/pvlZSjJar3lbpvuWBESPViyVLILg/BVOX3EdhDB77e1m6blLnRxgnaGFw+xS6u4bk+BnSxQ4/uKVtYpNRRhA+fTx1L1Omei1uqguDuZfymtlIC7y5RL+Fn33q+QZP/mcXXhhT+4hTQyGcHUhbqt4IAqOeW2t7N m62pHWzs BUyd+waqj97haUFw4CzZxxaT4vbVAuqSFUiBRX65Fat32xN6KtalddVWxrw5/cHUf3VfiBPdoahN/12gxSMnRN75fnyhw0diQx3RbFeRsFoMC3h9LZ3JrnOWiK1um/+7POVgWAhyngvIgiNanTARXIehuMkJKBBQoIG+krJlC2scvKC7q1rRsuxz+AB9s2iP6MDmHiLNn0XPXh73KH3YL8bRUBQl0keyUkFMVDHz7me40t3bC79BLQoZglikGlbIJuRBJJe3AXmQBG4ZXJ0GeNtDBFnGr1CVsHJhrCONZMqtXYsKbOQ3J9tTGbrt83J2dU4kk5AdYWTJCwzjdDg8bW5RjBnAfjaLflRmsh85WRzzan8onlXYZryZY2xJxyThZmse9Bo+YWT8BnvSNar+ipK66W6Gv1iWms9HTWlDeuR5n2zPs/fc16s7VkBtR4Fh4Xc514IveA8VPBFykRY0lqdrgFoWu8rj/EVPZNgwf0ITnonlAB3V2llLH9mjbjXxtZec1nzHnqqAIUjySQP2M8aX3sB1KcfMCv3PNe+Yr7FYceVcJ/Te9oYPnS8JP19jaAIoT0i8QCU+JlaZjsPJ8EVzXmy4nMqSt2Lbydql2B4UKHi5tK2RDTUkZ4tC8T61Hz4ZUO6L9v0j9ce0y+ZlONPm1ahJyn33jjcMHrIKOXdQMupScjSKUZ54MyW4w6qSOZ2osfqtakqZXlXBI9kv1RMzV4FU/zOE8slh9Dql+8XRbpLyox1QM5BrB/q9TSqd4tRkgDyqt7We4mT3QzvlmB7A1xw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/mm/cow.c | 1 - tools/testing/selftests/mm/gup_longterm.c | 1 - tools/testing/selftests/mm/hugepage-mmap.c | 1 - tools/testing/selftests/mm/hugepage-mremap.c | 2 -- tools/testing/selftests/mm/hugetlb-madvise.c | 2 -- tools/testing/selftests/mm/hugetlb-read-hwpoison.c | 2 -- tools/testing/selftests/mm/khugepaged.c | 1 - tools/testing/selftests/mm/ksm_functional_tests.c | 1 - tools/testing/selftests/mm/madv_populate.c | 1 - tools/testing/selftests/mm/map_populate.c | 2 -- tools/testing/selftests/mm/mdwe_test.c | 1 - tools/testing/selftests/mm/memfd_secret.c | 2 -- tools/testing/selftests/mm/mlock2-tests.c | 1 - tools/testing/selftests/mm/mrelease_test.c | 1 - tools/testing/selftests/mm/mremap_dontunmap.c | 1 - tools/testing/selftests/mm/mremap_test.c | 2 -- tools/testing/selftests/mm/mseal_test.c | 1 - tools/testing/selftests/mm/pagemap_ioctl.c | 1 - tools/testing/selftests/mm/pkey-helpers.h | 1 - tools/testing/selftests/mm/protection_keys.c | 1 - tools/testing/selftests/mm/seal_elf.c | 1 - tools/testing/selftests/mm/split_huge_page_test.c | 2 -- tools/testing/selftests/mm/thuge-gen.c | 2 -- tools/testing/selftests/mm/uffd-common.h | 1 - 24 files changed, 32 deletions(-) diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/selftests/mm/cow.c index 32c6ccc2a6be..8747ffef200f 100644 --- a/tools/testing/selftests/mm/cow.c +++ b/tools/testing/selftests/mm/cow.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/gup_longterm.c b/tools/testing/selftests/mm/gup_longterm.c index 9423ad439a61..53c257f6159c 100644 --- a/tools/testing/selftests/mm/gup_longterm.c +++ b/tools/testing/selftests/mm/gup_longterm.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugepage-mmap.c b/tools/testing/selftests/mm/hugepage-mmap.c index 267eea2e0e0b..edb46888222f 100644 --- a/tools/testing/selftests/mm/hugepage-mmap.c +++ b/tools/testing/selftests/mm/hugepage-mmap.c @@ -16,7 +16,6 @@ * range. * Other architectures, such as ppc64, i386 or x86_64 are not so constrained. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugepage-mremap.c b/tools/testing/selftests/mm/hugepage-mremap.c index c463d1c09c9b..8e22822bb754 100644 --- a/tools/testing/selftests/mm/hugepage-mremap.c +++ b/tools/testing/selftests/mm/hugepage-mremap.c @@ -11,8 +11,6 @@ * To make sure the test triggers pmd sharing and goes through the 'unshare' * path in the mremap code use 1GB (1024) or more. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugetlb-madvise.c b/tools/testing/selftests/mm/hugetlb-madvise.c index e74107185324..70c40c67bc5d 100644 --- a/tools/testing/selftests/mm/hugetlb-madvise.c +++ b/tools/testing/selftests/mm/hugetlb-madvise.c @@ -11,8 +11,6 @@ * filesystem. Therefore, a hugetlbfs filesystem must be mounted on some * directory. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/hugetlb-read-hwpoison.c b/tools/testing/selftests/mm/hugetlb-read-hwpoison.c index ba6cc6f9cabc..6b8b41b4f754 100644 --- a/tools/testing/selftests/mm/hugetlb-read-hwpoison.c +++ b/tools/testing/selftests/mm/hugetlb-read-hwpoison.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/khugepaged.c b/tools/testing/selftests/mm/khugepaged.c index 829320a519e7..d18bf400dae6 100644 --- a/tools/testing/selftests/mm/khugepaged.c +++ b/tools/testing/selftests/mm/khugepaged.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/ksm_functional_tests.c b/tools/testing/selftests/mm/ksm_functional_tests.c index 37de82da9be7..b0af40ddb0fb 100644 --- a/tools/testing/selftests/mm/ksm_functional_tests.c +++ b/tools/testing/selftests/mm/ksm_functional_tests.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/madv_populate.c b/tools/testing/selftests/mm/madv_populate.c index ef7d911da13e..f2c8223ff3d4 100644 --- a/tools/testing/selftests/mm/madv_populate.c +++ b/tools/testing/selftests/mm/madv_populate.c @@ -6,7 +6,6 @@ * * Author(s): David Hildenbrand */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/map_populate.c b/tools/testing/selftests/mm/map_populate.c index 5c8a53869b1b..ff4d4079bd0e 100644 --- a/tools/testing/selftests/mm/map_populate.c +++ b/tools/testing/selftests/mm/map_populate.c @@ -4,8 +4,6 @@ * * MAP_POPULATE | MAP_PRIVATE should COW VMA pages. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mdwe_test.c b/tools/testing/selftests/mm/mdwe_test.c index 1e01d3ddc11c..200bedcdc32e 100644 --- a/tools/testing/selftests/mm/mdwe_test.c +++ b/tools/testing/selftests/mm/mdwe_test.c @@ -7,7 +7,6 @@ #include #include -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/memfd_secret.c b/tools/testing/selftests/mm/memfd_secret.c index 9a0597310a76..0ba721d45d35 100644 --- a/tools/testing/selftests/mm/memfd_secret.c +++ b/tools/testing/selftests/mm/memfd_secret.c @@ -4,8 +4,6 @@ * * Author: Mike Rapoport */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mlock2-tests.c b/tools/testing/selftests/mm/mlock2-tests.c index 7f0d50fa361d..99dc39bf2fec 100644 --- a/tools/testing/selftests/mm/mlock2-tests.c +++ b/tools/testing/selftests/mm/mlock2-tests.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mrelease_test.c b/tools/testing/selftests/mm/mrelease_test.c index 100370a7111d..d78bf686e99f 100644 --- a/tools/testing/selftests/mm/mrelease_test.c +++ b/tools/testing/selftests/mm/mrelease_test.c @@ -2,7 +2,6 @@ /* * Copyright 2022 Google LLC */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mremap_dontunmap.c b/tools/testing/selftests/mm/mremap_dontunmap.c index 1d75084b9ca5..934fa6b441b2 100644 --- a/tools/testing/selftests/mm/mremap_dontunmap.c +++ b/tools/testing/selftests/mm/mremap_dontunmap.c @@ -5,7 +5,6 @@ * * Copyright 2020, Brian Geffon */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/mremap_test.c b/tools/testing/selftests/mm/mremap_test.c index 1b03bcfaefdf..0d8dc16b63be 100644 --- a/tools/testing/selftests/mm/mremap_test.c +++ b/tools/testing/selftests/mm/mremap_test.c @@ -2,8 +2,6 @@ /* * Copyright 2020 Google LLC */ -#define _GNU_SOURCE - #include #include #include diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/selftests/mm/mseal_test.c index 41998cf1dcf5..d35ee37311a7 100644 --- a/tools/testing/selftests/mm/mseal_test.c +++ b/tools/testing/selftests/mm/mseal_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/pagemap_ioctl.c b/tools/testing/selftests/mm/pagemap_ioctl.c index 2d785aca72a5..50d6bfc8db05 100644 --- a/tools/testing/selftests/mm/pagemap_ioctl.c +++ b/tools/testing/selftests/mm/pagemap_ioctl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/pkey-helpers.h b/tools/testing/selftests/mm/pkey-helpers.h index 1af3156a9db8..37d6b01ce90a 100644 --- a/tools/testing/selftests/mm/pkey-helpers.h +++ b/tools/testing/selftests/mm/pkey-helpers.h @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PKEYS_HELPER_H #define _PKEYS_HELPER_H -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/protection_keys.c b/tools/testing/selftests/mm/protection_keys.c index 48dc151f8fca..9f7de92caeda 100644 --- a/tools/testing/selftests/mm/protection_keys.c +++ b/tools/testing/selftests/mm/protection_keys.c @@ -21,7 +21,6 @@ * gcc -mxsave -o protection_keys -O2 -g -std=gnu99 -pthread -Wall protection_keys.c -lrt -ldl -lm * gcc -mxsave -m32 -o protection_keys_32 -O2 -g -std=gnu99 -pthread -Wall protection_keys.c -lrt -ldl -lm */ -#define _GNU_SOURCE #define __SANE_USERSPACE_TYPES__ #include #include diff --git a/tools/testing/selftests/mm/seal_elf.c b/tools/testing/selftests/mm/seal_elf.c index f2babec79bb6..0438695bc45a 100644 --- a/tools/testing/selftests/mm/seal_elf.c +++ b/tools/testing/selftests/mm/seal_elf.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c index d3c7f5fb3e7b..ae6ac950d7a1 100644 --- a/tools/testing/selftests/mm/split_huge_page_test.c +++ b/tools/testing/selftests/mm/split_huge_page_test.c @@ -3,8 +3,6 @@ * A test of splitting PMD THPs and PTE-mapped THPs from a specified virtual * address range in a process via /split_huge_pages interface. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/mm/thuge-gen.c b/tools/testing/selftests/mm/thuge-gen.c index ea7fd8fe2876..28a5c31bd791 100644 --- a/tools/testing/selftests/mm/thuge-gen.c +++ b/tools/testing/selftests/mm/thuge-gen.c @@ -12,8 +12,6 @@ ipcrm -m by hand, like this sudo ipcs | awk '$1 == "0x00000000" {print $2}' | xargs -n1 sudo ipcrm -m (warning this will remove all if someone else uses them) */ - -#define _GNU_SOURCE 1 #include #include #include diff --git a/tools/testing/selftests/mm/uffd-common.h b/tools/testing/selftests/mm/uffd-common.h index cc5629c3d2aa..abb44319264a 100644 --- a/tools/testing/selftests/mm/uffd-common.h +++ b/tools/testing/selftests/mm/uffd-common.h @@ -7,7 +7,6 @@ #ifndef __UFFD_COMMON_H__ #define __UFFD_COMMON_H__ -#define _GNU_SOURCE #include #include #include