Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp52752lqp; Tue, 21 May 2024 18:11:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFHe94aEvI6IZgP0DcxFY7wCzmGULR9PhbVIE5hNVQ1OoZt/UgjR6Ikcf+PlrwtrkHA6VVS21BS7v/Cu+FwaoLcZnhbJh8a/UsGAAP9Q== X-Google-Smtp-Source: AGHT+IHp0cmdXmVV4mPyxx5w0cFFMVnSUK2+ylFhldU1LxGl+VCqoYUIcNFhO++NyA8pCOyJOPsJ X-Received: by 2002:a05:6808:3b7:b0:3c8:69b6:9b7e with SMTP id 5614622812f47-3cdb5196dc1mr831050b6e.7.1716340305691; Tue, 21 May 2024 18:11:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716340305; cv=pass; d=google.com; s=arc-20160816; b=Q0qH6uxTpnGzpN8jpko9xzdjb1TOw84fNH2dsBECgRLTNL2N6ySoEKDuImV226wmTG +ufJYSUDvTLY+i843YP4CkNhTdj38ZmzsAhSnCl60xRxJMq2T6fL7QTHIkgCmdQCyjg9 YHlVrW8uRVOeqC/xsV8rl1jwjlxuFrAWyFDFr0UKXKs2U8layfna4/6QWV7bEzYxsVTu yCu52S/Ub/g2I/MOxvNHJuCOWyeT92NEfiBN77vneqbQw6hCezzmls65DNFd1ZF05/dE /iecztJLR/kFprW3kGEv0nd7KvMPjcgl/JaQ03GwckZyiNn1+zDeLu/Yiyogjx900Wx6 y0lQ== 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=N8L5ENa9saWnWy7VMZgJQvy8O2UHKdWgDS9fdPg7qj8=; fh=ilS3pUFyDrcCUIYz3PycK4DSHlkhJ1fOALY00/bRZAk=; b=xhsDqBMTKv2bqySVZehqFePMch4JyrutRgH4/wO8Svoa0sk/lK0QZ4VuStZchQYCqW JcST9qeBCg2LT3vlscqkxE9zoZ4WfbiSRaPgAAGTGLOzz+cB10qPjfG9s9OXrnSkuDxp 7uERkQjNWiUVj+RV2NzJ8rcn65nuEuXW42NRhT4JJWTZU2dL2PxExwAvyzCOO0NXAKFg S+qRcYyOKqVM5oiZjNs5vxmcMrta3YrRqt0redvjHOWRXWPOxfpmji3llywG7Oz9aKJk 5oLAo/2cjRVYjgekGuP1MYOQ8Gw8q7TC6mTEtHkiIoTsCzAAnU/OjQ8lQtDLXv+F1kJh PkAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=k+aoStCl; 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-185605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185605-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf277d94si388092185a.28.2024.05.21.18.11.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=k+aoStCl; 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-185605-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185605-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 61FC61C21C4E for ; Wed, 22 May 2024 01:11:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46DA814B06E; Wed, 22 May 2024 01:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="k+aoStCl" 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 D24D814B95B for ; Wed, 22 May 2024 01:00:51 +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=1716339653; cv=none; b=fwzgCmuCGdS0AKZF+QpiY7pNE1bFKOQ8Y9iJNsjPPRuoBZYDVwJP9MTJOBDqPokZgTL1ZzcQgJm0za0xba1HPE0ScqL1sVl+iWOwDJbpsxca4Sh+aUFJf+RvH+TXJQLeq9EhwDvLupILh+8RVPrBJq8gslqWszG9gs5W7hDJwvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339653; c=relaxed/simple; bh=7z2cK/G7kUfriq3IqJdcywskZOy0/wDKMEFNF/o0umk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=LO9msjF5ewl9Ycc0GbQx56QddhgSz5Id6o8qsM1g7sPMcaS6KFwTw9c5pnScvgbRmaSM9QrqyK6MKUOhSZdbZngfioMAO9nDHtRC6dqzOGem3CUV1Plzsz1iVqtN26ClACJG5HBss0FDkfPArZNquYBZ9GFuvzRZYQ8+6wVE/C4= 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=k+aoStCl; 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-61d21cf3d3bso234783547b3.3 for ; Tue, 21 May 2024 18:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339651; x=1716944451; 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=N8L5ENa9saWnWy7VMZgJQvy8O2UHKdWgDS9fdPg7qj8=; b=k+aoStClS1UiazscDoVQLOM1WVf0RmO5j3vCzdBb4D8uC0FairiuHEy4kDINYQG92Y 5Yk4v7MdtvSR1nCWWK9aibo9JsUKXyXIe14d+RHL8dNZkKw4toInGYos+KiTJTOIEWPi tb+uRifwGfehat5dUl2AyYXhlw1MuLA/gYufpEuJifwEF8OMZdgZJXjOebj7ygE6tTSi 22Rji/im/i2tUWn57HaSd1sFPousoaAvCyWrUJS8oa5yfLdY1RZ8/8q2cdLUSbsLWYuA AaN+29Eo+pEOyivrB6z0OQDnXxKLMUg9Kjcok0QYXhpwuUZ5RiNvrGspG2yEGUMEs18W Dbeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339651; x=1716944451; 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=N8L5ENa9saWnWy7VMZgJQvy8O2UHKdWgDS9fdPg7qj8=; b=Ir81K+RrXsnnWOvnFyMd9dgO8yiaz5NSXLM/97U/PtLhmmZ+kxF8cqnH1NKsWU6emy o3/gW1FmFDVOe1U8jbSaAq9XwSo3mEZG3vX3Bf0NQSk9dAOygGhk/b7w8hDgVXGRcU3R I5sHnAuaAw/kGnmba592yXDsYIK/sdHbn9zVuxuxoIKJ8oFo1e9eNw3JNtNju+7S/5e6 enoasxPNR39nPsPWDJZ390gMqrl/o7EiWluKa2QHkE85akMxsx76BRK64wvMIJ0L3hpj 6PBFBUfpr+SNtiwqOp8ETZBZSTidYgVi+dpg3tiSBIxbG7B8KwI+KCyvZRTb9EC9Kdyp lgJA== X-Gm-Message-State: AOJu0YzyhSEXitMMTGtAPCrKQnnL9bpDA4wuzqYixNXkR3t0qi6hVL4q q7GWkX9zNH/jkfvvazj2K0FqbcY9gja9ib1Khwk0ChgCqdJO5yfcKJ25iUX9Tg+fOdg7vOVCmZ+ PMw== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a0d:d5c7:0:b0:627:8b31:e81 with SMTP id 00721157ae682-627e484a333mr1542497b3.5.1716339650801; Tue, 21 May 2024 18:00:50 -0700 (PDT) Date: Wed, 22 May 2024 00:57:15 +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-30-edliaw@google.com> Subject: [PATCH v5 29/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 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.1.288.g0e0cd299f1-goog