Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp190025lqo; Thu, 9 May 2024 17:36:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+GynGWYdL7xUqDn0jLMoNVUCaHdCoICvlK5X2LMjumryv8rRPtMuVustR0p0UlL6Bxfq1eeZdijhTT/Abc8lkNSWKZZm18fXCD1oZZQ== X-Google-Smtp-Source: AGHT+IHHzi+pH5OzkiVIOdERwfiwB2cveQ5dqVcr3wQIAQ0WmSjJBq0kLJeQFDUDogfwRDyMC3Ds X-Received: by 2002:a05:6870:659e:b0:22e:7de8:c745 with SMTP id 586e51a60fabf-24172f90910mr1302967fac.56.1715301394771; Thu, 09 May 2024 17:36:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715301394; cv=pass; d=google.com; s=arc-20160816; b=U9US17JlfszNRgSN0RQ2FszSZWc5WHgPb8zHMJdmqaJgGR9s4OVIBi43l6xbTY1G0P U9GyoO1WqJPliazKHqlfZqYKyyUi6YKg+p+Lgwne07Mwi3xS0ojTw1BHute8bTcXin7X fe7uK6jQxDvkFOEEYsYNvI3bLDPg15CuwECgFg2cZn4nsT0/Yo1IZBnL8FGYTn/g5nob KgMrVyJCwrsNi+GC2TLyCebSTceWvPBdzicV9nd2zYPm5t+dbFmMCQfmF6glVcofUR50 z5pZk298fq9e+IxpfZOd0jSb+8sC7q22nimzt4B34jfceufVYH/DJVBTT6kXiP0VSXMI 2m1w== 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=kMcDSSxWXBrY3fYB5DMyoDoFJQzub0IzoWq/+JBZ+ak=; fh=3QunbbxwS2krlZ4s01UVMEREr2oOXajYkZa0uMxoA+Q=; b=GgUXSOCkFYRNwdfE0CxkpYgnzdysCRqW1vB5NZ5ZhGWF00xlTDhjuR2qLdYNClZnqX n7zzVO0m50lOjnfuh73JGgAOk5p+Xm4WuhIQnWwBVF1Fcc5dReT7rq3G3T++UCz2ySlw YfnO2R0wmAfdob50HG8EFpzh38s/dUIVCgUp9pLDf5r3SdqJDlpGmL8hYkdubPBvXMtj iKlOAMhBPg1hlvMisyJwjyjlPUuh6V0od1kOMLBQ532uW6SVX/3Qx5R+JvD235ZpdiNC SJS/9oDHomqEuCcy3qyfqqf4H5km34JcksOdzPsE3ImFd3Z/tGlW+YQcP4MRPpAzHYTi XCqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SRNlLLG1; 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-175136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175136-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e82573si2324944a12.117.2024.05.09.17.36.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:36:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SRNlLLG1; 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-175136-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175136-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 01E6A286EF6 for ; Fri, 10 May 2024 00:24:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD86F1386BF; Fri, 10 May 2024 00:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SRNlLLG1" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.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 936311384AC for ; Fri, 10 May 2024 00:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299860; cv=none; b=EjXD37y9HrvWCYylFRxAKEFSOVr87b4tqvuwnLRQ1B8vOv6TX6wvVitJoGx5XG0PZJ8tm3Ab53Z7ufhwlEz+AEbzETJb5YQvBGAVCJFmFzjxQuIFxeH4//fCTAR+/ktsfok7XmKy0guNbwSat7QcdRsTUtFNf/ijEkedPEf1JWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299860; c=relaxed/simple; bh=PlH2ryvPza3XbatvZGTYKmksy4ISV5hABhu+UnwWsg8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HRIVJ6d4VebmiX9waAMhIaJ+zsUmp8oe3EKCnEuLm2TPq/ffpbwd/uqYpzoQTZAiXXy2I+xgc5TCGLg9uD5k6n7YB7s3R/nW4gmuh+alxABTbTzmJ6voEvqhciLwhwLPvZF+/jrBc3SnGiyP6Hjn6QwJ/bi87unG+kvlpYhBOPk= 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=SRNlLLG1; arc=none smtp.client-ip=209.85.215.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-pg1-f202.google.com with SMTP id 41be03b00d2f7-5c65e666609so1306205a12.1 for ; Thu, 09 May 2024 17:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299858; x=1715904658; 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=kMcDSSxWXBrY3fYB5DMyoDoFJQzub0IzoWq/+JBZ+ak=; b=SRNlLLG1rLsx7c+soEyyP5hu/oiiUg9+ibCJz6sYafAJqdO2JGoLYLbd+Ji+d8uKYP 7rXbcTvDIJ0GCQKGct+Qm+HtYYdp4Zf2G2eAjz/f9fTYIqjpXvC2oHfvjhLC6SSzG0Zi NOEMd0EgWsAM+npOYUdQPe61YgQIuM9R12qEb32EjQ3m0xcguLvSZOsNm4o/I3jhEmoU wgi/rP832ciASZsrwhXet2vuAWSX1POseA19+ogxrg14i7KoZSN1oyDXQ3QcPEXyUhJi HtMB4y+7gq3cDY8mEc/Gsj5t9Yz+HnACUUtZaGlR4qE3TGl3VzPvWMbSRpB3TPWedlnF nrWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299858; x=1715904658; 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=kMcDSSxWXBrY3fYB5DMyoDoFJQzub0IzoWq/+JBZ+ak=; b=CrHPJrdmszO4hVX27N9EbPyJxru8hG7A2807NOimnMNyzaJo/jjWiirflYdfG6L3f1 TfYhn33ryT21BYjkny8zQAdhyDRQQteUAaeaEJWCkfuFa/2sQao+uXjlS6wUa3MiCs8+ u1U4JcprkBYzUJgTI9dXq0M9wZXDRzJCYGTfCMI/DD7HP7hyF8iN88I9GQFk4z/kGxuS /EzEG/YO98kV4IEifnUOVDIti3T/20DkPSSbygEocxWnqPbyi17bmkNBFpD5C1ySFpiC eyAuWPmYWxQIqjnSrMGDPsrwE/dxMblJxhG+AGTYU7GYZmjnnXJ/4NW8vQNNSZAUov+x fMFw== X-Gm-Message-State: AOJu0Yw8Bc6N7/ZZyYJCGI/IEOUKCEhnZkBZUurgbqv8F1oivQaDpfBR blcGO//EYY5HRh1KtXyElidWUYqw6BmBC/bwSMxhkhI12FjPXnML3A/S2Fyv1U/4H6lwLtT0GV4 mpA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a65:5185:0:b0:5dc:877c:cef6 with SMTP id 41be03b00d2f7-6373c976894mr2360a12.2.1715299857838; Thu, 09 May 2024 17:10:57 -0700 (PDT) Date: Fri, 10 May 2024 00:06:56 +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-40-edliaw@google.com> Subject: [PATCH v4 39/66] 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 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 Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. 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