Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp185905lqo; Thu, 9 May 2024 17:24:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXLvH819jTIdpb0AXxXB+e93iWRpazy+39O3SD5MxBk5Wymq/AUr8tPeYMW0VLn13d6ht4yhunNbv7nfTFdEiDwUObUVCaYzRZ+OM61A== X-Google-Smtp-Source: AGHT+IGlg4R9iPb6qLn98bsKlGUjvjolr7MtJyVtxeyct1g3YRGAb8YN5HVZf1wFfWIrpYRlmlIX X-Received: by 2002:a9d:4d85:0:b0:6f0:40e1:2f0b with SMTP id 46e09a7af769-6f0e9113b85mr1121788a34.13.1715300690629; Thu, 09 May 2024 17:24:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715300690; cv=pass; d=google.com; s=arc-20160816; b=u0rLiSQFf9W9d0c884mPGJh3CYZsrvF7GXFtYy3TV66Ec5C9IgpuO6/5kyOJJZ4Bvx xfGx1b6oUaJBCiBctIY9DKRtRut03dxFMnlQqKkH+oZNFty9RCS9sppSycrxCZI2Q2cz cmU1kqV2bZrrZTm+R6n+a9IoKFldwTGoM+SrjzoFwutXWvw72Uee+Wciq262kADy+eEF /RTJ6anBQTHM8wZPtyavnin7MVYRSOOKeMK0VfMYHp3JE1w02yVSzFFaYWZeHac7aoJY lIyEU2BYy/RvYBZiu+jU6zVwt8jX9DMLlbmNbBtX0yv1D3o6E6fCb1wOa1RRo5tHTnzZ rsMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=Tmh402qCNlwXH2YaTj4ydVf0xBV6O03FHXYL91hE1gk=; fh=ilS3pUFyDrcCUIYz3PycK4DSHlkhJ1fOALY00/bRZAk=; b=n/soISPY8otMIM4iii5UZEZyiMUiiSFnl+xhQLDfoCz/3eaWEmi3+cQqlgi4qUPBWE 16ZTKDyxvEKbocHUIxMZh6tC6imQMgAQE6Px9bvoq7aHT9fQxB7pnECYbdbXm2RyKifn lTdU4FXwbyssSFmov637CD7XMjJCU8l52TnKbK0tuVZUHqWK560Dx7dR3XqZGXUddznS zIVJtBbV4D532UV6Ru3445plf1NRuPwYz6KPkCtn4hZc06Q4epp45FTKTJSiANAsF4kj qeMxHtNUqteZOviStLyYp0rW6jLfuC+kLpqCQBdY55O2kcicVqQdPuWg+udDJ42yJMn9 w+pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=b0cX6bvo; 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-175121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6340b3951b0si2399748a12.226.2024.05.09.17.24.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:24:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=b0cX6bvo; 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-175121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175121-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8026CB23EC5 for ; Fri, 10 May 2024 00:19:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA15012FB14; Fri, 10 May 2024 00:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="b0cX6bvo" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 2F95312F58E for ; Fri, 10 May 2024 00:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299816; cv=none; b=fGwjnJlacF84KzJ8YFeEap0InYbHshwnXYxZc1F3ooVRU4ztfbpnKs+l6ElP4ZfdOqJZw3FRpgP6IW8eBHx9q1gM2f3FOyHEIT1EDdYBM6ReHSpRutyErXvICYsyxnxCbFnFuRthIVIa3oiTgY7hXbBjA9MaSUdWQXoys7XZSH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299816; c=relaxed/simple; bh=t7ujw6ogf0jUcAdkgIoNqmn1k5m4g1U5LVlkiwe+0wQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JNBfkiP294/uhaUK+9gbCpqWgp2pFc4ECM8eJUTKQ3e6dk0pJ8stKuVT3DnrQnAIYpAi1NORHDDlfg7SyxFiX9avLyB4ByrBWd9weOrckVaphW6FFSdebrIihDPX0ncBGyUnOqVagp3sLmFOeBPBxUaoh0dXwfUFb32A+2irdZI= 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=b0cX6bvo; arc=none smtp.client-ip=209.85.128.201 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-yw1-f201.google.com with SMTP id 00721157ae682-61dfa4090c1so21176527b3.3 for ; Thu, 09 May 2024 17:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299813; x=1715904613; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=Tmh402qCNlwXH2YaTj4ydVf0xBV6O03FHXYL91hE1gk=; b=b0cX6bvoD6sn/fkb07XDfxADzxD0dps2Vk0zSdRoifl2zFS0eyV2d884nLY+odey4Z fe6LEElgEJDzEylNKrtX9arZMP9wzq5hHro2aW3+fczo/AtG8+fK3j0hXTD0C0twe4Dk pVDu0cSlQ2Ri3lgCUvPnsudvm97K0XtTuJeUimY2WtuaT0efYInn6if5y3tgpitjh66L scFoUlM++38slVVgNBiO7k8urIldQ/cr54VTJNH9kaWrIF3q9lNsoiKEwXZg32VKtwj/ E0c6lhb0b1m2AFQ6ucB5AmmxcDIJnnZjD3vQQf8Hx6AbX4zqzrw1kE5lPk1F6oEOB3Qg ebZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299813; x=1715904613; h=content-transfer-encoding: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=Tmh402qCNlwXH2YaTj4ydVf0xBV6O03FHXYL91hE1gk=; b=lFZALclG1xX2bfamWWrNAEBFTuvtFBArYvaRhUpbhuqhSmALl2FZ2EnV3roJ1YR8UH oESIu4HCHQeeJZpW2TVkZeGJ1iDQoupODUJwNDiEM/EsFyE3UcyJKU4CW+doE6hK4Aoy hUsSA26BFxHMkw1eP/v6gPFIy3mEKQMGlciJiOSgE46Mv2ALzP3+kazVNI3qB7/bAE/2 Bh855Fysumrfye1UxDVu851lEaQS13e25g9tkicb8TMKqBB9LlzWcVjWKHZMen7TWRKd 7Bv6nTpgHOYiCsDx50+cpS+7poXG86HSzOcI07/jjb2Xsv5SSqPLIE1ds81MRS7PeL9s Yh6Q== X-Gm-Message-State: AOJu0YwvD3tzl6tgoSetdTCtbk3NqWd/Mjl+2c/ocA0nYwjifg/pj/mf 9zDjLak9CtyFxfMKcD4JC7z0t9JWY+Rdy9cKZQabYzle7IQ4j0v8VLUsFtOxnhiQb9izNtRw0jl 9kQ== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:6211:b0:618:8bdf:9d56 with SMTP id 00721157ae682-622afffb2b1mr2643407b3.7.1715299813350; Thu, 09 May 2024 17:10:13 -0700 (PDT) Date: Fri, 10 May 2024 00:06:42 +0000 In-Reply-To: <20240510000842.410729-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: <20240510000842.410729-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510000842.410729-26-edliaw@google.com> Subject: [PATCH v4 25/66] selftests/landlock: 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 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, John Hubbard , Muhammad Usama Anjum Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/landlock/base_test.c | 2 -- tools/testing/selftests/landlock/fs_test.c | 2 -- tools/testing/selftests/landlock/net_test.c | 2 -- tools/testing/selftests/landlock/ptrace_test.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/tools/testing/selftests/landlock/base_test.c b/tools/testing/s= elftests/landlock/base_test.c index 3c1e9f35b531..c86e6f87b398 100644 --- a/tools/testing/selftests/landlock/base_test.c +++ b/tools/testing/selftests/landlock/base_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2017-2020 Micka=C3=ABl Sala=C3=BCn * Copyright =C2=A9 2019-2020 ANSSI */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/fs_test.c b/tools/testing/sel= ftests/landlock/fs_test.c index 6b5a9ff88c3d..eec0d9a44d50 100644 --- a/tools/testing/selftests/landlock/fs_test.c +++ b/tools/testing/selftests/landlock/fs_test.c @@ -6,8 +6,6 @@ * Copyright =C2=A9 2020 ANSSI * Copyright =C2=A9 2020-2022 Microsoft Corporation */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/net_test.c b/tools/testing/se= lftests/landlock/net_test.c index f21cfbbc3638..eed040adcbac 100644 --- a/tools/testing/selftests/landlock/net_test.c +++ b/tools/testing/selftests/landlock/net_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2022-2023 Huawei Tech. Co., Ltd. * Copyright =C2=A9 2023 Microsoft Corporation */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/ptrace_test.c b/tools/testing= /selftests/landlock/ptrace_test.c index a19db4d0b3bd..c831e6d03b02 100644 --- a/tools/testing/selftests/landlock/ptrace_test.c +++ b/tools/testing/selftests/landlock/ptrace_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2017-2020 Micka=C3=ABl Sala=C3=BCn * Copyright =C2=A9 2019-2020 ANSSI */ - -#define _GNU_SOURCE #include #include #include --=20 2.45.0.118.g7fe29c98d7-goog