From patchwork Thu May 9 19:58:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660245 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 B8690C10F1A for ; Thu, 9 May 2024 20:02:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 540516B0098; Thu, 9 May 2024 16:02:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F0BF6B0099; Thu, 9 May 2024 16:02:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36C366B009A; Thu, 9 May 2024 16:02:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 13C3B6B0098 for ; Thu, 9 May 2024 16:02:23 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 89E52801F5 for ; Thu, 9 May 2024 20:02:22 +0000 (UTC) X-FDA: 82099929324.24.93C3F8A Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf17.hostedemail.com (Postfix) with ESMTP id B677340017 for ; Thu, 9 May 2024 20:02:20 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=xm6HR5MO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf17.hostedemail.com: domain of 3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715284940; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=1RUmf9cJeIMvC5NGDOSvhMX9w5dW7KWUwzTmHdurk8PqKeSo3XFKYl2emIL1uo0vgsWA+J tSBOrDZ9oOrIjUNFVZ+aJ7RKJpcTWhw7/vgqv9AP6ryR9NLtho253pRt8R9j1SQG9CLXAo fEsmdV8D2Ah7zRDN20XfHlKbRimOZL8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715284940; a=rsa-sha256; cv=none; b=LkjpsnVe6CeZrWlaHUmevTCx8EVXlPAqB8YCaZoI3UDBMUcHHNIt39cjiFymRdh8uArJ5c YguZBb3/YtFidifxOZHejwaAGF7Rb1ma/zFpCOlstnvK5kko4sImdSuIOqlNfCsq4UKOx/ Sq9e4D4MlxzrhHtT2OrI0NvJZGMNnpw= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=xm6HR5MO; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf17.hostedemail.com: domain of 3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3yys9ZgYKCFAwv30sEy66y3w.u64305CF-442Dsu2.69y@flex--edliaw.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-61510f72bb3so22894067b3.0 for ; Thu, 09 May 2024 13:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284940; x=1715889740; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=xm6HR5MOwG1HAAyHEBEHfPsYyXmFaKrcPA6jU4TGZjvA8RePoeXzu1z0+QbIlyQ813 OpBoh718nTAUR/XkNAFNN7S9s/cFlS5Ut7VcLKgKj95Njs4vVh6EtuWkWRtc0R3yE0ji G3wCucfdT6WZGE17S9lGwZSinxCnmluOujlp7JPcnHAuAvdjCgusQD5vsb59uu8ccEpj SiI1qieZIt4dW47r6s7jm9TgypIjG36bqhY8qO+nPrV2rKb7lGDQbx1LX549Ar5NsKqu Pb3wm4Hym5dDs1XQopHJTmV2c9NAsOT6pfAVdwgF5Wl4rqbD5CuGg63nMVv18lO7SGm/ Okug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284940; x=1715889740; 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=d9gHi1CbuLmtBbPnbX9/epVkdMwUWIuJUi+ysiedamw=; b=BX2+jb9cwIUydS0Qt76C75M3gNaB+c+GLLF7j7Rf36pgtpNIKPSktQnmjrzqAOxesR OOYZ/aMnhvMBYn5YjzECR4BPQLNMTGzLtpYEyrHVJrTE173CVcTyjKi03sW0FnXM2Sjg j+5DbbXjKtFwzXKSqMAcLe53CLco4GHrKKckIJJgK1YSIMGe8uBQ6fsdCVQtSLjp3uEs yacaE7H64NWJprPti9nAmC/QPglBOhV6c5WA3dr976+h7j+doLWMeJXsHH9ZvbShTXBj H7182+Hb2szo5QrEOim3diEmqMdt4AxoRhFd2VRgx7bd1eIjo9wbeBV3ZPIKIo6MqEQ3 /rLw== X-Forwarded-Encrypted: i=1; AJvYcCXTxkB5S4gSyFGfvw2qVd3JOrz9Hdgr9DHlNLLSrgTb31LyM01F2uy6wiVzYTYGQxpbWAeHS2m2OA7Uz8/pHmdNbiU= X-Gm-Message-State: AOJu0Yw+XTdu0BzTHXcBCIcTCSOt4Z7VAA45aZN2Er3f88RhPiQEgnca i+itTm2Y2+Zi30y299BeYbpWSv2HuW97+CVVztRIitUxc/jlW6S0F+l26Hf+iCj6cLenPKYynTT mxw== X-Google-Smtp-Source: AGHT+IH1HCGu1gIE3DSLG2ih1KsG2DZ9PZD+3gGDYLQl8TsAe58wSaCRg5bXsgFKtYHhpV1brH7f43Zpxyg= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:6f8c:b0:61b:ea12:d0b with SMTP id 00721157ae682-622aff85f0cmr1708317b3.2.1715284939723; Thu, 09 May 2024 13:02:19 -0700 (PDT) Date: Thu, 9 May 2024 19:58:24 +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-33-edliaw@google.com> Subject: [PATCH v3 32/68] 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 , Muhammad Usama Anjum , Edward Liaw 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-mm@kvack.org X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: B677340017 X-Stat-Signature: 335u7sh4ho5uysfudo1rddujebpwue8a X-Rspam-User: X-HE-Tag: 1715284940-349445 X-HE-Meta: U2FsdGVkX1/QSa2ZXnuGa0mR7kC2c3dSgnrPmelQmyPI0kDfvRtNgfFYcUTNBfLSK5kTOCxoMZqG7bDcOzJEOv4vSCikv7e2XOn7ftxlsyYixIy22TqBydQJydmPbeKWAES6UPe0HGW83aWa//cUKfGWCzpV3qho6Jx4ZmWJrEC/DjZ0AEudDprlQJ6GDVBp9TFILBiu8b9SCkLEgBeum5X6K5SwAQKSH9hYx9Q+gPzUflhsGkA45fWIFHZNgk6XZc/MXvrB2J3dHL3d/Q6IhpIkxJ+oEO0uLkbdd5U3bWFafWFMeaTm+kMElnxD+IQGFwHWUlLsv/d4PIb5+B5gLs5avL69YGNoF2rotzBYZ1jTnRqUwt2XttHZHjF0aNAEk0pvTS6omfba1Izrjn3vaykHkArmH6VTtE05QYOdXLQgBpsWipPsa4NO3TfICC+Gx26jeRjTBdnlNLRHO9K/VTA/n7K7sN/ehKTRp5R764Wxel3aUazlnkD+B+rQScx9lcPp2eNTalaJXT6ihBYNbqLkIvA8WmUrXJXZoEQ6l40rZLjpDZWBsXHM5Cvd+xQ4HvoFN9S3W4h3m0+CkrP7r1FJekfQw/RCp8PiC7epUI56SnID/+zps3c6jRAmdA+nnTBiOsDVkbcwU6bhN3uG9bDYMk2R8TSf7ZGrdE/+JbrEncpTGp44Y6L7Yu+hZ3n5t7h+l4tZAXsevUSWQ9VcbyYgbMS28wj+imysxQcIueSt1/sPupTQj7txWHgAmbbLP/wbvtBAqpSadhSlGlVeqq5jgGlgTEYAK2X1SVPTHlm8+YunwWFFV7SGdKwS+D3njC1gWsdvmVofpW04TBGfemRzF+ODvhD4qRswxRz9irOJjiTqvx6GvEuRLGbJOMpBkYF+IWxC2Tpn5qSk+VTXaSgyPodOvOVVlpAbTGwerxP5Q21RSOELRcXWIbPUU5E/lDEKaa+sprm3woLweOp bDCl589o eWz1W0+ZelgD680vyutEmbwXwFwNhG2Ddjxitzj6OlAGJ+ofetIzFibX+P7V2PFMXVHI3C5SYzsL9GHnFnEjWBlmO200d3xrGaf+cDaZfnZULWJYXASWSahBGLh8VaAAsDS/P30BY/e3t7n6682DxAIBRKNnuoPogldEgWTaB0JsIhr/7oHFA7StZ/ksjPXiR+x83DTSnKsElpH5bVCkhTcyrhyC4FNhoJYy0UhuWipiSTYPbZip3D9T3YO6ciHswRrPyK/dygM7QoEdZSForVVWCsX0Fd7vZkZ8HcCpy9OM9ynxwANvKHv2t7NiqP25JSBxdKXcka87vM5IOsE9cy8Ktzx0AJ74Z9VMIDA96WKhjWZlJGQtsQdX/mJYs96W+QxMN7KoGyXnOUp0PYSzcUMVFf3wJmPSpU35xpINI3YJkB1/xFRgTusDy5iifx5wBQq2S1lswDkHmuhn3y9D6A87kzpJG5xlAZVgYLxddG9nrDtjNKyPULcavkwOwdtKLKIE3GX3v5qXoMnZzYsfaOYCm8CNdHXa5AZDLqU0NCis8Jw/QmiFe78GZLoeKs5QR+S+eR+cRH2cSV++OeuCpjh/dz4iCEzR6XvZOmh5nWeAYL7fFP+mSrASXOLxUSe+uLhH/G7o7zoecw/HYVgtIL/pf/6fC+VPBhXVdxYZt5FUMiVvCHQRdIqTptV3qIaFqT6BIgC/YikaPqAHR3v+dBJ5EBRxzVtjPUIiB5mRrFnIfAxdvXx/WJ/Kqj3v6frkJSIl86O0mlD7DWHJBHuD3k0ecpA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000688, 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. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") 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