Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp86165lqo; Thu, 9 May 2024 13:27:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnpBc4+vqi7aQTzoquIkqh+w+/lX7s252hwfCgwdweGaX47v6NG0U1HtIQGNaJkL7FjqJN3xU+8MaDp8sv9VK3QEJ94hIHEO2yaghpmw== X-Google-Smtp-Source: AGHT+IGLYjPkYHeULfBgKjdRZVWCyv8SKZ/S16si9pLuEOkv0CadO9AwQMXArqJS8mwuE+nSntYd X-Received: by 2002:a05:6a20:9785:b0:1af:8c95:d3d5 with SMTP id adf61e73a8af0-1afde0d545bmr872119637.19.1715286477660; Thu, 09 May 2024 13:27:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715286477; cv=pass; d=google.com; s=arc-20160816; b=K8hgYmJjkYeRtvQz47z6dCW9CYdsMjU0atHiKSOiJp7Z5XBatg4qkUnpSjE/eT0Gwq aDE+F2HnpWFhIwuqIrzaBhPsoimSIzqVF6W73u3nkBWIv8sVJMVqR0Us2KFbBHBrDzSQ id6yGQuYLz89L8BzejJNhJbyry9Mc5yk3OaGBZe19rM72UBRstgWQNBIXPcA38Uy8MUN F4CfkvwbNzFjMe2jXDmdTT7qO2nrb5uO3g54VLzGlNPRugOk6+siZQrqBty8en4uJBrc R1hymMyle4qP6QUv+PW8uuxccaEiz++KtCUjSSVZlNmyQZWEPlLo94cU0J/xlJm/gM8W UoHw== 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=DejFIYPZQZTsM/+LO58ySZeQn2kJiejmAm2sMCMuO7w=; fh=sSjQg18kzCNX+AkxX2KNMgHFwb3w1XIU0ZEBFR88FAQ=; b=Nr37y0eVuKCq4LueynrKFPQD+bGWeCg9mRUCHokhe3H8aNL/ualEYpFhEUnEebXPew BXaxwsrkY6QAZSNvFPvRHMeF3iabcASS5fd+HtaMH7PdD1tcyk4YIjUdTeogUVXO5Ihe Vx6QBP6O+YeVydHZSoPKaqio6mqrPSQr4ojjRbT9mB0u06L3uNlwoIrWducSZne118Cf u2cO8LOvo54ugciG7QLIoxYICNUaNuvF/D0JjKWlcT874sL5NYXdJu822D4GppsnMoRk xqH2jTRzhPmveZsmO8Ow51KcipGMrtaIhGf2Zj4LXr3YkpBTlt0ZfmEE25El24sOcJg9 tVdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=z4A0AYDC; 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-174888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174888-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. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63411719143si2281394a12.465.2024.05.09.13.27.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=z4A0AYDC; 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-174888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174888-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 822F9B25365 for ; Thu, 9 May 2024 20:15:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D91213E031; Thu, 9 May 2024 20:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="z4A0AYDC" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 E5ECE13DDAC for ; Thu, 9 May 2024 20:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284971; cv=none; b=SWAJcI+x0v/nTEmI4lr68nmXpOwi5iML8FAvwO3PUXWH90kyAoTIBQTIgVc69Q8tTUg38pnULYZ7CUyihw/V3rR5OIw1J7bJ3acvViYKtwd9B+qIb1CvH2WR5x7mcf2IrZm17EZiTFQQ66mlapXnIx1ZI25Xzoq0qGena0VShtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284971; c=relaxed/simple; bh=k1/mENn4Mu/LdxPYs//P/acCJ954uWxS0ZTmsgOp6eI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Oym6bYDKKhfvT65jCbfDqdxPPnCNHG2jTK9JgKOufZHmly2NPK2a4pm7j7r4ln5V76Ad9P8NV0F1dxQdPyGABwDuz1nQ1fFKMZVip9FmqJ6Jn9gvQfdSrnAK+DhGD7g6T8N/gMDoYksksjoHE1cwUYlbVNR16Qy8Ky0eoFrVgrM= 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=z4A0AYDC; arc=none smtp.client-ip=209.85.219.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-yb1-f201.google.com with SMTP id 3f1490d57ef6-de0b4063e59so967250276.3 for ; Thu, 09 May 2024 13:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284968; x=1715889768; 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=DejFIYPZQZTsM/+LO58ySZeQn2kJiejmAm2sMCMuO7w=; b=z4A0AYDC0LnIy3XoINyCEtndclk6osJg4NeOEk2a81jEY8BJq1Ajhyyz7l2O2COYyo TbIDg012XP90WVDfIoe2ymoCKEicwla1EJNSmM7+u+V6gjXt0CfcKPOn3mA2+Csrq74J 2eQR9khBkbBkrnACLrpMqcP/Gg5dl8bgsNRpqQQu8GtGVMsDDAM3c+cxosBbH4F1SVGe /WmK8eoxPy1oPXX/BMplvmAcietrH7T6OFRSNFvFFESUiEsGN+wHv+8V0vxBo8voRYop 7LVJPJDJLAbYjnrzj4TGFR8G49eLm+e+Gu5qXDeOAd7H3JErOFKKXWFgEp5lX+iQtylP ER5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284968; x=1715889768; 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=DejFIYPZQZTsM/+LO58ySZeQn2kJiejmAm2sMCMuO7w=; b=xUNfrj/8PisubTl5qhRnTTX/H+CA4Sd2epG8TPeEJtKW7jYZJbou3IcHgYmCQ8CbtW 8amqnUcPTi1/P4qlpyYVBEtHc3XhHNYgRQ5NhItHUFb7Luv8yLm+oohjbVUoSgoAsR0z +3s9M3mGoh5BdeTMazKLVeUjQIDsK+PsvvulU3A+Ru+FN1/+TMAYEp3ksY8p7mw5fECB x2jvjqwWOKlHF6rsi6eSPZK5+0FRxSuX7cR9RIHkPDbLCXbUgBVS5f6KZXN1GV3EMHP8 ei1JekfsiS74w7IZ9PU2N93Mg7S8xogJ0hnKRmoYI4o8X/XOLqikrQ9UF3OHW3rRxYs6 juZQ== X-Gm-Message-State: AOJu0Ywqo5dwjYxoLlHzR0r8I3Er/dtXh7PM56E7cRee68sWbOBiTSYy CCmMwuqBmcPa5Zud94XvBVKEyemAYdKytTLbLZU8AYBEXp3cyZgxcP/MVQ/K1wqiOwcfFEA6bt0 lzA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:1546:b0:de4:77ab:5fea with SMTP id 3f1490d57ef6-dee4f2d1110mr162718276.2.1715284968047; Thu, 09 May 2024 13:02:48 -0700 (PDT) Date: Thu, 9 May 2024 19:58:33 +0000 In-Reply-To: <20240509200022.253089-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: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-42-edliaw@google.com> Subject: [PATCH v3 41/68] selftests/openat2: 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 , Edward Liaw , Andrew Morton , Muhammad Usama Anjum 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 Content-Type: text/plain; charset="UTF-8" _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/openat2/helpers.c | 2 -- tools/testing/selftests/openat2/helpers.h | 1 - tools/testing/selftests/openat2/openat2_test.c | 2 -- tools/testing/selftests/openat2/rename_attack_test.c | 2 -- tools/testing/selftests/openat2/resolve_test.c | 2 -- 5 files changed, 9 deletions(-) diff --git a/tools/testing/selftests/openat2/helpers.c b/tools/testing/selftests/openat2/helpers.c index 5074681ffdc9..3658722c889c 100644 --- a/tools/testing/selftests/openat2/helpers.c +++ b/tools/testing/selftests/openat2/helpers.c @@ -3,8 +3,6 @@ * Author: Aleksa Sarai * Copyright (C) 2018-2019 SUSE LLC. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/openat2/helpers.h b/tools/testing/selftests/openat2/helpers.h index 7056340b9339..ecd20a3d47ee 100644 --- a/tools/testing/selftests/openat2/helpers.h +++ b/tools/testing/selftests/openat2/helpers.h @@ -7,7 +7,6 @@ #ifndef __RESOLVEAT_H__ #define __RESOLVEAT_H__ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c index 9024754530b2..51f1a7d16cc9 100644 --- a/tools/testing/selftests/openat2/openat2_test.c +++ b/tools/testing/selftests/openat2/openat2_test.c @@ -3,8 +3,6 @@ * Author: Aleksa Sarai * Copyright (C) 2018-2019 SUSE LLC. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/openat2/rename_attack_test.c b/tools/testing/selftests/openat2/rename_attack_test.c index 0a770728b436..477125eb64e2 100644 --- a/tools/testing/selftests/openat2/rename_attack_test.c +++ b/tools/testing/selftests/openat2/rename_attack_test.c @@ -3,8 +3,6 @@ * Author: Aleksa Sarai * Copyright (C) 2018-2019 SUSE LLC. */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/openat2/resolve_test.c b/tools/testing/selftests/openat2/resolve_test.c index bbafad440893..48fa772de13e 100644 --- a/tools/testing/selftests/openat2/resolve_test.c +++ b/tools/testing/selftests/openat2/resolve_test.c @@ -3,8 +3,6 @@ * Author: Aleksa Sarai * Copyright (C) 2018-2019 SUSE LLC. */ - -#define _GNU_SOURCE #include #include #include -- 2.45.0.118.g7fe29c98d7-goog