From patchwork Mon Jun 24 23:26:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710331 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF1C6C2BD09 for ; Mon, 24 Jun 2024 23:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RpzDsrsB+XoK10Rc2/IHShEjEPcwTmxyXgUNqg+zTCY=; b=Sz7kiBUP3LxJ1bVnTA+9oHxRKJ Rx4zmQHHskWAk3px/0jO5iG7sQNsPhUILREqFyE97Lcu283d1obwYISp4FCO0w+D3zClzFMNqHwQ9 0TKorcGn2CnIuypDVgisP2QvEiPnkBPZ5oe7vWcGs+lzXcXeTyLf0fddxUmniI0f8hS/gie+ZyK/n m8qZP3Zbmvf8WeodAVeOOciR+3KeZoKssqcfQZW3IgyVlxfkHNuIu+9QLpuvKH0BqZwXYpqqaSwu6 O1y8DXuYeLrKFvEinkeu83+jGXfm1vmxTvIpJ4+OM8kv16N70lYOiKbR338MICCn6K5rVukAIVnNp SIJtRicQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7R-00000000xsI-2hdn; Mon, 24 Jun 2024 23:29:05 +0000 Received: from mail-pg1-x549.google.com ([2607:f8b0:4864:20::549]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7O-00000000xqa-3VCC for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:04 +0000 Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-6c7e13b6a62so6217240a12.0 for ; Mon, 24 Jun 2024 16:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271741; x=1719876541; darn=lists.infradead.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=3FvMNQZepmevKVYCWA5Mvt/tIAvZEAV28z8ZXGZ1r5A=; b=W6LDBL9grG0BFsFEbKSTt/EoAU1X6agchh2ajF6S31F/QFQPD1rhnv77ekIdJs7cYX nlMYHPbpEqYa2OKTCgHb4va1hZ7AKsFC0Sb2I/fXyIqVh+poyiaZzMKI87k3kc7vNWjx eS/Vwrxj7vfBQxl1T3T01atetAOq9Ly/HuKJatSEjTIUQrHJTfd5RxghtYV51xfOlr2G L4t9ZVJnss0WVQFMAr/fQmSAvlJIX2f1zxpWhJNt9+KA5lCsbOAjWUwAYbKLpkiV+hBm 1q6x5P7K4uynRFuJhgdxkb1PTtDgsmW3D8yrS0mHVm0YG3CzORlR8qj7Fwj7UEWZy5xt 2Uqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271741; x=1719876541; 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=3FvMNQZepmevKVYCWA5Mvt/tIAvZEAV28z8ZXGZ1r5A=; b=iGWAOvZRbJAONI3VvQafkH99B7F7vEBDT9/cvCen2WxWFCRaUwrMmUi9Zedqzr41tR Ia2BLEVJotY1s31duyZha4k86CPdGBCrlNkL1DWv9bWUBY6sUV1qQjb3W2Hb37T8eVeE YutE8KJXzqYZtYSe4E8BYnAmsltCiMhhjSVDelujE34zRdo+xpBcBUtE6LHkp8c2PVnR oQrIY3f687DFnk+LGNevMcTW5f294RrpxL5qEnf8wF3P9PwWHS/N5BX6DA+SlfRLCE1c swGUZymNjxEB6rbH1owLTH/cXW1TRP9ZuncRd9ygMoSVz/xotn7MpH1WPQ0c9D65EFN1 BjIA== X-Forwarded-Encrypted: i=1; AJvYcCVgbhmGxs5FeS4l06Dbcm8wCYDoQ61jCDgLaG9sol588QP68YezeC8wUdZMu6MEYr8w3fq6XJQE9MxjGkA6S5HFy2uH+859Hv3N6lKNx0Qn X-Gm-Message-State: AOJu0Yz3JfxZ06HNCXnDbuP6VTG9Cg97uOXa4YI/QRsn15zwCIKmbjsG 37hDGzFaCeCXq99CzkDO7xfmX8zo5nA10wsQjbubXM2W+gW4CUcBmIx48qidV72Ce5nIsGFfSIi 2gQ== X-Google-Smtp-Source: AGHT+IEk+3lC5zdyxifyt4ii+6a16n1y8uZeO7DOAPkbXtiVBPE0qfgp7g0LpuESyv8BZuXBXF4M/RvaOF4= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a02:4a7:b0:655:199c:eb1b with SMTP id 41be03b00d2f7-71b5fe10537mr20071a12.10.1719271741168; Mon, 24 Jun 2024 16:29:01 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:10 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-2-edliaw@google.com> Subject: [PATCH v6 01/13] selftests/mm: Define _GNU_SOURCE to an empty string From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162902_899365_73541864 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Use the more common "#define _GNU_SOURCE" instead of defining it to 1. This will prevent redefinition warnings when -D_GNU_SOURCE= is set. Signed-off-by: Edward Liaw --- tools/testing/selftests/mm/thuge-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/thuge-gen.c b/tools/testing/selftests/mm/thuge-gen.c index d50dc71cac32..e4370b79b62f 100644 --- a/tools/testing/selftests/mm/thuge-gen.c +++ b/tools/testing/selftests/mm/thuge-gen.c @@ -13,7 +13,7 @@ sudo ipcs | awk '$1 == "0x00000000" {print $2}' | xargs -n1 sudo ipcrm -m (warning this will remove all if someone else uses them) */ -#define _GNU_SOURCE 1 +#define _GNU_SOURCE #include #include #include From patchwork Mon Jun 24 23:26:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710332 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF151C30658 for ; Mon, 24 Jun 2024 23:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lpe/EDakcv8/MkXAQ/Q8HGsK3HEcrKlWn5SWdqPCjzc=; b=zDhx/ZcGvRPG13QWxmNaKl6HUr ACH/5ZECn8FHrHnOiD7+Z4mnBTkcO3MnaVdNf6/iXXWFCSPlu9jXQh8KmMCX2AMigVHZgky4JXF1q gC505UBdAORigzcwKCUB2u60kFgQJ2qEItl0MoDSxYKJjOp4f35l7grqYdYYR0O6U5hFX0dApqSAK s577b/Ql+YrxojKeI3VCs/UtgJztTfhKgmuSaDaimGap3KqppC+ob+SXnSvoQVrxCD8A1flJmCf2O mq7DeCPR9hKygf2fGc2Htnzfn65tvEor1A7lehqtcXZc6Y3hnL1+Fu415+kbSlwggiJDT4iUjL+GV AxPu5IZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7W-00000000xw1-2sYk; Mon, 24 Jun 2024 23:29:10 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7U-00000000xtl-1dGt for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:09 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1f9ec9aae70so38593505ad.0 for ; Mon, 24 Jun 2024 16:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271747; x=1719876547; darn=lists.infradead.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=Y7F8R5HE+eZyxlB2ebQLwW1FMzverfSOUo2IuXKNmLY=; b=pfkAYXp+ZjgEFtEtLOPW9nueYgOyluoXS/OTIwOzlyCpgXOtfKwyu3OcrDhRZK9/uT UdFyfRK4O7YJ8/Z3dLiALB6GC9IPM60uIWbbs8CJ9ejFVrMsNd82oBd4n1LqPCmDOkxN oRzYVWpTH/mOpeqUjqrApHnu1QpSqWYYZNkd3cMRajBHG247W/w2sV7TdNEr8dZbwSvl U3GS/CqTEmMvzoxGTD4ZmgHEv6Tn6rbDpBqb9JreZiRYLqO39XZZAGlhNR8we4X8uHOt o2VW0aV/jW/LK0xPveWMDHR/J3Ncunboxxi1N8vSKAakuB1LDHtHfuegB7OuVWgvF+sk HwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271747; x=1719876547; 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=Y7F8R5HE+eZyxlB2ebQLwW1FMzverfSOUo2IuXKNmLY=; b=lgxTS+bXOuCzf/SfSsdiVo5sz0PyCLqet1DRyYFV4S7GY+qW9xuy8gejzVMKaUeiMQ aG/rBBCnY9k3xGBlrvzbvV1QLgjYrXasaKjfeAQDX+bTggR8VS/zfaF4uHyADHBeVKPy nRUt9cO2I2VhY3dHK1O1rHdM8ugBpLXSweRu4Wlwj2XMVqgLungdZ4Uri/Raj93dwuZE mqdn2CC0O4bokui2x3AzEHJtP3VcG6kOst1v2H5/+WwGlImfDm/ppxkVBtDa1Fb+8qw3 bAkSurZH5OY1dccC/9f11VAdvt05znITj+S+SpxrzwxGqHMHZDt3cr0K4ldBQD448pi6 zBCw== X-Forwarded-Encrypted: i=1; AJvYcCXJk3co9sLi9xgo4OdyDKcviikle6Ia9Sed4WfMsCE6g21GqjgE3XmGJCu/sKyxOzXlMGn8OT/XH8W6o9GfNAQmbsw2PIlrgTl0YwR8hab5 X-Gm-Message-State: AOJu0Yy2oQFvJlHBUA9yUhy8aptKbbn17Ts9pfcKZJacQMDqmo+4CRrt 8qPRT+qD9f3JhTDSxguL1uripdEmfoOPLTU5qtb3vW04iOtFOvlZSAA0neZKVV1VrhFIgi7RAIu A1g== X-Google-Smtp-Source: AGHT+IFY6zwuM+fBRs+r7yFjUxfbkM+X5No4nRI5eUjSYyy4xzwRR2NKqiye6S+BJr7Hl1+KVMRcw6AW1Us= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:f693:b0:1f7:3763:5ff0 with SMTP id d9443c01a7336-1fa158d034emr7382275ad.1.1719271746792; Mon, 24 Jun 2024 16:29:06 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:11 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-3-edliaw@google.com> Subject: [PATCH v6 02/13] selftests: Add -D_GNU_SOURCE= to CFLAGS in lib.mk From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org, John Hubbard X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162908_528106_35088AC4 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Centralizes the _GNU_SOURCE definition to CFLAGS in lib.mk. This uses the form "-D_GNU_SOURCE=", which is equivalent to "#define _GNU_SOURCE". Otherwise using "-D_GNU_SOURCE" is equivalent to "-D_GNU_SOURCE=1" and "#define _GNU_SOURCE 1", which is less commonly seen in source code and would require many changes in selftests to avoid redefinition warnings. Suggested-by: John Hubbard Signed-off-by: Edward Liaw --- tools/testing/selftests/lib.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 7b299ed5ff45..d6edcfcb5be8 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -196,6 +196,9 @@ endef clean: $(if $(TEST_GEN_MODS_DIR),clean_mods_dir) $(CLEAN) +# Build with _GNU_SOURCE by default +CFLAGS += -D_GNU_SOURCE= + # Enables to extend CFLAGS and LDFLAGS from command line, e.g. # make USERCFLAGS=-Werror USERLDFLAGS=-static CFLAGS += $(USERCFLAGS) From patchwork Mon Jun 24 23:26:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710333 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62195C30653 for ; Mon, 24 Jun 2024 23:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Hn9+uMTlJIRO+RCyVU+vkrp7IpBZsDGFa+i5Z2DTDr8=; b=RH457jgnUINiXZcPjDwG+CvjBL YT+M7DIky78OgeswvWowkYXqpYa7ASU1KMC1SKxfg5eOFZktn1CM1lIz5X8wKPQJdV2dVuL7T4+/E 9k4pQ6GQjS6wxayax82zWxfmjckOaDzufTYpzsK8AgkVo/9dOBPZsTLOwVz0jKJuhVhC54nlu8YWF JusO8L8hqNJwlrZNIGmVFyWMb8i1u0Y23qm/qodOxR3OqylYjLQSftRlPyrjIGYIlut/QcJDyt+ky GS/rLSNTLZLkoODllf0womcEmg4Wha74e2++4DzeW/1zoH5b5VhXdisiqKFty69txhsaZmhOyUoXM y1B2nOOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7c-00000000y0q-2pZs; Mon, 24 Jun 2024 23:29:16 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7a-00000000xxM-1hqP for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:15 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-e0322e5d0daso452402276.0 for ; Mon, 24 Jun 2024 16:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271752; x=1719876552; darn=lists.infradead.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=KYsd9Rb/6WE30YP2UPtx0BT+t/C3MbQ4dWAZpecv6Gw=; b=E+BjRWem4yYFSsGG2O9aoytiqQpfd9mDNwrCESr9kv6OTWlb/hMN0WQzlaXWCxIZAI yw6xOaGl4NZY3nGkRBJxY63YnDL5FNAnh08euzO5V4Hb8axxzDDRgYH8Jb8ETAfVhQU5 p8nf0xBmyOOfY4gBIsAA2dpd4GgS/8qwEUGkz6uA01SffOi0YrO0jBFotBdAnmzyKMRo KN7iPfXZkbUkBRhZXjtwgRV0U+qcc52b5RkqHpcHelP2VhzylKKdhDmeVyUGP7KsRcBt 4zwrUMCkHIS2d+3pghAWh+8tW8YKm3eRKAYHRhHMnl9Tln+3t1UvGrvXHOZkHGgm9OlA FZ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271752; x=1719876552; 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=KYsd9Rb/6WE30YP2UPtx0BT+t/C3MbQ4dWAZpecv6Gw=; b=J/bCtyFwHVFjlK9NFtHOx1K6imqfkbvP62i9vNg290Hc7vHE0cvnzgpK75MbiDuu0d NA85N7Uro2zf/x1lSf7kGLYy3ped6JmEeSqL8SDsY6MemAAKe9WBFGrG7+rBjXzuPkaJ bdu37JiZptqjZGB+tsNkpF94GCp9d3pLENmkMldeshkGG/QitOgtNldDSX6zlrtH12Ui NOEN2+ZMKSPK9sNQGQEvBs+BOmFsS6KNXPcK/bEjIRT9mkq4p2yjpeySl5sV8oEFyJ21 u+wKcs4eoLgYLPr3Az9hqVQ3quwvbiZ0SufPv3fn+uSDWS4Mv3zSsT1IKL2Js35DKRvB FBtw== X-Forwarded-Encrypted: i=1; AJvYcCWjGl3znSnhO71dax6beuXFkx4t0s5Dopl5eIqwxNBpfD+gcG0G5OGpr9a2ymyoiZSP2Li13PHDgg1hMhaov+DhxBgQHxvpP0xrry+sBFdq X-Gm-Message-State: AOJu0YxPnq8+/mOi3CZMQU1isyc3ECRGR4GG0d4/jXqUqsIIie3c0rMI xbEwxh8/GsWb8P1lWWKzlNwXtamEKucatZddpC2AWijTjEqyPYsJoLCPsoFozu/WmMXGHDd0TA8 +Xw== X-Google-Smtp-Source: AGHT+IEFOOflQzV3wFuvM2R/hnljfPuosO3Jiw9JP4M4awREYhPcttpeymh3r0w5dseA0yzpFfUKTbd9tHI= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a25:aa0f:0:b0:e02:7c5f:e0d5 with SMTP id 3f1490d57ef6-e02fa00e04amr59299276.4.1719271752514; Mon, 24 Jun 2024 16:29:12 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:12 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-4-edliaw@google.com> Subject: [PATCH v6 03/13] selftests/net: Append to lib.mk CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162914_523983_11BED7A7 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Instead of overwriting the CFLAGS imported from lib.mk, append instead instead. Also drop -D_GNU_SOURCE from CFLAGS to prevent redefinition warning. Signed-off-by: Edward Liaw --- tools/testing/selftests/net/Makefile | 2 +- tools/testing/selftests/net/tcp_ao/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index bc3925200637..8eaffd7a641c 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for net selftests -CFLAGS = -Wall -Wl,--no-as-needed -O2 -g +CFLAGS += -Wall -Wl,--no-as-needed -O2 -g CFLAGS += -I../../../../usr/include/ $(KHDR_INCLUDES) # Additional include paths needed by kselftest.h CFLAGS += -I../ diff --git a/tools/testing/selftests/net/tcp_ao/Makefile b/tools/testing/selftests/net/tcp_ao/Makefile index 522d991e310e..bd88b90b902b 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/ From patchwork Mon Jun 24 23:26:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710334 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A64AEC2BD09 for ; Mon, 24 Jun 2024 23:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qq73WWQJmtLR1uaaEKuIrnuXL78j//uS7f7HnXDJvos=; b=EofwuETTQub/7N9ygn9xp2mlnc XawjZho0dHftEdq+BEKG/4qDp0jbI0WPl4tVWBn6FjKz939Hasd2csRWPMdnoPH+FzSD079a/vCyg ohIcEqTR91cxk8pKZQ7wYJBduzBAH4noF+8fgmSvFcqmHibnBeQp4FfFPNbjrolBDZtoR0ahskkzB v33VCziuiR/vyPWH77XIWmm/v/P1cXDMLQYZxpJdOc11uPzEE0+YCzuBxmc2ZKA9F0PgpHrDfZjLP 8hzJDUIBqZlQmjiUVnAymzMm518VBwLdcuOU8SaBIF7BFVkxw6d2ahTpsA3qEhrbGlI+3MAqb+vIf EVfsQU7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7i-00000000y4e-0RAJ; Mon, 24 Jun 2024 23:29:22 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7f-00000000y2T-1BgC for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:20 +0000 Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-6658175f9d4so6827807a12.0 for ; Mon, 24 Jun 2024 16:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271758; x=1719876558; darn=lists.infradead.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=FdSDNYLWJB5rZ7zGFIgNmO8T8+rT5KpGbZz7pQfLV3k=; b=AHbMm/R+v27gAPn5u6kg9Iz30ozot5YRrYogtktUDOopUwXvaBuSHKHNrGOqJbfbUp 6XS08Z84I9fi0LnErltG7xtxKO9qo2vJVLLe+QP4nZgR8w8CetekRhHP7VNXVyI5nWIq e+msz8Gjt78ofnVdS3i5KfpaXOsRqPIfWqUcoKrslMYwjgg4bg3+U8FDp1QVp06n+G8j rDEksFokqtnaeDKw1irwvYamuKI+9IX7yEhXrIo/qBeRuiCwjjiJG/qrBgLegCJUqWCs LPuLHPvxKyqZXVouD1vlVWFUNP3qJy6XaHoD0f2Ek6OiIx+9p1n2VeMHHr1miqjh37Ge wbtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271758; x=1719876558; 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=FdSDNYLWJB5rZ7zGFIgNmO8T8+rT5KpGbZz7pQfLV3k=; b=XYoMNauRWSf78wK9CGsv2ZLZtcC4sBMrHzfjluDgXp88trMb8mklGydD/hM7aCzsBy En7MipCJgI1HmcW01GS/mx/sRHGyS1BKjUkKy0VxRyqWfaS/u0OQXLTuGZUfII8KzSxg cQuDVxhyYrMby6YLefss0X2+YtdzcyAoZbIgqDo3aDAggOqzbNTq7en3mvWQKkikzYIV R3ymmakt9cyEdpMGBfOMfPFzOycxHvoX91pYdK0xVlCH2AnVNV5Y/H3sm/Vf73dvmB5D sfIdjvEO0ROYi2MgFkCmMTlxG7MmhNHopBLMpGu1bEWQJ78fv9gtvBOzPRdVFveCMKXL ylyg== X-Forwarded-Encrypted: i=1; AJvYcCVw6yhOjNn8x+rt9XXCxrN2wNZd4V8ckE2gn64gR7+izB2mHdSwDmNBfccUEyuhqjjpE1l9ouUEczNzQINM6pKoioU/9x774urVDBlo5yLd X-Gm-Message-State: AOJu0YzSotplB3mzSu6CRQJ5vzQL6EVcDQwy4Jzp0hDLkLH8Q0yxEvOa 9JHx0MMyZAqZ5bfq/AZoqx68p+Ltvr7yxarOdH17BT7E41LFn/2QnKqR3+Lg/MeEndX37+16SfH EBw== X-Google-Smtp-Source: AGHT+IGHwhaq3SpDsE/oDwZF6fJSdoqdJu1qur3CUdYhennVxCDTZQrp6vr5HFtn29b7yImBHRAcKRn1tcs= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:3d43:0:b0:71a:1f6f:1d0f with SMTP id 41be03b00d2f7-71b5c3db10amr17532a12.6.1719271757877; Mon, 24 Jun 2024 16:29:17 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:13 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-5-edliaw@google.com> Subject: [PATCH v6 04/13] selftests/exec: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162919_405623_3503A693 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/exec/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index ab67d58cfab7..ba012bc5aab9 100644 --- a/tools/testing/selftests/exec/Makefile +++ b/tools/testing/selftests/exec/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS = -Wall CFLAGS += -Wno-nonnull -CFLAGS += -D_GNU_SOURCE ALIGNS := 0x1000 0x200000 0x1000000 ALIGN_PIES := $(patsubst %,load_address.%,$(ALIGNS)) From patchwork Mon Jun 24 23:26:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710335 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0B71DC2BD09 for ; Mon, 24 Jun 2024 23:29:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=r7pDDki6/m4JpPNbr8oZADkHpTuF7N5dhgXW74EcnI4=; b=KOBn9RSWNYRx/lB2KKvNBV2+C/ jxcMRdzwyzAs/mXaqyvlans4AZcAtQKRSDRQqi2P7ITOj+LWC/5tudUeueQjLQexPaRFLtCJK6Z5M OjMd8xVMhKcXEOHwClDBtjJN6ImCoaCzz52dTyo4wKeb3fjyNByWJQz3orBNMUQ2FAF57aI6Bgofo B6T/N8nS6hIZJRrx/cXC/54D+AjMsf/TbwXzsnSbkDFZ5NJ/mCr7FVUJDUkcP50hrHorMnm2TSgQ+ IXVu1+EvwqCy8o7V7HB38wO4XeY5DqoaZBG3JVuzKIRaARfev1yN4Iw/JSo2jvHMr6BLO3lDgDk8j KVeM8c5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7o-00000000y9u-3w7h; Mon, 24 Jun 2024 23:29:28 +0000 Received: from mail-pf1-x44a.google.com ([2607:f8b0:4864:20::44a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7l-00000000y6M-12Ib for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:26 +0000 Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-7065df788f6so4801343b3a.3 for ; Mon, 24 Jun 2024 16:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271763; x=1719876563; darn=lists.infradead.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=fldosNIASu5foth+y++2astaddaovQjRCjbJvozT8Ew=; b=ug2qVxYhBrYUf86btlBpRZEKU4z6yLTHrH0RJw0WiUm0/4CoZDU1vmGlcL+AYS3CoC jUdQCw/kBkxcf821nhimf/YRlPYBiGpsekLmh4pKxv30a6Y+nmRyU2kKQLUKVBVwvmdB flJMJTkngNU6Lzn3wiCHY2fjFpA9MDUutsJawev1IvMQ5Ja4tHs9LQX9lQ84vf+RLkOK XHwNIcQhlSMi3X5BalwbCRMR1/Z0e21FtKCic1pXuyoOCc/UnwDXO1Wf0b1hl5UBLIoU fPb4oLsTOx5yuCne+QhWHM3RIwRJXmyabnZvQdbeFyDku5omaVH/S0xKoMfakBHuTqcl 2Y8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271763; x=1719876563; 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=fldosNIASu5foth+y++2astaddaovQjRCjbJvozT8Ew=; b=FNDwIsUkTQg+clewdCgrJtc4/MZ9z+XNwPhxzSkzqRPStxbJ4o7piaeKz9MKSKfda/ jzcWl9ZLkxeSq6lZ9ZyUgezjaqFBSE165/t+GlwsnkOY6DDQW4xydgAtcPeg/DW6XEED fKItmUNsV6JcCYpiWywz183ygRFTlCGp+vug9JHcEZnFdiE/PQDVGZiUOMQsxCMarcQN wcZdG9XhDFqmYW6NoEpSInnvQTWVAOuOmAVrDxwVcDzr5B+9/nvJyfMCruogmMBSoZzG VMepxx3n89pBYSk9+UnS25V9jEoNa3rH/isnLnBgao/9ZKV4TLrYxViolToLrlWHd6n0 +PoQ== X-Forwarded-Encrypted: i=1; AJvYcCVgR4QrIopBSnr4ewYngx/jgQKAvrUtj7LF9+yT//CEfPqj4f0CKwb6FdDg05qbiGytsR4P1A0D9bR6YUsHTCmKcvnQGcU9si9csv6L4iMv X-Gm-Message-State: AOJu0YypPie2zsSb70P6Yym4frGfRe9O1KQEOncNY+6NNMcwb7FBwU4g O2HaKgne1UZv2ugeSefa7FGbmQ+ZwF0vd9g9wprn4YJVW+M0CLfLvdpFh7AO5e9ZTVHEEBCILVD fRQ== X-Google-Smtp-Source: AGHT+IHgIjs0ZNjmgMymaYfJ8/9bZ93vYmLowFGFa4rCwsJRE0/Jc/du7SfPX0zd6RD0YkkBKKfvO6Hly8E= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:908c:b0:706:3421:7406 with SMTP id d2e1a72fcca58-7067454bf95mr299109b3a.1.1719271763360; Mon, 24 Jun 2024 16:29:23 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:14 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-6-edliaw@google.com> Subject: [PATCH v6 05/13] selftests/futex: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162925_376827_F9CE380C X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/futex/functional/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 994fa3468f17..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 := \ From patchwork Mon Jun 24 23:26:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710336 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3FE75C30653 for ; Mon, 24 Jun 2024 23:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zCxvSPZGtoXCqapPzz3K/80skozKvKDQVbcjeZg+SgY=; b=Ezcv8fJzlVDnC/uA3pR40WehKy F0ZYd49jFccQQbPPVJd0XgyV5Zhan55LbFgBE16lJS4n+iCfpoqvXyt8qyGG2kxLCmPDMUSrHaJaJ q/dzCQncdXLuVQVvg75cIOLFpM8eVB0dlNVApjsFfHqLIEjpaX8cjbnp8+PC+R6QbZ6sQnj7EL9DW mzHjwPG47D6youRQDQl2GmKhMtYKHQ2BpijUqaB3E9iLO1cfd4C0gWwLDSXTQDj3mrvQTNIsV75tK eJ49MNKGpu/G9uSqUFvJIsrghWvYcJfL5Fu0mg4DOKEsciDAMfretQKuHgOkmFkmBSOHG0A0cZu0M vcK2jSbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7t-00000000yDs-1lMH; Mon, 24 Jun 2024 23:29:33 +0000 Received: from mail-pf1-x44a.google.com ([2607:f8b0:4864:20::44a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7r-00000000yAb-0EYW for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:32 +0000 Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-706819a8390so1202013b3a.0 for ; Mon, 24 Jun 2024 16:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271769; x=1719876569; darn=lists.infradead.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=0Ifr8Ya8A/Lifd4HdrItZMFbfd7FCXsltsIVIxxyLaY=; b=2BgsXz/7oOxCzGBOst9Su+vQpexzKGs0P/69uIj2v/q5r3k4eSGVDxqnmHCrN/pWdp 7uoXuCM0X9fCVl33zLMk+YVUuCfJDStuK7QePn1Xjv31/qFnXWRtGOvNVUAlna5UpGJ9 BRT40uNz9oKpH76B9Vmi3RzcAaMREwvfXDapQiu0d+6C8gCD8+cIufMquWCqu8sTjFQB AcH9qaX621GiX238cHL2tzSzGn2tDhPKt+Osx5PprSaTQ1KakBU5EQcHW4CzW6JuJ90s ID834I6jxQw54fFDDRcPjdcuYXDBnrXheLyou9qohQC/9tilc69YYUQz1x69510yWkrl AAng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271769; x=1719876569; 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=0Ifr8Ya8A/Lifd4HdrItZMFbfd7FCXsltsIVIxxyLaY=; b=qQGw/or1uSNnyAY72/chd5nrDyaeWwRHb8pzfF5atRCss7hCZYiBYzl5HxQ+0RWJF/ 7ORIHLzYOaKO2tOaF4ICMcsNDAOa5SQFzLApiFERtVrrhlgb9TB0wRB5ZKsH2c3rGg2E MSb0/EKI17pJIfuut7KcUtttsMP2YJIdmMVkwifr685LnNknNJ7VzROsW2ad2raf3E0v joFhwdofxBucBSK753EsZt7DX1eF0SrG9URpWh3vf16J9IxlEre2ddWOIICOi5mwB/I1 n1DVwNJxG17nJIdSzMuLxYQYEUOxss00ndeUHERYt9Np9pin9b7pdeYlqnza/q6ZbIbh yydw== X-Forwarded-Encrypted: i=1; AJvYcCVBUO3gALyACz/2mZOr5BkcRS5+H5C9SLWy7DK3pB4QtICGrWej3Uw46LF9TJvtshyyQCoO1z1mxMdKCF0QYjZUBz1uWqWKUUnLTqP0w5SC X-Gm-Message-State: AOJu0YzYiLi/blRbXm27dCnJm6YzqXvWb0ylhMLlITjIECzmaw7me3al +CznUdYC7BBJmIEYMuYK/947XRRDDOnK9PNui/9id9xbUoivyFLPb/anYAgMZA9a81GH/0juU4i Ikg== X-Google-Smtp-Source: AGHT+IGfwxTfgoKpQbwyVdHdeu4Fayfp12bseSCI+21TX1FuKt23v8wGVL/xanJWyhgjJiFfoB7TugWlGLo= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:898e:b0:706:3433:bf21 with SMTP id d2e1a72fcca58-70669dfcfdamr31477b3a.3.1719271768844; Mon, 24 Jun 2024 16:29:28 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:15 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-7-edliaw@google.com> Subject: [PATCH v6 06/13] selftests/intel_pstate: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162931_169148_E6E94F52 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/intel_pstate/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile index 05d66ef50c97..f45372cb00fe 100644 --- a/tools/testing/selftests/intel_pstate/Makefile +++ b/tools/testing/selftests/intel_pstate/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE +CFLAGS := $(CFLAGS) -Wall LDLIBS += -lm ARCH ?= $(shell uname -m 2>/dev/null || echo not) From patchwork Mon Jun 24 23:26:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710337 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B84B2C30653 for ; Mon, 24 Jun 2024 23:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sJOsoxZROVScCST2EgR/97dQHAGISlUP+fGSdl8WCTw=; b=YmiqWESPs7s2LOoMXL937cjeTD /YQCs3ofKAeY0rT+0jR0CrZ0l5VqQ4MUcm8KgIhOYf5+CH+PU6GJYzUMmvSoyCgBQrvGbN8ZsJPot QwOMhVa0ijHtXBrHpupohbQw6z+2y21+OQlW9Z5jc4/ylgGLihQ5CuLQgVb64TOiIJ5ac4R6vXBSP 3LWPonjYvYgZTP1GvReyqi38njJFnfkmxZaJzFj5pfmv3MCtPk6WlR0YkYVBZWCqv6bWWSCiUCnff 7j6/jVm0TUXSiTkbwPgYj6LWXk8oI6mTtb0OTSpHgrdiIDwBghUTTgq4HNVbnm+wYmKD1Qgm9hz54 g0iJE2ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt80-00000000yJL-0HbT; Mon, 24 Jun 2024 23:29:40 +0000 Received: from mail-pg1-x549.google.com ([2607:f8b0:4864:20::549]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt7w-00000000yFm-1Qcg for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:37 +0000 Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-704d99cb97aso5870040a12.0 for ; Mon, 24 Jun 2024 16:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271775; x=1719876575; darn=lists.infradead.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=eCJX8+VvSnRphReKqOD6AqEhzLc1OgPwFHKFgJpo/3s=; b=UZT+KspGnMVK7H0jTlt97LuLG14H136UH7yLTQBJNBYrYjVrh4RgEOMMeCKkIiE0Vj eyI8pPSh5IIQ20pxWef/wZZQhiztXvz60RXk/GsulpJsDH56ZXnzz/RUSIaD/F20HSNT 8wQXcIiMLzdWXvz593wF1e+oLnnEj27pcACvUJLcBv3fNUwdo4jUGJ0Pjq6+ehPmuhaN HSU6idj2yc6zJ7uzRTU/+Gbmx/HDVu6aLeByvoTZgkBVFtCVOOYEPdtaWsuPjDMA42IF 9s+HhcogjLu+cvqhmTwCVJFw/NAt8Sh7Ar3qPziMcvhkfdR3YgWbPVlbkFaPWSUPbgZe a08w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271775; x=1719876575; 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=eCJX8+VvSnRphReKqOD6AqEhzLc1OgPwFHKFgJpo/3s=; b=USkpwF+DFIx8VUYNQFcMNGRBGMitSrPIbCxfVabEW9/pSbHqBY335IMR3D/zhEXCRv Gk3ny/UmgHm+H0JcRRw+BE+4MYc14lNgzsiLzU0HgGi3ld4E8zdtV/hLS43ianCvIK7l 0/L3F7Ad8umSRjl5V7mnweK0enVSwgD6UOWcnLqxXvjc5PK0aYFVJ4XfdBGiiKMr0o1J LnyhayclexkRj8RhZazln+eAQyMXXgjtZUsBLCgU+jhndzyL+K6Z8dIC9kKXKPq+dz1U mq8HaGx36qEKSI1EOpPZu6jIG/XmcavVdnOvITApvBr4kxAyoa+w2ve3zmu6+PnZv6r+ 8NcA== X-Forwarded-Encrypted: i=1; AJvYcCX/06E7kimRzo7KwbLWcLMmJG15CNs0nzDFkTRx+XkDNTqcAjamvWu5ikfv2vt7O85ESySTxOFty7qBNTeKkKFqeF8o7GQ7SOzO6iOwPPur X-Gm-Message-State: AOJu0YwTcO/MEVCB25zVS8nRONtBLFzVKu7Ymex1Yp9zWlAFX7hko5zU 3GY5B1gqkykEit4x/QP+zoaxWEIv1mcxP7bRaopFHtIOaSszUBVh8ZDcCza+RxtIsk9XD1r1Hkp /Ug== X-Google-Smtp-Source: AGHT+IFjD4+usXw1SHxX9b7ePdUBbw8ZgCP2CzCr9wFCk6wJU6Q5+R81P4uygwELRit2itW6ZnfR1hiEObg= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a02:91b:b0:710:c65a:7e55 with SMTP id 41be03b00d2f7-71a35642c51mr18906a12.1.1719271775000; Mon, 24 Jun 2024 16:29:35 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:16 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-8-edliaw@google.com> Subject: [PATCH v6 07/13] selftests/iommu: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162936_552659_6DB87BED X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/iommu/Makefile | 2 -- 1 file changed, 2 deletions(-) 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 From patchwork Mon Jun 24 23:26:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710338 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4220C2BD09 for ; Mon, 24 Jun 2024 23:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=3+K/RyJpUiMRqGnnoaTMj40PF3P/R+FdjdNwKA+x+MM=; b=fa9uruLaGMNQRr/wEp1I4uBHlw AZLJ5UrAJCprf7SA3QsbqHsbCMlqShW3T8oQVkkoMQgJAqDD8aTR7UnlyPqg8Df0YznPlqmjHnerq plWLX9VBXuhFu59kcVmSnm4BfdoIoYYcM75+1oj78tN8NSGzkZFV6a9VjFKYvr2EOW1mw7xbVBhVF VHvj5R1KDQCPzMaSJ/PV8BHK3Yget+85e6yg3zNXWdsQN048ods87e0D11bn+IU3xA4mDAHMRgnHT L378lrJv+dE61pqG1vbgzfKDmGWNZFsnxwy/99UX4osh23Nu1/j69F4Kae5tQUVQjfgMZa8v3pPU8 hlLOamjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt89-00000000ySP-3Jqq; Mon, 24 Jun 2024 23:29:49 +0000 Received: from mail-pf1-x449.google.com ([2607:f8b0:4864:20::449]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt82-00000000yLJ-26k9 for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:48 +0000 Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-7065df788f7so2244727b3a.0 for ; Mon, 24 Jun 2024 16:29:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271781; x=1719876581; darn=lists.infradead.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=QrZ+5Kk2oEbgMtgXaDgXkxLOd4phuQ+pRNBukp2bFkg=; b=o3HQ/HBve9aValR5WDL+3zxPMioxy5+MhFQwi67dDp1Jz2UpoFknWMiwJeJuTteQYL txeu0S2PMlfVLQ16bAnIS8pld4s3ot7unkQkjfEeQbzuaXFZaQdC0dNx4agQPuQjlA8H GcGtf8arbVjJ25VjzC75CwWOmVkwbOlB8PqQvCp90RaQkhBDv58AWp1jZflBcklI7DIy ZEBO0kM4GfNDwMInQEpUzkoA5ZMfR2AU2B38KtRj4sYFLLp7TjZITn3j9dmPZUn+KfZA HqEvylgQHK1g9VA1sjjm1HUbb7fGn9b22/exIXxHY0sp5NKneKxV3P84sD4O49Dqbj7U aWLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271781; x=1719876581; 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=QrZ+5Kk2oEbgMtgXaDgXkxLOd4phuQ+pRNBukp2bFkg=; b=I0brwQe5DzZokZK0XA7KPi/oh++3pFLKASg2R8/vnqDXS58IsYaZrx84R1WqyYeop+ s031u5thth6EA4TEyEQEK+HW7wBmqdnU16Klxjn9wM6GAqBoOZTIssFNk+RuT4z4uQ8H A86/WIuwr1KxMpQZQTgghECkJuiFzU8EDEmsHgbh4K1y2ZgloS0mEbK4Em4MWh/6Jaa6 k1ODzjrPbR00YGGGo0CHEeCtWLQhc17VLM6WOJHJ3q2kmGnQOa9HNobYNBAJBYw5hxb1 gLSxallsHsFUIpbUGfjF6xRgetk35Iq8tisE/XavqvRX3/Rf5HyyChXNuZ/FKYLSiZRk YFDw== X-Forwarded-Encrypted: i=1; AJvYcCW0ucKWmRS20B+6RWs5iaiHrTOcdmM4Jv2gYknkHDAqbVRau2xrFLk90TQp5Fif99HzZ6luovmT9XyB7+Dg6ua6Gm4UhXoc66rj6sVaojlF X-Gm-Message-State: AOJu0Yy3B81rZ70woDtjTW+4Ejw0zMQUqVYGT6Sg1WHh12fy5vaktiVL 6KRIq6vFwG8JEGiQgTHysmwuqIA3Vutz0zpNYCU98fsRnOpkYnCsjengQSQwkzaCHZ4TEZsGPde P1Q== X-Google-Smtp-Source: AGHT+IHpQrIc85Iwvne/JtUL74k7CtaEnEbXK9UND6RiBewc+A4BXz2SYDvXCOVunV74/hhFEZKy/c23brg= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:4309:b0:705:d750:83dd with SMTP id d2e1a72fcca58-70669e5e132mr244774b3a.0.1719271780764; Mon, 24 Jun 2024 16:29:40 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:17 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-9-edliaw@google.com> Subject: [PATCH v6 08/13] selftests/kvm: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162942_889369_8A804B05 X-CRM114-Status: GOOD ( 11.09 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index ac280dcba996..4ee37abf70ff 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -231,7 +231,7 @@ LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include endif CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \ -Wno-gnu-variable-sized-type-not-at-end -MD -MP -DCONFIG_64BIT \ - -D_GNU_SOURCE -fno-builtin-memcmp -fno-builtin-memcpy \ + -fno-builtin-memcmp -fno-builtin-memcpy \ -fno-builtin-memset -fno-builtin-strnlen \ -fno-stack-protector -fno-PIE -I$(LINUX_TOOL_INCLUDE) \ -I$(LINUX_TOOL_ARCH_INCLUDE) -I$(LINUX_HDR_PATH) -Iinclude \ From patchwork Mon Jun 24 23:26:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710339 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BCA15C30658 for ; Mon, 24 Jun 2024 23:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hrfgTmgkhUWKQFz9Jy0/Rs3WA8hHVa689bxbcQ14IdI=; b=qKm3j+AFr8Yhi7mrdr6/tnUEp0 cTZH+8CRjM3JDvjM4Dja7uDkvfY8BkDdIYbNgrY8XnnYAq3u7j6Oc9/e5iwq/U79iuBwXX1XaWgUG WzAsoCFvfm6M2a9DHni6DfFtdvGrb5r1ggqrwsWTcvrOoYoYUzrfsB5Ogv/cQQARdVE3Un5s+vAra LlsbRzbO7S1iwQoER6hzZTcU4XmFVTQKV1Yt/rUT8BiDvgrBXXIjrPYF46OTmgStHI7FA8k3eJblV XnRTZEha2ELe9NpcI1TCxKvTNaRoKfyH+MMokvRYg88BxceX6aDWFjaLfTz1/8ruDJNBhgoY6Ja+J 0YqUemQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8P-00000000ygd-3bsc; Mon, 24 Jun 2024 23:30:05 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8M-00000000ycl-2Ghc for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 23:30:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=rJFiGCZar+q63pIILXV1m5S/VTx8srfmbdTO812oVXc=; b=qH283i5a0F3o1YpPiGqLWMxR9m g/3DnZFZTvBrX0Q9j3GbLOzCcRHydRedBbfZ2biezGrwcMbDNJxXJmpU711MYA4fvOhHrjiK6eE7t K8yQ351uul5+xuG2m+V5AzEXwITWJphZCKJB1IyVyRXqaVEVy8nbk06j8ZfrM7zsw3DChZuIEmAxF iQRgRkrGgDTWF7kgfqlytzZW4/1oMW2s/ZNFUImibLAvO9NBbyu1K7S6B+zPMj6hcLsi8UeLHDMGt 0RP5/8RO4x0aPreUt8iemVqqyrCsE9mqhbRgg6il8cokyoFkrOL03TiYU72Jd7F/oVQjEX8UFcM00 q3bsvM/A==; Received: from mail-pg1-x549.google.com ([2607:f8b0:4864:20::549]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8B-00000008JJ0-3n5V for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:29:59 +0000 Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-71b1231febdso3695421a12.1 for ; Mon, 24 Jun 2024 16:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271786; x=1719876586; darn=lists.infradead.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=rJFiGCZar+q63pIILXV1m5S/VTx8srfmbdTO812oVXc=; b=F4ELI6KXBUbGQaiZ4Ah/6w+eaRjHWjwLl2Z4/ysbDMmte/Gn0CoFT6xg2H59XQO7kO m6PJUK262d2CQacxJc0nwC61vWaaPSIXcOnw3Qkv4OQSSfHcHFVDxy6BPlwUOJ0QbYBs jQ3c6lOUreBMJnty/tTTUtHpF4rW4T8dRf8BkY4r1vNpNQzBEbxXzxBsxwBvUeyjXNtK sSX9E4TzZgk7HNWNZxemi7G1ufpW/CkcxxPI4oFNdy1IAUtwrcgh3SBGtK4VA8zpkNsb quOPALBkYK1sqxp9tqQfmAver+NlGGvHih8Crnym3sSkPTYaJnyE3ypNoVZwMU28M8zp xNrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271786; x=1719876586; 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=rJFiGCZar+q63pIILXV1m5S/VTx8srfmbdTO812oVXc=; b=rIFylTg3rQkN336+ni6Idrh52DAHgKCsL9xiW4lQUUIo79gGtmak/axADGzsQBmBcs YukfSbvEWs5Rgib+Q114g75YLgyIAkmbdD05fy7BfSA17rWJmo+4HM6Eq/Lg4Mye6EnQ 63lBE2WEDhEn6rTJT5T5b9f8Y8gD+tyWxXwaz67RBMdUmv2ZtN4cTCpppsTufKE9aLlE L5CntV1edcTQ6L0DucP2RLIQwkiLEkRhvYYXiZHA9ycyaHFIMhbW6An5pGkVbEGMnTNz fUTSdhSQtCw5OtmhH6q6rETCROHu+n5XlLsRdkCCpKp8gowBHXVvhzRJ5qozIjjttUPo M9zw== X-Forwarded-Encrypted: i=1; AJvYcCU3TE5wPKcOIAXRvHZe/+G6Z4uavS8zsd6FKp9PQX8CbB1Ont3uXnEE4xFDHgH4lCPs2xumVhmmjeOAg9tF0xl46yphMgK3DqSB1vpUXbNS X-Gm-Message-State: AOJu0Yx5VvJm/gDxoNnGziPwCVaKj9dxKGZMh3E7HQPWJqVsec6/KgOl BQyj9UA3A2WRNDSGMScSMpfjSbGmGLSU+04IRcZIHavy/+G+XvspFdPW53w2MIeB6UZKI1Z4jrF 75g== X-Google-Smtp-Source: AGHT+IHZaXS4lSce/uBBUIpFuXCH7I0BpPEaAf3VbI7ppnPDWzJgDOW4eIq57gPJilnwaCJeffaGJD+7rCQ= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:6dc1:0:b0:6c0:3f:cd46 with SMTP id 41be03b00d2f7-71b5b395b46mr19980a12.2.1719271786190; Mon, 24 Jun 2024 16:29:46 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:18 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-10-edliaw@google.com> Subject: [PATCH v6 09/13] selftests/proc: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_002953_216056_C51BAC36 X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/proc/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/proc/Makefile b/tools/testing/selftests/proc/Makefile index 6066f607f758..ee424a9f075f 100644 --- a/tools/testing/selftests/proc/Makefile +++ b/tools/testing/selftests/proc/Makefile @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only CFLAGS += -Wall -O2 -Wno-unused-function -CFLAGS += -D_GNU_SOURCE LDFLAGS += -pthread TEST_GEN_PROGS := From patchwork Mon Jun 24 23:26:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710375 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F5E0C41513 for ; Tue, 25 Jun 2024 00:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WSn41jz8tM0nTHj+ofYyjg5q/UFikRBX6DXV4l3O5Pc=; b=uhJitcOvL7a+KTt+gbz9rM4Tit HoybW3A/htvuBo3sE82+xpqJfQLZSoZ7LSZFIZFyCT9ClpH7UiJ4Yl8mMhMajd1PmdG0SfCjMYkjW stIOS8svp/WvhwNk9fVUl/HWbg6SWQBSCglpQHN/TkGI0JnSx9c871W2w16VqNLTHW/8UQuukQ8PR hTrkcDpWoSLTZUQIuhyjLf/849VgStqBtkhurRk+pYUWalyHYhqI7s6xUYsvDW2cIjtT29kT01El5 5mWCM1tkTOc11TjZfQRyenYVdXLv5OyKMvw2Em1rU9zbtKP/6xn+RPWk/4yPlxiJA1c8hDj5BlDEa 1qZwgvBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLu4z-000000016EL-1M88; Tue, 25 Jun 2024 00:30:37 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8O-00000000yf0-1Dgs for linux-riscv@bombadil.infradead.org; Mon, 24 Jun 2024 23:30:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Cc:To:From:Subject: Message-ID:References:Mime-Version:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=diaj5tFwwNQVaMCQX5T2JTz4mfzyRWuO7s480xW0M7E=; b=fvjd6etNbcKU2GoQX3NuE38AqN 6B02GdIUonUH08X99eqveJiT89FPaVpjtMlLeDbW+IUnkvAGrBt0Ypg+DPYt3E+RIp+TMs3MawMci E0uqmbMUCdtZNkiMJjD5Ymrftvqn/mcgLl5yqD1ErJN+hXCvYF4H05I6T4pD1a83K6mGEg9uwtTzr 7VVLPVtzHMjWSVnEfXNvH6glE4sfJrbpRSqJ7SEq980acC4SmRZ/ZPtzqXQNvcW7q5p8hf4j2Flvi eqZm2h5cFNgojIQDIo9/zcHQpbsBiocXVVGLte9wKOXqNJIMpg3AyHadK/ALHgXou/8JxqDqT21rz I9gpwLPA==; Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8J-00000008JJ2-23cb for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:30:02 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1f6174d0421so52231045ad.2 for ; Mon, 24 Jun 2024 16:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271792; x=1719876592; darn=lists.infradead.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=diaj5tFwwNQVaMCQX5T2JTz4mfzyRWuO7s480xW0M7E=; b=Ek/XubhoPA/mMCvurlAcKgyI1H4HND3N/1CfIMBaMsIZbcWlVKXW1rUpecyBqB/xfL W2PMlk9Ih5IpLV/z54yOqey5FcHZpGFAhDVV5iSlSwwTVCNLyabf6UAQqbfPt3UA7FGL wbVb9u76KLRXRFntIIMLEVwlZ8e1EJ4ZZE1t1Hqx/YteNfBgUPJ/itlLnZ0EcPT0pHog bFhctAHoI9KbUpRgNxFFMamz1QHLJsMHir5zZlXlMyjv602338suaU2dfO28D+7TCulh UErU+ZF/jH82O0FkQ18dQdcP1UW0V7SwcQqb1VlU5+X7jtUalghSFLkYrhPuMg/eV9KM MqDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271792; x=1719876592; 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=diaj5tFwwNQVaMCQX5T2JTz4mfzyRWuO7s480xW0M7E=; b=sltDVBT2e7M8o8WOf9rsYFVvBs4W5DWW0aAKlg0HVBb05Dfc1fD6pAuM919rSB5wLF BeSmo44wIbPmA5afqv/FiIi5RX+XBVTdIXfWuqJrjwHKII7vSl4Qn2OKd4JwKhiDgAgz MlCQA5Y7BxMhQ/q+FEVYkCU8VeIQx0wQgkmZd9KCVmj7vfQQNnmNLDe2jpuGd4jRrQ/d 8NOmcyo3sdpflE5/CUe8olILj05KuxmFeU3m+ROdyQ9/pTSh/Vcd33MEj/ZpNhBRUUWa SMnZCB075psUBhyQHt3eWURpqQOUf8Du8xC9hv3DvnYomls6qqBCwWv1DFP+qJAjwSTA Kuqg== X-Forwarded-Encrypted: i=1; AJvYcCV6Cuipwq1g+iPLMIXXsYBkceOcMo6LHy1ek468kUPyyUVM9HA6JYRKKxiCreUm9GPiK/orvilXn6xsmoBM4y610KIh4pJxRM+oDZHkYJmI X-Gm-Message-State: AOJu0YxwgCN9ddkktnBVjaiGvUPandy/IYvAdcYXwrm2wkArhqjiU84e g2iiYvINsyWesRjBwBdgfDTAeZLYXCeiPmXR2WG6mMQHN4KKUGh7vAAR1QXIIM3IaP2e4OyGwXy 0WQ== X-Google-Smtp-Source: AGHT+IFAHsy2vEbD08I44y0v3BWNlocV2o4z95Fg4teVzqZkoUDKjX2v6KqYVtDHhi51zA7DQs3radXmbQo= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:ea08:b0:1f7:3bb3:abe2 with SMTP id d9443c01a7336-1fa15938adfmr8753425ad.12.1719271791633; Mon, 24 Jun 2024 16:29:51 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:19 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-11-edliaw@google.com> Subject: [PATCH v6 10/13] selftests/resctrl: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_003000_659858_E3B9C0A0 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/resctrl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/resctrl/Makefile b/tools/testing/selftests/resctrl/Makefile index 021863f86053..f408bd6bfc3d 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 From patchwork Mon Jun 24 23:26:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710378 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A5DCC30653 for ; Tue, 25 Jun 2024 00:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=J33BsDuecj0q07Myn2CrNrnHHCwSzANl9cPz3JYCQas=; b=y61u0m3qkz76v4wMT/AE5iyaoU PyXMKHRQTcdFTO6OnaXfZLhtcaaAEtkl0JqiG3GiKsTWT8fc2byu5L1DosfmZxDaGiPwHnTnLZeYh ZQFj41/rvUePBqLoDgKnqbO8a+spGsl0rfkK7VjgFJNgx8aLpKYRSDy3qPG/BBzf5TevYJTCPQWnZ U9XbI77Sja8kmEM8t0IuJ8w79K2jKgVQdeoocZ0VmQkF+BNz447mH9r7RvAbnsIoJVU3aNy3kAqvO WZDYPn5j+IQTsqM/xOIgy60zqgdZTIo4u3zPYXYC7AH0Wcg3xqBW/4iinsU/uaurT7qsqyVlLZtff f5Ur8utQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLu4y-000000016EE-2pIs; Tue, 25 Jun 2024 00:30:36 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8I-00000000yZ5-3dUE for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:30:04 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1f998f5e5fdso52769985ad.1 for ; Mon, 24 Jun 2024 16:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271797; x=1719876597; darn=lists.infradead.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=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=BAbuJQ2Krka0OKjyrgluc66ZhC3iel1OT5P4ENfUMz69LTkolNgYf2k5tzvMdLVl0N Hq01oMkVwWh12BhHQLPIz+Oy/tsoy9Y4r48SQYqMWmjNjxcafop0j3nUIkLdESy51kDE CAXDydjLfAL7ktIcgZ6M1zprqzmEFCSP2q1BdpQ4+zIpWiQmcm1HuCPdRVCFYT6OmJaG wqirxCD+thxMMgHV8yd3/3ZrB5ikmJeXgG/Z9p3aJeyMcMMoW3GCictF0VGg+mOr2rmH mTYTEslP9KLchSHkWAY8sQg9wT29l9s/mfmqcw9aoFdM7cCLhacBB5HWc9b1wbMBBLfb Ue1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271797; x=1719876597; 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=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=U6OKj9A1v82CZrcIKUs5vIhWnPv0wMaI3NjR/9oePh9rMx7dIaXpULkXIIRrRA4CHf SSB4DoGuz13G0mzAVXogql968JWpP2a9yj9PyMQLi6RE0AJwiD6Ky8rK7yLhE+7xU2ME cwrClGWsKAZUywDi2NIRA8RQb5EwK1Z6pX0Vr4DtFg7yBhyqpZguFFyjPcMJaAgdi5r/ qappOf7D5grSmM2z7lVzxRnOy6yQcy4qvNSK42VcJ4B294ciebBUKzFQ1e4Uug5PKuNC bF7lBleawlIYlveomtqJmAOnM392hn0Kde5udVGjE1jjvd/xyHwN5xQ5Q11kv5jNmOxS 4znQ== X-Forwarded-Encrypted: i=1; AJvYcCUbUPVFf0TMB2Paw1bkn2VywRNTBC0X4feCSL37CWOWKEKF43nK6ol3hblxTsNqnCmMo2lvJptzpCs7cvt3tVD59K7PGSFn8TKacsz/uscI X-Gm-Message-State: AOJu0YxG4pTz/MjJnH0PVMmMd8tW6HOh4Z4lGxfqjIMbddz6+n3rVPsa 1w0OxKabi2iXZ5vn+N95gw39/N2gIn2eMiHvl9m8+lFWQYrhFvEEmocGSFJ9apO788xyjEprASc CIw== X-Google-Smtp-Source: AGHT+IFZmU35y+9sHVYjgBtLmkHsjpVEfz9mzouhtaAmWQwnWgKPMl1MuSAOaM0VtiMXYbYfw881ubbrmb4= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:f707:b0:1f7:3170:5c4 with SMTP id d9443c01a7336-1fa1592da1fmr6098675ad.10.1719271797169; Mon, 24 Jun 2024 16:29:57 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:20 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-12-edliaw@google.com> Subject: [PATCH v6 11/13] selftests/ring-buffer: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_162959_427743_9B4452AE X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/ring-buffer/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/ring-buffer/Makefile b/tools/testing/selftests/ring-buffer/Makefile index 627c5fa6d1ab..23605782639e 100644 --- a/tools/testing/selftests/ring-buffer/Makefile +++ b/tools/testing/selftests/ring-buffer/Makefile @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -Wl,-no-as-needed -Wall CFLAGS += $(KHDR_INCLUDES) -CFLAGS += -D_GNU_SOURCE TEST_GEN_PROGS = map_test From patchwork Mon Jun 24 23:26:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710376 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95A3AC2BD09 for ; Tue, 25 Jun 2024 00:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=aX6SdTtPoFlihOBItcvBHDnHenXXweLpRhHrCUpdQIA=; b=bvZ12CPRNsW5RbtlmjIVLX7eT0 a8+SIYQzZEMiwt+ICbTj/G4VSOAVZY0Xr9e0TiQ4nNXc6FPqa8GCTRrz+tW8f/cC8wKluJp0Knb+1 ujdcueyrLJ8PLcwEOX28uVkLYYrcT+KMlTJWNu5ESAS4GUArIP/jayFwvRsorODukI3qbCU/3HLpj gY4p7dAs5TBVbR8CDdcYI6gvgrO6nhdz+0Vt91Fl7RVRHi9zY13vDIlsyaGPNSp5ZYyAiKkOI6MBR hj7D+I/x4Q8DasmwIrbbS4/8mZHpIjHmRZ/VvVOtaM4fC0RSEMOgh6nlwEqHiCqpIX0sPpbx/mrmx BHud7uKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLu50-000000016ET-06iA; Tue, 25 Jun 2024 00:30:38 +0000 Received: from mail-pg1-f201.google.com ([209.85.215.201]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8P-00000000yel-0E5N for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:30:17 +0000 Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-70ac9630e3aso5433004a12.1 for ; Mon, 24 Jun 2024 16:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271802; x=1719876602; darn=lists.infradead.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=/ZG4i3dx3G3awn1LpAYu9cuCTYByH4EPhFHcmFTw+5I=; b=oCzRbL9ivwgeaS2GJ0Lu+eEXst5n7yaQwuwaPwnJFbwPRYv8t6vcr7e3TW1bYmNrHR X7qZNRBQCM8UnC6wMvHKzB/Y8bSrXrL3MqrtSP7VvioLIq7cAcVIFkVd6PeHJVr9jAMb jQj5vt/iTMUV8Z6NhUr8jCYwn46M0PlZuOKoLHi6AqlUjhtw2EYcmkDZmr+JbQLy4KZb 66wHoQXlb+idXA1Fz0ZwpN2gfs8q4ca96YCM/IpPLMPlwGZFgKJMp+TKR0C6jM7hjooV /hWiA7wm+XxVE3ZD6x82TynLbPLdu0EjviVpdjrOOAFn5RI84Ix6MPm9aqPt87C585He 8Elw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271802; x=1719876602; 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=/ZG4i3dx3G3awn1LpAYu9cuCTYByH4EPhFHcmFTw+5I=; b=b4Z0GD5+yHY7YI6Y4KbgJig/Eim8fgiOrhEVaMiMzSZB07W9QS4lIaGv5rW7GYol4B zJh8LZl38OjVHfKh1kdXxx8k4gE+XGsDQUSY5fyI8rD+dHzcqf0fkP4n3PTf0/IkJjpC 1vr2nwGMVoo0YGz4gzEEJasZNSvg0nat1VOHaCRI5woxzDda9AOpC3sKyLeEIh2E+9bH U3RZlHCo+BdfhO9vyo5bDYLyRpxaTCn8WWB1DmTRX2XUBUdsIRIf4xEWRzyG623eyuFT bGPxznIVrvM8d2GcggAeWJ76uYDpTSsW6O4r1ILKDkjQos+qb83a+a50eNAqtG3WgdTo lOwA== X-Forwarded-Encrypted: i=1; AJvYcCXjk3ZItVM6CjPi+tPoO8MFD/oLBw7aJqSSRNYiQVW7XNP9sYug6D/JDvx5n0mtyyvDAm+co3mKYPZKahqAM4b/e7Rr2UiwMZPTTJHJ64Oj X-Gm-Message-State: AOJu0Yy4DgrdJm64yqZOpXRAncWvpMdbxa02rN4VkeXn5drtA36D8fw3 TCgy9rBwoJK1w/3Cemndpmk6ZMtFKZJDqbtu5yGXjcMLIMPGQ4hqdJ0503OKuje2fCl15ce6HnK vjw== X-Google-Smtp-Source: AGHT+IEfb9KUh1OpOD8DwIk/54klv7dSo/nLX1YPQZQ44FjQ7tb2FCGqwu/ay8BBa1IDIHl2DafOvSF/pwc= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a65:654f:0:b0:6e9:6c12:3523 with SMTP id 41be03b00d2f7-71acda64918mr19622a12.10.1719271802360; Mon, 24 Jun 2024 16:30:02 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:21 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-13-edliaw@google.com> Subject: [PATCH v6 12/13] selftests/riscv: Drop redundant -D_GNU_SOURCE CFLAGS in Makefile From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_163005_760743_A4D7C735 X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org -D_GNU_SOURCE= will be provided by lib.mk CFLAGS, so -D_GNU_SOURCE should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/riscv/mm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/riscv/mm/Makefile b/tools/testing/selftests/riscv/mm/Makefile index c333263f2b27..4664ed79e20b 100644 --- a/tools/testing/selftests/riscv/mm/Makefile +++ b/tools/testing/selftests/riscv/mm/Makefile @@ -3,7 +3,7 @@ # Originally tools/testing/arm64/abi/Makefile # Additional include paths needed by kselftest.h and local headers -CFLAGS += -D_GNU_SOURCE -std=gnu99 -I. +CFLAGS += -std=gnu99 -I. TEST_GEN_FILES := mmap_default mmap_bottomup From patchwork Mon Jun 24 23:26:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13710377 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7F3C0C2BD09 for ; Tue, 25 Jun 2024 00:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hTPs3rPHo+NnpVrMufhNOfcardxSH3A2IEGwg60ZbNE=; b=mI+CwcV+FBD20fKxQq/+BhkY9V 9zp6yGzxOqP8dgIAHncJIWaWf7dGSzINqfaNuAhAMc2FpfkohaamBF0zT+agiSTBRCukyuaGXAR1Q SWygv7QjlPRWPGgS/TTKOX+FMJDAHLlPunBClKH+VLZFc1sTqcjVUBZGDqU1EpUw+kDlE7vEWclVh NqkdLkCtjzQXFDUKTbDFF6o0zLMYldRnRFw7izW1X2LPKBZBceHmBzW0WC5wYWXByjno9AAnEQD+m CGqBBXpIT4Ih7TiUaFdqzzrefvPd+OH3gRYxDhnE9Jm9BZLIv/2tfn4VjL5vtQyyDtyrGn2CgPCwj d1rZUviw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLu50-000000016Ed-2s9o; Tue, 25 Jun 2024 00:30:38 +0000 Received: from mail-pg1-f202.google.com ([209.85.215.202]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLt8U-00000000yk2-3ERl for linux-riscv@lists.infradead.org; Mon, 24 Jun 2024 23:30:22 +0000 Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-717b045b0a1so3866266a12.3 for ; Mon, 24 Jun 2024 16:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271808; x=1719876608; darn=lists.infradead.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=HmF+q3rwrhR8UU+6OXTpwv5GaDaD/Y47DiJtkxDn41A=; b=Rm2GQn3H+mgFNnt6NWZUKWGhivSLH0d9IR+mMNHGyfs7M8vZxXVM1jBBq8+5HiAWim PPqIVYm65q/BNNdPZQReNh8b0ar+SCV1N+EyMPnHyRyyJOav3prVqQculCbthHTi9gew XdOKkw9GAai2PXw5mbHTR+nZMjNORRwH1vP4KyJMVna9iB2ZmAW76cb/tPm3I2NmWU80 2pY5zqF5kRrNcreFLtmyVL4Cm97/8sOhXqa+89sJi+Efd5dK1R1TogK45km1X4tWDDn8 YYvQoJz3juZGYHKkI5yqgb8EY4fqVjdNWwUfbS70ubKsjx8HpCfbq6WvmUy5N19coVM+ AE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271808; x=1719876608; 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=HmF+q3rwrhR8UU+6OXTpwv5GaDaD/Y47DiJtkxDn41A=; b=JM8dpfQks/v4sdih4hQ6HgZVgD99CGPXragsSc1AeTvx2ZRUCuedE5Nim9DZm0yExP YVN8iQJIj3m/+D9+I3yaf7in7knC1FGtVcMcK/5AvO8Sdw+mkAu+jfPz+1qZUNOClV+j e8jL4Qx2gL4PKtzu6sIY1v4a1qBigTRDp7dnRD6A1n6LDK/LMXTxPFTbokfE1HxToEeH q24objlJrWue121lkGU2SwuQmOeU6dDjMYpRlHzF64Q+i/epEhfx2gGzWgCdfuIvk7fW S/Aj2CpOY8N914GXcgb+b8ajQ1O3pBwCQula/LNU9OfjTySgYJEjC/uaKMU0h7PPaC64 nOfw== X-Forwarded-Encrypted: i=1; AJvYcCVD57nJcaJG9aIuTpGp93r9v365wDUJrDsXsgZoLLT1yUIpIKYydceXnPADetcd+c8LiN67CiFd6L05NThhlGTSkc9R8Od+6eCxOvsb2unU X-Gm-Message-State: AOJu0YxHZC4vOyoxvNVFtAHuST/EZ1aZH8U9jBY7lDv7+dcOymx/n4QI f575Q7oRE1Ny8jq27UHytiL4Dj1euhCMlN3Huo4lqn3k69Kmv4J0w8MXtnbKj3GDj4JEa80PzbU Utw== X-Google-Smtp-Source: AGHT+IHcaOj/Ro9h0704QE00MFW9hpEi3kDY+mehE3/RAXufwF49RwalyubuviiuKxGcrX2qWa70mRNXqFw= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a63:9d83:0:b0:6e9:8a61:b8aa with SMTP id 41be03b00d2f7-71ac38a3772mr20790a12.0.1719271808040; Mon, 24 Jun 2024 16:30:08 -0700 (PDT) Date: Mon, 24 Jun 2024 23:26:22 +0000 In-Reply-To: <20240624232718.1154427-1-edliaw@google.com> Mime-Version: 1.0 References: <20240624232718.1154427-1-edliaw@google.com> X-Mailer: git-send-email 2.45.2.741.gdbec12cfda-goog Message-ID: <20240624232718.1154427-14-edliaw@google.com> Subject: [PATCH v6 13/13] selftests/sgx: Append CFLAGS from lib.mk to HOST_CFLAGS From: Edward Liaw To: linux-kselftest@vger.kernel.org, Eric Biederman , Kees Cook , Shuah Khan , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , " =?utf-8?q?Andr=C3=A9_Almeida?= " , Jason Gunthorpe , Kevin Tian , Paolo Bonzini , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Fenghua Yu , Reinette Chatre , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jarkko Sakkinen , Dave Hansen Cc: linux-kernel@vger.kernel.org, usama.anjum@collabora.com, seanjc@google.com, kernel-team@android.com, Edward Liaw , linux-mm@kvack.org, iommu@lists.linux.dev, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sgx@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_163011_024310_518A38B7 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org lib.mk CFLAGS provides -D_GNU_SOURCE= which is needed to compile the host files. Signed-off-by: Edward Liaw --- tools/testing/selftests/sgx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sgx/Makefile b/tools/testing/selftests/sgx/Makefile index 867f88ce2570..03b5e13b872b 100644 --- a/tools/testing/selftests/sgx/Makefile +++ b/tools/testing/selftests/sgx/Makefile @@ -12,7 +12,7 @@ OBJCOPY := $(CROSS_COMPILE)objcopy endif INCLUDES := -I$(top_srcdir)/tools/include -HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC +HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC $(CFLAGS) HOST_LDFLAGS := -z noexecstack -lcrypto ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ -fno-stack-protector -mrdrnd $(INCLUDES)