Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp132042lqo; Tue, 7 May 2024 14:49:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHGG8uwwukXIIEr5ZvUgNiWQWKElBAiWIjHW+A40a2tS84qi95RCMg9NxhDE6Ein19kMGdVE8KiROMMyCltXk6j/vRXeXp4axMLjUZAQ== X-Google-Smtp-Source: AGHT+IGBruZ1UENhyZs1rDl1tpEL2ZaZbSZ6dL39OIJO5ZMDTF+ZfPoR8qeXzNe175339D/LoS/z X-Received: by 2002:a05:6a20:9781:b0:1af:5451:d00c with SMTP id adf61e73a8af0-1afc8d4e250mr922367637.32.1715118588835; Tue, 07 May 2024 14:49:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715118588; cv=pass; d=google.com; s=arc-20160816; b=mOBW5gPFbjRx00ZmJL7+/ylhD3gcGZUlz4qamLL/MpGVCXWDrUna7gijbMFrdql+Hq N9KwEUyhavaZ4LwxjGKjaWkxUjng1eJP4X487M56HFeI+8AmvjuQKmGhGu7pCTuEg0Mr XT/BAndZr6Q+u5N+o9HV/jJi1t00MDYIRoNcnVClOJThC+pe9lZXxUsU8rJZl8HbQ+u0 gK6ad5F3wrsT3eMLAvy2nfKNl11FkdbijQIB1EtvIXRBaNpFKF4l6bF4Ld6Y3uA7fqqU woO80UJv2mRUrnwKxN3od6HGSpgKB6/LzjurqWjnmsMvsEpgM0aoa3p29OSTGcK56cav pu3Q== 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=GxXvLzcq9DUcgwih3mSAQ78x/pV85qLBcUXkypaveog=; fh=U8gRD2fgXQXecyrh0lwm2my7Y9ltA49meS4xHt6+P9Y=; b=AgVcdhmmbHiDt+awklKFPooraGcelLD1uW08DseOFAqyi2aH96/1lD1u5Y1KUZCm+1 gZ8YRiZN7bvUiMr0Fz8Virb7QVupRLBqIPY9C8gLg/pjneAvnLQyjHd2ZN4xz99fmuAS Ci1rEbDh+otmP4uuUxMN1+XrfwnZDQh1vEjolh1Jpa0Bqkx2sQDI5g6vCI59ZmDWY4Lv bxW55nYt0YkH40xAJrPjlOnGPJnZS7ozIBKAq6vsD/fgwgNW4DYrb470vpUErUXdOx82 FXbEPOdXqQR0rvSTPxW46zyvPT+3LzvmYQYR4dc8uTaXPd2uFo2oUjBJYrDq6Qj1Lrp+ uo2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jL8djN5v; 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-172229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172229-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d4-20020a056a00198400b006f456bb9c1bsi7760529pfl.128.2024.05.07.14.49.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 14:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=jL8djN5v; 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-172229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172229-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 D6901B23215 for ; Tue, 7 May 2024 21:48:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFB5116D4CE; Tue, 7 May 2024 21:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jL8djN5v" Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 0302214D2A5 for ; Tue, 7 May 2024 21:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118456; cv=none; b=bi7rdFoVtYFprwU/HrM2XWMRGKU+kOou5fR7EG8d43XbVOpYwWKRsmjq5yDvR1mYm4r0Hxg0XB+aewRhh1wvsjHXRhadWiZKTzvpvC2jL4j47c23gF6kgghYeNaU4QXQS1PPanKJUBhdYJR2XqzzWzERqTngqxjJE4WcINsGKUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715118456; c=relaxed/simple; bh=rWVD3Les6HNzGCMpjrx8KhL3+oCBlnrsvxNQZUeaa0A=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=S5tmd9TKXMrhW43TxqU77ZX92xzrLDsvAzaTPn/TfPz/EMeR09yvUBL01JLyIoUtjgW3EYvFC6h/xfO9Ho0qdaMufoxNo8od2n0U5DS4VtA3XYWt1fBFJUHlC0qj+butdZYfDh5WZWmxEkp2MeDwUQytpB8FOuWszDtJeFKEF8Y= 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=jL8djN5v; arc=none smtp.client-ip=209.85.210.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-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f441afba80so4404478b3a.3 for ; Tue, 07 May 2024 14:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715118454; x=1715723254; 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=GxXvLzcq9DUcgwih3mSAQ78x/pV85qLBcUXkypaveog=; b=jL8djN5vEO1m7TfEJ+L81YMFiHGDVolLVgM6fa5VYQ5mX/IYtVDh+74U6/qqObTmiJ TGznpSJeelnL0XnJATpD9OKYwW4HcBEy1z6iLfyy4XigP7CDqBXeQVB4iZWUyVAaR8ul HygKiUy+MquSUbKGVV0Yy3+/sjMqKsWKsORp27ZuE5ZT2uCMb7q0Ab+auS1b/Eo4KbxS 0VgZyg4Cu3vh+Nud0IkyWZ1h3I5EUMMpbE79VNLZV5bg86NyetkRNO2JGQsA3Mv7Q3CO RQfRjJ43cqv26Y7CDw+l7cn6dUYEdkAnCOIHYaR9Ksq978wQ99DLauRRXD66BI8m90Nr BFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715118454; x=1715723254; 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=GxXvLzcq9DUcgwih3mSAQ78x/pV85qLBcUXkypaveog=; b=FrVOLRyss1HTMNhEGWXRdlIACPwRKePYFSVzI4GdDvi6FdaRVFB3Lwo8uHod7hCKXk wtwBJ+qbSdIi7+g+V0hEef0vrHd9I4kgGaoowXWNqDGjLzX/ItoI40eWduBVYPUezlSv SIKMYmL+y7Ua7yYMmeXhjMhWJFFHvL+m+W9+w14jGlaJP9v/dXEChfxe6Ch10YXls7Ew gRW6FbaeQ1yjkE/QIlFjHjClugbBukUd6tZGUlrFGUJrZrBQn8Mz9tAqioH+ybd+AdyM IvFW/mYzzhZ2bQWxBNi5juIdkNjklK/53MJ4F43UF3Gh8feNvLnvbaIhSmlPDS7Q+acD M1PA== X-Gm-Message-State: AOJu0YyksG0ZFuwxKay6XNNg5I6X8Hj7QVOKmi89UDPl3sPafdKY2PaA 3YdN33s0hUjviIcdxd8o0Mw8t/4Hk229EPmv2MCbopLOcKUEK0BlHa0idfIp6F/2dLXUOvGiINq iDg== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:1803:b0:6ec:f406:ab4b with SMTP id d2e1a72fcca58-6f49c30a0e9mr48385b3a.4.1715118454141; Tue, 07 May 2024 14:47:34 -0700 (PDT) Date: Tue, 7 May 2024 21:38:30 +0000 In-Reply-To: <20240507214254.2787305-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: <20240507214254.2787305-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog Message-ID: <20240507214254.2787305-6-edliaw@google.com> Subject: [PATCH v2 5/5] selftests: Drop duplicate -D_GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , Catalin Marinas , Will Deacon , Nhat Pham , Johannes Weiner , Christian Brauner , Eric Biederman , Kees Cook , OGAWA Hirofumi , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , "=?UTF-8?q?Andr=C3=A9=20Almeida?=" , Jiri Kosina , Benjamin Tissoires , Jason Gunthorpe , Kevin Tian , Andy Lutomirski , Will Drewry , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Paolo Bonzini , Sean Christopherson , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , Paul Moore , James Morris , "Serge E. Hallyn" , Andrew Morton , Seth Forshee , Bongsu Jeon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Steffen Klassert , Herbert Xu , "=?UTF-8?q?Andreas=20F=C3=A4rber?=" , Manivannan Sadhasivam , Matthieu Baerts , Mat Martineau , Geliang Tang , Willem de Bruijn , Fenghua Yu , Reinette Chatre , Mathieu Desnoyers , "Paul E. McKenney" , Boqun Feng , Alexandre Belloni , Jarkko Sakkinen , Dave Hansen , Muhammad Usama Anjum , Edward Liaw Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-input@vger.kernel.org, iommu@lists.linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, linux-actions@lists.infradead.org, mptcp@lists.linux.dev, linux-rtc@vger.kernel.org, linux-sgx@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" -D_GNU_SOURCE can be de-duplicated here, as it is added by KHDR_INCLUDES. Signed-off-by: Edward Liaw --- tools/testing/selftests/futex/functional/Makefile | 2 +- tools/testing/selftests/iommu/Makefile | 2 -- tools/testing/selftests/net/tcp_ao/Makefile | 2 +- tools/testing/selftests/resctrl/Makefile | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index a392d0917b4e..f79f9bac7918 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 INCLUDES := -I../include -I../../ $(KHDR_INCLUDES) -CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES) +CFLAGS := $(CFLAGS) -g -O2 -Wall -pthread $(INCLUDES) $(KHDR_INCLUDES) LDLIBS := -lpthread -lrt LOCAL_HDRS := \ diff --git a/tools/testing/selftests/iommu/Makefile b/tools/testing/selftests/iommu/Makefile index 32c5fdfd0eef..fd6477911f24 100644 --- a/tools/testing/selftests/iommu/Makefile +++ b/tools/testing/selftests/iommu/Makefile @@ -2,8 +2,6 @@ CFLAGS += -Wall -O2 -Wno-unused-function CFLAGS += $(KHDR_INCLUDES) -CFLAGS += -D_GNU_SOURCE - TEST_GEN_PROGS := TEST_GEN_PROGS += iommufd TEST_GEN_PROGS += iommufd_fail_nth diff --git a/tools/testing/selftests/net/tcp_ao/Makefile b/tools/testing/selftests/net/tcp_ao/Makefile index 522d991e310e..c608b1ec02e6 100644 --- a/tools/testing/selftests/net/tcp_ao/Makefile +++ b/tools/testing/selftests/net/tcp_ao/Makefile @@ -26,7 +26,7 @@ LIB := $(LIBDIR)/libaotst.a LDLIBS += $(LIB) -pthread LIBDEPS := lib/aolib.h Makefile -CFLAGS := -Wall -O2 -g -D_GNU_SOURCE -fno-strict-aliasing +CFLAGS := -Wall -O2 -g -fno-strict-aliasing CFLAGS += $(KHDR_INCLUDES) CFLAGS += -iquote ./lib/ -I ../../../../include/ diff --git a/tools/testing/selftests/resctrl/Makefile b/tools/testing/selftests/resctrl/Makefile index 2deac2031de9..5073dbc96125 100644 --- a/tools/testing/selftests/resctrl/Makefile +++ b/tools/testing/selftests/resctrl/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS = -g -Wall -O2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE +CFLAGS = -g -Wall -O2 -D_FORTIFY_SOURCE=2 CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := resctrl_tests -- 2.45.0.rc1.225.g2a3ae87e7f-goog