From patchwork Tue May 7 21:38:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13657867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63960C19F4F for ; Tue, 7 May 2024 21:47:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E8AC06B009C; Tue, 7 May 2024 17:47:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E3A576B009D; Tue, 7 May 2024 17:47:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDB146B009E; Tue, 7 May 2024 17:47:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id AF5AD6B009C for ; Tue, 7 May 2024 17:47:37 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3C573A0C12 for ; Tue, 7 May 2024 21:47:37 +0000 (UTC) X-FDA: 82092936954.16.291B1EC Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) by imf02.hostedemail.com (Postfix) with ESMTP id 7655A8000D for ; Tue, 7 May 2024 21:47:35 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=odozwI56; spf=pass (imf02.hostedemail.com: domain of 3dqE6ZgYKCNsBAIF7TDLLDIB.9LJIFKRU-JJHS79H.LOD@flex--edliaw.bounces.google.com designates 209.85.210.202 as permitted sender) smtp.mailfrom=3dqE6ZgYKCNsBAIF7TDLLDIB.9LJIFKRU-JJHS79H.LOD@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715118455; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=GxXvLzcq9DUcgwih3mSAQ78x/pV85qLBcUXkypaveog=; b=hocPai2Nw2NaxI/Zjrj7mUdkCC8fdPoyyDBElVMVxDJkQu6iJGYgk1EF7tKKwvO0KCbD1W hD+QKZ+/fVg+yGq3jYq7YtRZdJKv/GASbmRA6yw6vjOS4WCmDFFfhsRaYokLSUN1/I9CJ+ DhGpStCc3rvPM+HXa/eNRyu8z2akuB8= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=odozwI56; spf=pass (imf02.hostedemail.com: domain of 3dqE6ZgYKCNsBAIF7TDLLDIB.9LJIFKRU-JJHS79H.LOD@flex--edliaw.bounces.google.com designates 209.85.210.202 as permitted sender) smtp.mailfrom=3dqE6ZgYKCNsBAIF7TDLLDIB.9LJIFKRU-JJHS79H.LOD@flex--edliaw.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715118455; a=rsa-sha256; cv=none; b=3VTPLar5aRAJFQXkP+efqzwwkuIQQC5lPNzRmbTZYyltS+F9LA5Z2ssEWJfE+cX6HvxOyg f677p+xihe/8Al1kLuFCSrQ7eswhY0NPrQFdozDw9iUsFDhQ9VQSrnJXgsgLCv+D7UQKIv DFTcfmmNlAC5L7x/RrIqIkNZdI4Vo7U= Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f454878591so1990307b3a.0 for ; Tue, 07 May 2024 14:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715118454; x=1715723254; darn=kvack.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=odozwI56DHEnBrUtbe9FKVvVwdl51MTAkYetVxbBFudkHEAKUoCYxK/DuTBBWY6Tjk KsXQQ3nrDlrbjI2WTG48pD00BGXySTGM2YVUn0f0EEYHbfYRKt2gF1tSIOs/qzkmt1R9 nStnugGEXQuFVQVFKUxTJTQBwXW/Jm9HL0Qcs1YL/DzOPgJs7ZG/MqwaztHkhS4B6NvW wILptFHqwJv0USbLjEZugpfLbvHEl7PiYfETbCaXPDXE12whHTSMOgUukC8enVd6+ovt RhW8XzMsr1HBXGXbksj1jERdDWtq+OOZpCSO5mop3Odqjznnf9GR6S6alm/qSja9kjl9 xbzw== 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=lFRcSUyedFsf2GTMM1BNKuKMCyVvbUBhtdVM7YswOYmkC3Y2Ft/22uZZlJPBmzigYK QrArrF/Ei2roR67LbknB/m/BpOPqy+fIGtsv2gFaTqSibXU+aEBtz+eedkBo4Zei5q3D 8S9wJ6k2Qm6AfUPO0YtsKpNuJZbhQOmxfIDb8MEqEBXb2hZIomYMh0xfaPPeN2Tx/2XF b52AYLbVuyD1WesZ0RhYeaaJddFJx4veFRIZb1WHlQY9S00DiRVFYuYPX5hLDiJpXY9i ljPlCU7u3bwQ7XBuH4PGMP5cWDJWlgeHKOt6RlslgxlGIgiPqXfKMlQ3J/fI/0MrOgAy ddvQ== X-Forwarded-Encrypted: i=1; AJvYcCXHiG8nlPf8Gyp+Gx5r/2O3cim81K3AvM46zWYIObQ0AO0C48btlp+RKuXvdfCsz89Rxx4gqkD88fOsqgaCk6gonf8= X-Gm-Message-State: AOJu0Yz7ahUjctduxcwQxRs6hu7b6WG7/RpWCvFhZ350ZQSPNLTeosom b1+Dq00lrKTKrDg4lIPo4+v/oqBJBAWRSdyGz58tKm3TvSSOryM8hb9EHa+XLpFmf2qRO7Xb2QF z8Q== X-Google-Smtp-Source: AGHT+IGyIuHby3YDnVxOzNzbbaEdY9qKdq7MpmWxi3fRJ7Znvf9dmfYdSTbgOYiGfgZmNPwJBeWALvgDPEM= 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> 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_Almeida?= " , 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_Sala=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_F=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 X-Rspam-User: X-Rspamd-Queue-Id: 7655A8000D X-Rspamd-Server: rspam06 X-Stat-Signature: gqoz7qkbmnouc3wb7499k8kuggnwwz4h X-HE-Tag: 1715118455-512517 X-HE-Meta: U2FsdGVkX183iVq7LOy5shxfG86qxz4OJDNpuxKZvkZh3lMyi5EcBJCJOgulBh5lBnhke/9/z9q6Y+i9hj1wQqeAfg96CMccRfqlswspGj1ro9Z3pf2lxx3Xknvrcx5GW1gGGeEGcCLb5CSvMgyVAfP8lOgdP+uGUb53tJ91rd7nrg+0v/DGXVgTkHPQngRQsgmuInVrA9HVz4TAUJwtLLi6YRBKouSU7BSPaIoaWMdW2CnY5a81i+A2m1uXvvUhrmHgwl4p4AH9bMgUaKx9z0dLd9BpRlwb34kiTZ4PMrcj+t4WG2IkvfLz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2rq+N1WZlyuYU2QvIBuGkfE6b0Mx3+7fv/GA7NMYXyXhtiQuSQ7SM/TySPYorVZHZMELYOOFUeeUuWYyr98GW+RwMCWM9OfXjDE9J9keGxJ9dLLsUPQLFuLPrwce7/HHznlk1djdn2tGhEy1Ngup9+RNXjjolIol0YSMK57wRKbGe+81mZHyZkC9DE6B0DpZ8GJ2jSNfnwBF3TEf8FS21zi3xNpKiKV+aR5cA102Z6Rx3ncPnUB1TpU4et9GbyxLser90XGN+06ldOXiTQMAuigEEaEfxI4uIcUPXAVSM0V+OHL4Hs/NOdpaoL1AQt/DZX7RElgYKsKmAX6obHnhhImr2n X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: -D_GNU_SOURCE can be de-duplicated here, as it is added by KHDR_INCLUDES. Signed-off-by: Edward Liaw Reviewed-by: Muhammad Usama Anjum Reviewed-by: John Hubbard --- 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