Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp84729lqo; Thu, 9 May 2024 13:24:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXddnpOgjg9Y9o+PFGUFl8GpI3mKPN2ZWN0eT1CMsyhdO5SU4ADD+hUr7rSBSbFuligMr8UTpZ0hafQLSCXl5ZOeTT4Jcvg3/P7pkwdCw== X-Google-Smtp-Source: AGHT+IEUX5SLo73DS7BTMAL8yzO29xXuphqQ6wx8Ez48Drrx2NM414PG2Pspzahrz4d+TUqw0Czl X-Received: by 2002:a17:903:246:b0:1e2:bc3c:bef6 with SMTP id d9443c01a7336-1ef43e2797cmr8006735ad.37.1715286272823; Thu, 09 May 2024 13:24:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715286272; cv=pass; d=google.com; s=arc-20160816; b=Wz3wYE3A9gA05EdyaDNBtfLi+9sur1bvc+At544DbMmAjpd5fK8FyMBpEGYECVcEud cETZQpua2e+myrhvTEtRsCGfPAGGVf9LGjfwSJksrke4euRRW3RKKnxaGRUrPMD29607 vYIBPLSMGNwWoU0D1Uvtfwa3Noxln/Q4+LJutaYcKT7RZgTXtpxgxgFP64JKttxLeSkK E33VU3gx1Og95mh4w9sVUPL40HQl16KTS4LDv4VuaHyT7KB8flROfbDJAudnGJpWax+f qZPQ31T5aF0jG3gCQVnx0QfTNHnyrfIE0Px0kMPm60yhbbNfd+Eyvak4YzEbyieFc2VL NR3Q== 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=Di7Erv/XRsHV/bMQeC6cRhGef1PHcLc0ShAwyYHpOVU=; fh=pt1fNaKDwxUMVCbrv+WfkjzbfOCTytBxwkIzKprbA4c=; b=EMVqbqNhYcMxtV0ARaaqdqRm7924V6WutGZtexv2XTz/B8oOA4wL9z2GWspQxH3YXH F6fTlSI+796Fx0kK7Vo+cr+0XY46OwZjc6286hiLN2byP0oQ06MKC4K02SyJif3yjmjX br9JkZbXfRI6MRxJ2Xd2bMdpFYjUS38ccnWPkqS645b8TKNKw7HMYYnTSDudnYijmIt0 djH6rQcKXOHemXcovzCkx/WACm0h1E0O+4omHWJHdmKQVALNX3VYwgO/WNpwEyvfbLld Oq0gwzemlZfWMk1MNJRrlOkFni63kX9X4I7lgmEBQ4znUH+nqb4dGwxXbB3yltP9cbO4 xvaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=gH35k+fZ; 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-174877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174877-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 d9443c01a7336-1ef0bad7968si20175975ad.135.2024.05.09.13.24.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:24:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174877-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=gH35k+fZ; 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-174877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174877-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 A05D5B240D4 for ; Thu, 9 May 2024 20:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8556613BAC8; Thu, 9 May 2024 20:02:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gH35k+fZ" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 2EE7113B59C for ; Thu, 9 May 2024 20:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284933; cv=none; b=UYfVhW3uNTzafvN31pfzDwr3XgC3ik6knd/2hNf0TF3232FPn8OadFvYVEwhtY54yzFy7Ww1N1GXOB6/vAIlWoI4kgVaRU6OnqtaRDWtSWjtGeki3V4c4c36/1e1sPHxhmCVVKlkst3vdoVhicBEshcfwgjygt67bj3KSUsAep4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284933; c=relaxed/simple; bh=1oD6rsCbKsoe54EZCuc1n9pRR8DgtE1IGKQNEvkXKtM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=O1j43tOPwtFQ04t8Eb+UtLWlzJYJLCCUNvT/CW3GN506dgdqDXv0MLjXlJdv86crlj0TvJpBm6280pHaQTxpZHn9ks9svjZ4afI2sPwlIjvx8X3rRSm23J2h18IQHh6t2kzXko/kWOV8J/2YTA/xMxeRbsh9MbsTIUISck9w1sM= 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=gH35k+fZ; arc=none smtp.client-ip=209.85.128.202 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-f202.google.com with SMTP id 00721157ae682-61be530d024so20254947b3.2 for ; Thu, 09 May 2024 13:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284931; x=1715889731; 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=Di7Erv/XRsHV/bMQeC6cRhGef1PHcLc0ShAwyYHpOVU=; b=gH35k+fZ5X08AAt3ku0oVG4cOeN2lgs8ixLSce21it1ll/jZ6oJlEfFcrTFE2bxscI aIgShzwUdJh4B4fzU7FnnIlwVKsOBTLSXD3VduBbghfFhgigQeN34/AOJnGDv52GPfBp 3UwPAmDBMeW1FgyqNfN9W6C+1qtBaWg1cJhZN59rQN9Qlzfpks+VGPHhaWYK1wNrcowg aRBQxtC7GVPNz+5sN1Pccfxu5ueBEyGFJb1XgpNIEJGUT2aue9Yeh8s2iecl3Xd9mY/x 2ntoJjJ+xVGEhO5h/fWeFMz6UkdQ3qg7g/fJbfIS0mZ57qkkTNF2SPoy73ygO8F0+5Sf 1RAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284931; x=1715889731; 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=Di7Erv/XRsHV/bMQeC6cRhGef1PHcLc0ShAwyYHpOVU=; b=B/V/jBBxLSrnhq6BSKAP+i+kxRffX9y8PAsyDI2s72KZH1GbpK+emTx2trvkwDo3Ha uc5l0GlSOq6Mu6bX/M+h1sLW1zguBDQxFsauWV1io6eXrUKvpfc9N26Mci42LuWcbI/T V8xvB8cf9lkw9RbO/iTlBVCZNgUXZjZayGM7Snhrw7xBOdU5KIOCQxQRlBDvMKRdy0cV sMPQvz+FlY6noRM4NsWe4WKcRpZ8Mh/Yx4+HAPZCqNLXhLb+a+42qtgxS/TxRYNwnL9c +MFAxoWljRnT7oLkYU2a3Ar6+8E3/ihkWjaxvyp4cU/CuLw4q2byEPYjkc9ulTGBv9zG HGkA== X-Gm-Message-State: AOJu0YyB31OjHuPDcDm2YnBPPP8CR1/UOhPIEVLgoks965cNVL4yIPIb VBMnvai8ughqRf5gKCAII6U1QB1sUbsLHn+LbcIFCCeJML7dcmmA5ctTQ1otM0ck51Taj25v9Pk Hkw== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:6d0c:b0:61b:e6a8:a8a with SMTP id 00721157ae682-622affeb280mr1228217b3.6.1715284931252; Thu, 09 May 2024 13:02:11 -0700 (PDT) Date: Thu, 9 May 2024 19:58:22 +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-31-edliaw@google.com> Subject: [PATCH v3 30/68] selftests/memfd: 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 , Muhammad Usama Anjum , Andrew Morton 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, John Hubbard 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") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Signed-off-by: Edward Liaw --- tools/testing/selftests/memfd/common.c | 1 - tools/testing/selftests/memfd/fuse_test.c | 2 -- tools/testing/selftests/memfd/memfd_test.c | 1 - 3 files changed, 4 deletions(-) diff --git a/tools/testing/selftests/memfd/common.c b/tools/testing/selftests/memfd/common.c index 8eb3d75f6e60..879d4f4c66fa 100644 --- a/tools/testing/selftests/memfd/common.c +++ b/tools/testing/selftests/memfd/common.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #define __EXPORTED_HEADERS__ #include diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c index dbc171a3806d..e35c6909f0bb 100644 --- a/tools/testing/selftests/memfd/fuse_test.c +++ b/tools/testing/selftests/memfd/fuse_test.c @@ -12,8 +12,6 @@ * the read() syscall with our memory-mapped memfd object as receive buffer to * force the kernel to write into our memfd object. */ - -#define _GNU_SOURCE #define __EXPORTED_HEADERS__ #include diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c index 95af2d78fd31..ee019b57bb98 100644 --- a/tools/testing/selftests/memfd/memfd_test.c +++ b/tools/testing/selftests/memfd/memfd_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #define __EXPORTED_HEADERS__ #include -- 2.45.0.118.g7fe29c98d7-goog