Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp186270lqo; Thu, 9 May 2024 17:25:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUbLWg8pLI92U8fnQ/NOfBovAFCwOLKGovAbps65fP7eM6+0UztZa/SZHaaaKfImFn/vYutgg8vewuK/NwyySf0c2I9C8W25JT3ifW+g== X-Google-Smtp-Source: AGHT+IGYK6MgLGOIY0SplQsWr4O1GS4GRRaIsUJY8ExgvP5BU/BxIk3VA8CpykDbfr0JhGyTHpq/ X-Received: by 2002:a17:90a:b38c:b0:29c:5708:b922 with SMTP id 98e67ed59e1d1-2b6cc76f920mr1247690a91.26.1715300758396; Thu, 09 May 2024 17:25:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715300758; cv=pass; d=google.com; s=arc-20160816; b=JRyRC0GhOErIqLv89O34DTZiyaDQqOS29HCF3Z68lYvkqYTda7Yi9u2yUpWwG0ae3p TCpMvPjr4Fj1Qw6vh/G5TBre45Dqvxi4irQJMLMAWDUoHOOpVo1u5GeumARnfBLz47Ek T0kXszRhI0adaLr2FtXMmDXSIAS1cHFbpRrh8i639xFxgMnqT2vUzvg//v7nHlcOxdAp VUag5WOw0Qru3O6lOJ3cSNHdIrmpWeUXx4hiEEMU7A3bSkNzVUOHZeJBIJyngnjS27X8 e1h58sVg3zWN9v61SjU35Ua2bEHGJJdcKom2GOn6GjOkbZlyxuWW2JODvptUHXAvzxOs Bhnw== 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=CIHvn5ASgOV//V6BNzY0OrviieFVRwnd5gLwyJxh1+U=; fh=ilS3pUFyDrcCUIYz3PycK4DSHlkhJ1fOALY00/bRZAk=; b=tTWMtciZOq+7tQ51gwERkli54jj/z4NfiRC0mxVHKAwHJxF+ODyi5IWbszhnQr3vg7 JcZmhksicKm80UftPWMAFR+aMAPU7PrNzc0tKBdBY3HN8iHCTv5VTzQwz3WyRcvpZGxr ifyNmWwro8Mo6fyDNjNDMphwDsUj9mhrs7mcUkQevSp+Bd5hP1Q41B8GF5GYTSWmcWMM vtG8lI66VVT4AR3W9yhbuFZG8Cq/falFTMvLVYFHJ1pJd4fJ49/5cJtul8JoqxThhVOe c584rxVIm0hPv7ExkFG9CnPZuiARItKlX+yAlin0Vb51Mqby9fKOcRV5bJhCBdog6EZc smpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=U5fH2WnU; 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-175124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175124-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 98e67ed59e1d1-2b670f4e136si2464004a91.49.2024.05.09.17.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175124-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=U5fH2WnU; 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-175124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175124-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 1B709B22CC7 for ; Fri, 10 May 2024 00:20:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DC9D12FF64; Fri, 10 May 2024 00:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="U5fH2WnU" 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 C41E4130A4F for ; Fri, 10 May 2024 00:10:21 +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=1715299823; cv=none; b=h6AV4DBjMQSSkYlBbctc5TrAdVhAkATj5bxiLDgNyCPsomzsjPucEnqOITLTnJLohvWJdvJ2uc33C4DH6jP9VBmCyOeffD7FYtFUMtKWp4vJxkZTwQADTvldZmjP3dYXcUFoc6+VGLikCJEZMS4TZKYI0o7ld8XU2q8S6ph1+bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299823; c=relaxed/simple; bh=WSbmL0LnuDKSdtiQc6/wE0rgYnIRiaY1PmMLEAON1gc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=CJVLKDtbyK47pl+DvaaIsQe9P+0rCYxdBoV5W8X/XioeLwkK1QQ0TYDz8fUVbIAqPQWwONBFg3IVvkce5yYSbxze+H2wPioVpl0XdxcrEK9z67BtoBfckEJRL8HQYlfUpcNzwNTVDgsHWNms1U0fOHVX0rZM0KELkdngTN+Y0tc= 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=U5fH2WnU; 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-61be26af113so24461097b3.1 for ; Thu, 09 May 2024 17:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299821; x=1715904621; 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=CIHvn5ASgOV//V6BNzY0OrviieFVRwnd5gLwyJxh1+U=; b=U5fH2WnUq06ltRxs1Ir8ZSipfeb5k5NmAGWtW+q0tA3x43RiaFctL50LH53hqL3zAZ ddqhMBnZ02dIPYF+8jpj15ZjP7z3vD9er/W8v5+ymGPR4uGPWjwKRyAEY10bpIKl0LOX W9jQ3d6c50PtnLNlJ4TuMQAE6SYozuDppx96TlDhaOxci/4zHmsmWr8yolG0Q0b6aoNY 86kF/Pd1/pyLYLA3pUR8x0g1qbLS3/eDEp+nXnZBvjUjo5squnLRJWvCMLG2TXWJd044 YfemPbJiI6HTTEW/xVsIhMcCpXebgU5roVOjTGUVJ3EEdF2g2Ji1rRN8/NOFxGM12A6u ulaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299821; x=1715904621; 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=CIHvn5ASgOV//V6BNzY0OrviieFVRwnd5gLwyJxh1+U=; b=WtEdO1JLQvNWqFWYUuZvSrcyYWyM9SSzosOc0j7PXPmKnezP47GHicr8gKPQ+eLU14 SHI6lKlEvoQN0dHj9ATGUMI2/7Ttps3qCeYLaqMEGHKvtin7Z4tE2GoeFBP/+oqeDwBW CfYnX7c3Ex3jtPEnshzeJhUiHxmxJs0GYnAM1ZEWYDrUR+fV57djQw9eNlf1fR8wLB3N QzNk/DdXxrNae/pyp9W1HJ8hyCKoPqI9NOVbEwbvo7yBNpJniZqQF9gyFkiT760EPtGS iV99TRw1Y+4aFrW3YTRyOS8nSlAgfqvPJaTycvLo8fMODScifF5poiciQErYxxmdD/qH YdXg== X-Gm-Message-State: AOJu0YyN4ogocSnYDU6sTdsyn4FEQHDLNgA+5azojgOpVLM0iKzpJNKX hiGMwTz5ip1zWPiEN/Frq1p589osSH+/y6Wb2709HihdqecyVXn27PATQuSJ1vwwiaqARA/VGDX RCg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:690c:4b0e:b0:61d:4701:5e65 with SMTP id 00721157ae682-622aff90344mr2703587b3.2.1715299821016; Thu, 09 May 2024 17:10:21 -0700 (PDT) Date: Fri, 10 May 2024 00:06:45 +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-29-edliaw@google.com> Subject: [PATCH v4 28/66] 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 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" _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/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