Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp56872lqp; Tue, 21 May 2024 18:22:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOwkcHjekRsvryH9S7wSnZPZBc3Ttal9N5024z3dqXnNWLWE2y/ltyh0de1hQCKbiOHavbURDpUyWQZ1MWxP+nWX1Q2QRMuZiMJ3qAjQ== X-Google-Smtp-Source: AGHT+IFxyNR12wpy5GhhF9QpaFhSQkPyGNrAQI3caqwv89cDv8np7u/DmkMonarc6mg8pVIN9Xdw X-Received: by 2002:a17:907:7817:b0:a59:9a28:f1bd with SMTP id a640c23a62f3a-a6228170d2cmr22773566b.66.1716340958921; Tue, 21 May 2024 18:22:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716340958; cv=pass; d=google.com; s=arc-20160816; b=CZlSqb5CQo1jt66UKZsU4mq2suxFTPlEgfQrIMew8JhY490CuLpXdLFzx+JKZ/95/c dkIpkCelZ4H12VVdh3F5pH3S7AjAtjHnbAC1AU99U45VjCA3y5S0cV429BfW1ajAoBvS Hg15gzU7MA8C5UfLVOaBt0RlI9Z3zdWfk2jO5cbHGNw8qu1ne63L0ON2b0U7w3ra+pFO YaMoePONSoxWV8Z9YoFim+UuMDAGgHLpo2IMURTMQozMneNR2RUzfHV5PWSIjpgK09o3 ozyqz4+B9FIywTb7NofdvwB1wE8N98IrtnDPA+05xW3boHRXA67x5JuM3eqE64zubPB/ +oyw== 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=nL+ubtFWboAj68fw0TJnaXwPXe162hyOQA2fYCAWD/4=; fh=oDWVUjqywF0uxW0S23L9UiBSZsbzPRRlC9XD2WTsPwc=; b=DWTYtexfeO/4DVm7P4U53eQ9ORD3IlrK0h2K7igGl43XCvQnwXVPmJXfPoJ/zGwd5Q Jjmg4lWD4ycTYvuEONkduWUC/gtVIJ2QJfB1Kqw/URfv4g7hTeFOTh2f6UciZqkaGDjO zK1QwOP3NQ8JEOTmLiblZRczVnJEUf2ggAcx2sdIfgXfMx2I34vv5DvZhwwZhvQtFT/E Y/ND/thWf3n5SdEOBpP3AzrMLl7R9ZxQaYhOv76WmucQNe46zKrpGyEI0izOfntKM3FE pkm66Z2hHc6KCr+V6p8nwvzcjvfs0P2uTqlnzSF29bc16Wn5/F3CKIQpz47KCtAwpdst D+8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NS7V+ssG; 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-185607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185607-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-a5a17c2c1ccsi1545165166b.963.2024.05.21.18.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185607-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=NS7V+ssG; 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-185607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185607-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 DA9051F21261 for ; Wed, 22 May 2024 01:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B65520B35; Wed, 22 May 2024 01:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NS7V+ssG" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 1FF6514D294 for ; Wed, 22 May 2024 01:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339661; cv=none; b=F31uZnRtGVbuK99i+oVWgy9TNrE/ZU1SpfVmy5qmxJ5DatIqlyp4r78/iSrtgkCXYY+uK5yc1gGUjwjFuagHZ8TVwaYy4lOB7m8bUW3FF8gwnM+3UPjzwRs3w4YIJ+iJdR/EzskAovDq+T8oiXR3NYy1uFXlfVgM0SB2oFi3lRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339661; c=relaxed/simple; bh=NBcyLF5zcwKvq9lv7WeGDf/J2SyGusF/lnxPAHUyJzk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=h+wUUW5Nqnh5WUWCDuwQP+WfUq51+qqILs3lxsr35n/BZ/zC8uUhL/fn9qlbQhsyQTCx7uMzRXlumIzryF1MY+ElT5osAfxNm0IAZMqJS5l6uUt+W4sWjSmih1m2R9eSckvg6vwnRF9okjfz5p2QZay7zw0m/PD/pbuF6SjjH2M= 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=NS7V+ssG; arc=none smtp.client-ip=209.85.216.74 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-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2b38f3e2919so308078a91.0 for ; Tue, 21 May 2024 18:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339659; x=1716944459; 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=nL+ubtFWboAj68fw0TJnaXwPXe162hyOQA2fYCAWD/4=; b=NS7V+ssG4CUFvLrUZaFl9nwvo9SM5hiwC3ebsmC6GEvsbbmWBFB/fPUg5ohCxBNSkC wdPIKa+ybvCP81jdfcolFagCp9/yNfT01B9VI3hj4nfTODGqb+Ky5s4BSQoRP5fuf3SX ykTSEEE1WluFGfWYoTs2IB1tLeWli+46CTieUCNTy7pMeYzpjJe9o2SXMLSus+kx5geX T4EV6XeonZyh2BA41FwZGDVqaVOJUTeUfNUUgO/1ASAzCf2V3q6sRoFCOCiCNYu5p75u ers6mKhb102VZ/iBHzaEWy+xTYk0PI8agVWeNJmOg8xVoXooiDzANqa2nGDkhIIYTdvr +Muw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339659; x=1716944459; 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=nL+ubtFWboAj68fw0TJnaXwPXe162hyOQA2fYCAWD/4=; b=LFYIdvlTDmFtcEUQR1JEllG5CttPDGBcohLHUjMSJ/xyfDRaMEZvxYD0/o6tl7I1bG Q362AKyAgXdADWpKRFgd2eYFm7jIQJuUE9U6qpOWiULae2suSgNRsT+O+I8ncgWGun8T lQy0T7H+5QXx5WVfumnwf8GhQyWWvmjj2v3lU5kj/5AQGs33BNbMT/KQS3DWKg7Jgh6n bK6N9fmvp6px3Fxt1Q/YHRHDQ7wPU/7oBDSjjKPGbUHGTE+KpUpvRwimHYH+i6UfmGiC fJ2V9q2tmtDi1c82BbH9YCOK8sjn9mGo7lKEPOmHj4DbZYLiaiZxqkKRIRdCGoWl5fcd tjxQ== X-Gm-Message-State: AOJu0YxQ2SGy+ssP5eTrBv/dvkNeTWbiHhZjzP2XZEKZv94W5ECDGZSD PbM0f7np54TXhQO09rS0rkiAPo54wjl6ExiRgjtPNZ59pg3iP36o2MHzV9Q3PRcFJtNEJO5KICn ktA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:90a:ab0a:b0:2af:499a:fc9b with SMTP id 98e67ed59e1d1-2bd604d3e7amr74137a91.2.1716339659309; Tue, 21 May 2024 18:00:59 -0700 (PDT) Date: Wed, 22 May 2024 00:57:17 +0000 In-Reply-To: <20240522005913.3540131-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: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-32-edliaw@google.com> Subject: [PATCH v5 31/68] selftests/mm: 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 , 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 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/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/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 - 23 files changed, 31 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/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 -- 2.45.1.288.g0e0cd299f1-goog