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: 807414 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 564BB1A38CF for ; Mon, 24 Jun 2024 23:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271745; cv=none; b=RpDfC7RPS5oUJNpkyoq7IoLBx6MR1+j48XRy9owNWOjhrIoKnYcjIu4aCQSh6NYGlmqIV0QbutYmuQ7znPlZHj4AT1BtTcTyQuvBsEyEaRTYvma1YOP7ETyLqfYoVd8xLCgXXpyrEQqHUP2ielSmPLxEMGPFT6QWImQfV4CaYwk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271745; c=relaxed/simple; bh=NqMqA7QWqr9/+mHOdPi0hG2A/sBfX5GGxqySZ84bEFo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=s+Kiy8+sMOXz+OioCRaMa1By6DVlqEl3WwgVnXxuakV7RBMM2wj65N2ydW0ahtwJWaA1DFQAghNTbYR7F1z2Ro47TeODWg3rn4MGqy6bCa7gi2rGsrCzAqLaG4JOFPJN7Eb72j6lOpBRKRy0iJOa8fgtSZj7dCaxUMvVFvvO+B0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JE/efsVo; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JE/efsVo" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-6c7e13b6a62so6217266a12.0 for ; Mon, 24 Jun 2024 16:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271742; x=1719876542; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=3FvMNQZepmevKVYCWA5Mvt/tIAvZEAV28z8ZXGZ1r5A=; b=JE/efsVoUwzmWPRqXGSh2dq6vncO+Kz48+MG0piOgvMYIaBUqwQbe2uS7XNoAI178i Pn91bpq6kbhDJf9nKlwrp3KIoIFe2XiO6lUnkSFx1NUfp+P1aFRM7R8q2x6Plykc6WKN pAmWJU8VwHKBrRywJUaesx9bzK8ztLue2prq63oiSix04IBH65OHoCCx/46EpjJoLmPZ HE/siN4yPW8EWWKdxMUf3zlVOxS7BD0v5wX/WGcC0SR1PJeL9f1RhW4Zj4y9CMfA2iRK Mc7ZrXbuSgj0Xc1Cc9eTjLb+YnLe3Kc+EDv+x1iR2ZEoMRZK/I7Iz34YMqzIbjNhLhO8 RS6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271742; x=1719876542; 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=OebCBfPb5ZP3LacQVR4KnryB4O2BBH9rWkL4p0KZ8NZ3YJGknaCCuDm1/M4ZuQgby8 U2QngMYWNk1m9qng3d5PWdjodDU7APadlJY4WZj9lqSmwfDhCzu99o88CHi7wXFbZCYo 3wmqjJ3tw37Yqs/oVmYNM4XVY6kNGEVn8R0nuzt44yrcBMaTtl7l9RkKADbzHauXlcOt Q5P1NiNgBIqv6Zf3OFqlmkQ/sMdNeRdQ/Kb+QZjBRNnGCGU0ZX2XeSXTvLsa8Vg1h9v7 es/7bE3nN44HhESst+NllkApnSPRNK3SgvwsgA1J+1XfUng87zY8f83t6GPuaqDqWoUZ XDiA== X-Gm-Message-State: AOJu0Yy3Ids7VP1FshZRtGakbKZomYScEXFarKNAIRMU2vM0OxA2VHKp fylajhs+B0HNTSsiBFtIRB/ZGK2N9/B46E7fk7PGUYQ3EU4QZO/k6sFgWjtfElX1b4bXnReU/ia Psv/XDD2vnA6T6+0lyEf8u9rSu98nkX5Jw52wYVVAUcQnRIeemZE1uElMM/0oHXugCUIIUuBvT6 lFgl2M6Ige4iWasP8Unx5VrgY8d6X8EPO+GRhnMqvJLbpa 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 807115 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09BB81A2C20 for ; Mon, 24 Jun 2024 23:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271749; cv=none; b=ritHDO4on0fEge5ANiju1J86LxH1I1iIV4yLwCpnG1fpRSIl0TTOT+HJo/imcUiut0sJkcUBkQ+fDXC2vT8Q6xQPUHgSXaA8UsKKvKP/Whb9nEJ6qza8kkjbU7ctk5v+W3Uu03cl+qjKUlcBm3KJa1V1Pf8IfAHpmPfDj7NIGoA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271749; c=relaxed/simple; bh=xwftBfRu5G8w7ol9IF7MUG9BSiGvoLKlVTWAOAeO/Is=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=d/MoAaznA9Zwfg6KKsnziv3PUS8ABVk9ihM6zwnVAOLtJIx8kpYnqLZ8UQsxgTtFAzhI2rfC6TSxLAtOeLplAonUFIu7WhWzjjiaNs65B47cPuynK728aItGnupfeZXJJ2pdi28LZnhbZfy31Dl+wvQGr+pygEAH90IAaylsMOw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=upDGTY+V; arc=none smtp.client-ip=209.85.214.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="upDGTY+V" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1f6174d0421so52226285ad.2 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=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Y7F8R5HE+eZyxlB2ebQLwW1FMzverfSOUo2IuXKNmLY=; b=upDGTY+VAWxjOiGt1aN8qq/MXQcXxCGhECKCR+u/ehZUHokbQYBzXGPPb67Ib14AYJ WS+Icm1jnUp19BMdXpFSNeL98mC+XEUCbkDJQQdWPHozIzclQDGsE2NnJ/l/XJ+h7O1m BssvmwEpWtykYwfNxyQEQFmdtvyoEdRIcIsrBkQADycUJB0CmlZmdQklWhhB6zAEHG/I qmHXlzQINVs+7F8iOa8zPeFNnGQXynyT4+QVgszv5DndlHQ29J5RjVYvVlGrSXxJBBls 8ZRfhzFO9fvFPh6hFHx772LXsRysy4ieIYujQB+oSWpQi4Cn3AKoENJq6O/tqt0a8G82 yRAQ== 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=oCvb9VbsIwnTvaKDp8rdY5UENrxKGZ3eXxWHWpaFAKxtls06WSVfarjDQupizgOfLp dwe/2V79aavb5WzY1CgyUzqvjONSx+P4gP65y/bFJAqxC62DQ8qim5agovT4DQgIX/x2 Em84S5IntJydTxGbjRbJmRpTtCxR+UAtsYwMEHxhPcpiMQluriIrK810ZYbh9JA9ImVG t2zIbgtwzmjiuPnTSuUnUXTzjjBaN/YnNn8hsfpm7DkA/jUzVlf5GiAFtkplR4e22LQf H7MY0nweMhZhbMKvNRa2LvJC9aw2TPcqULzh7obQP2nABSlBboOXU+DGdBXqfEbbCJ1R 99aQ== X-Gm-Message-State: AOJu0YzysjfuXkWzQy8Nk0++nwc2GbP4nhUBdN5ICrNqnk8v4D2nmEWn uPIp67g9zGDsDx4Aj5lMv4FHy9MKIhdPEZqvJhDmfYM1/+R9O7BxvJhZJYcjNGGvbWSn02hnt6X SEOkH42Cd1xi/N8Hua8+RkS41koMlceu44Eg6Hda7Mc8EtgxX88QIamMwFV/mUsPCxfxgClI1bx SM4edL5TNxIIwWJxMzMiY+DOUBBfdUfWVF5sU7gImIy/EJ 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 807413 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 041E11A2C2C for ; Mon, 24 Jun 2024 23:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271755; cv=none; b=UIHtIEbuvxAp+IM76r28scNO8fgHbaLwuKVYKVkAg4NbDZ9kJVBjE8ExQovV5EOvlAWi0lkxg7z8GT/aqOZJstWbViqB7jgz1MkMcPaFe4eoudvYMiBTeEX4Accycbjw+NK9vLCjx2S4CRdHWicg9nZ7msQKuXpZqw1CuGo9gF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271755; c=relaxed/simple; bh=atlaXfghS4B3aXHldxOAsjMJ0B5nS66NiP0mFQbDOQI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qJZ0kDX60/8fGcjCJnA+lMPRuLf8795T4Zx20I4YaYWJ2OyWS+JLc1H7EKOMQMOUdstO5g6vkkpdvJakLltB9mFGNlXEB1xG7lJj3C1mgg5jXokRUAI1tcsXf7ov/iT1deNZ9m1WIO4cNpiGU4plhWBrwtvYQY6lJZ31mQPNfck= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=HE0xVtLq; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HE0xVtLq" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc691f1f83aso2975251276.1 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=1719271753; x=1719876553; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=KYsd9Rb/6WE30YP2UPtx0BT+t/C3MbQ4dWAZpecv6Gw=; b=HE0xVtLqFyTZIk51B0Do773ix276wPIFJ8JvYYIGYwtvHZjeME3xxYujVloTFjjZlE oG3ybmiwgGyeycyTSypKEykWXXJLg3kLMG19MdwzUavLWE4SQdIGWmqHLDV/FhMDLzxV TdB7CqFNDa3OsZdR55N2ycYRdN/B7RvARkum0kpkp6ETmcGqkAtWznMRsUMogkz/u7ub j+gMiVmauMYhE13ad1QMiXyha/BIzVrFkDvA0CS1ne7fopxtET4bTfsB3YA4GZdpZ37F Vmklnqr1yzkaeVrS+ur+O/Gz1WFdkyD503/xuMbJC/RNv9eNh+j43Ps7zCPKyNbjVC1h J2tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271753; x=1719876553; 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=Id4xd/4EmDpGtzoXKmqvf5crI8P7AMyu3VyMkry04HqiWuN+VQxfcqo0Xxw/i8hVdK LwAVrCt3CjAcpahOUmZ0zFUuWx9gfeKfKMkaECQwHoa+DFxkhrwR4qglVf4W8ghiSLRT LXYbG1FcTkGV/dIqnU/OaFremGyXnQPDcsE57/P5WUwBahWy0/DtqKQVcIB8IkvPANje SgHruzbeKtj5wKL/bKP/fRTAxdpNn5AmI2MPTh11tn3UTAoLigJXFMFUBt4dHqsF0Do1 +E/Jj1xk6a8NjNbnpOwbd7N8X8CvItBuDlm6XmDPa+HgXGuJBnQWd18bDvM2LAsd6dJE QOXg== X-Gm-Message-State: AOJu0Yxrzcdk7anhzAIpsARYRYvW7/omvjn7Mk4DakESe0BEfZpF0O2X ilrShZHbv2dtzUFAMiAK0TxpsfKG0GPWUnIipu308LTLFzn3YevO+c5CewXca9yovHzochU4Fjb 2VUauKyZXTgvlmJKwqu+nXyDrXP00PpGnXm+qJLzNVQch+LxnkOx6Ve/17cDyoJTTrCHmqXAzvh UMJc7zRJYkBGaH69rWLL0PB+auaD5GaiVC6hY+no7GfNiK 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 807114 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C01C1AB36D for ; Mon, 24 Jun 2024 23:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271760; cv=none; b=ZGLkAi/Ugf+QtcIx0XJ5pKs3GpZfoxM/63s+z8MbnPQtaT+G50FmBu4K9oMFM/I65dx0nae5FVqeUCdedxYhpzf10o8/x4D99tFCavWdLN6ApIeDl0OUDxZXWlhJCzeRvYSqgnKzIf6yjwHGgGDK1Bu2Jcye/8NvR2xrln3iNCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271760; c=relaxed/simple; bh=pWNExpY/MivG68WT1LbkW1rwtOz84qP9M9G1/+5QF7s=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=uZS3+dSA6eQlqQhQYPxToXjeP/FOkGgeLjvxBsAI45g9KbefxSffmK/z7o3xX8pHkP3bqeJkAOtHlW3gOdaNZ+1cgTJugh0RDeH7Q9tezkTtJDofCoad4qV/0isz3eGFYd9sPm0f+g3fa68QNKddTz115w3Elg/UMsl1gmNiLbw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=kiUnGhmx; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="kiUnGhmx" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-6c559235c6eso6427257a12.2 for ; Mon, 24 Jun 2024 16:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271759; x=1719876559; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FdSDNYLWJB5rZ7zGFIgNmO8T8+rT5KpGbZz7pQfLV3k=; b=kiUnGhmxP+8xn283Y1uWLIy4YUf1VPp9upceJJQpng11npk8ZLAcLW7MR1mf1lUI4B IFH2DwZs28F1ljW99sqswwz6X21pGT53nzHpfhHpRsEal6EPpfDKMDedV8i0hzky4mZP 1vgZ0rRXaTSCek0xBsLbIqcW7euQwDdFx9KPACfzeh/AAzdGf/KZxYYJ99A2OnKCD+bL MNcKKqSY8cCSYb5GUO733joCCapmKcvEOqnh7limvZqfVTaNgS9Tusv8dm7I8iqr7otg 5X8fdDIBGSbC5oIwOOZzNChC+4EFC3wolmy+G9A3WOAhen3vDaTtwOuJwtV6VxNCyoSc A+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271759; x=1719876559; 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=Y3aXYwFAiutR+nJlyZqCSx/t+rMjKIZRbVWVFqt13Q1BXYuOn1ALSZH/JJzRmm8n7N 0DUa91XSTeZrV4KB272jdbkuOr96OFBVxqllJPnxuVFtjaT4F8xm7C5kscRa2jXk9K3V ehVlL2oVBgfYIRpjGMg37tVayvSsU33ERgf+mLsKMFvBh6zhToIK4pAmCEeKEtHNPDiR lEEwIYZu3dM7eE2QmdMfxwKHWzDiAl4SZ+TjyNaW/O9Ei/+ouBrPUHlVS9ewGX4PBOqg 3SCwnKYXy8M7Vn8EKwCa1pN1wDI0u+sON4xdBi7G+FFW9DBgssrU/Ns1LownccwQzb95 Iq6g== X-Gm-Message-State: AOJu0YxtZMLT/79PrQm15lVNSWM/qa3fsSV16zNIv9AfAgmL2bdwjGrB DXJNCn1U+UwraHTJkEAxMUAEQZRiqHPNr6u2YuP9hDOob22pVfULyCsuMPnM2dYonjGkciRvbYX r0y2A9lXmm/dyG5HAIf+La8KeLnZN/lfgmnInnqrd1qyTMqSW6TYPsRmjHzCYuxPredo0/TzEzq uJl/Fltl/tjQva7b3heTbEnp0NzCUPE9zpqC0HIkOWZYIC 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807412 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 915AA1A2FA5 for ; Mon, 24 Jun 2024 23:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271765; cv=none; b=YYy4hwsweEJuo9563PSFocCUBL75iuQosPXG97BIb4T97jGfERU9FXjcd3LefEzNvSKlQ5uQ0NkHm+6uG5IOyOPRHwcbI6S3b9ZwdyRcmdinMJQEdMdTwmma7q4zYAkfj146vJH47t9MhYhbAv7L7nu0eIS/VVzG/vAn7ChzIEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271765; c=relaxed/simple; bh=J8ziRZLZ6OEx+woE/eS0qKgArMtBUzmObf9KlKhPFtM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=QGggXUeewq8wWdeKNZHblTfhg0hDGyfCxnz0lKKHz6qCTOLX42ap4/ijKQil0JiTRj0PuewDvsKVTF8di8aOlJnkh6bU+FubwjAyMbGgTmraMos1sWtBVZO+Ts5c8V/I9sop6Bo4y7c/hCkRWLeN7c/aInhJ8SFF8n5UhacRqCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=jwTIR7H1; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jwTIR7H1" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-7065ba27265so5056433b3a.0 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=1719271764; x=1719876564; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=fldosNIASu5foth+y++2astaddaovQjRCjbJvozT8Ew=; b=jwTIR7H1efPNt4w2hyVN/DZKsJ3SQIrjGzy9VE83Y+RaBBCau4f5hKBIc0sLsoRBU2 WKC67vHOgMZk3E3m2qX3acnxdEala5uMw4X35nhRcht+kr+hpJZl2Ji0rGyHIYIe1cJr tM6ibNvjpNgLPN+OVoi9VKx0nnvv94dodMTC25Rs98A8KdIz26t1OLkOBjw3qoM2WspG PTtshNgJYjg0KCaZLM97808IIByl7psGX1ktzjZVx30oH/umXOm2t+isf4LbhTtpAY/p chpt5Cgebsx1x06MEGvE/+h0N31GZ6kloOitTVMZNDYCH2UFsL+VXjBxbXoLRD29cu5h OPUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271764; x=1719876564; 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=HwYmnwWzCqpZbGHRGfiqUdl/NI3rozCaQT0gYZ/Z3xNW8SztNsuG7B6iNruNnMGlrW BmyPeMAc1kyR+4pVYvsLc4YC4Okh8b3OZsWQV4TRDUo+KKQ7boCLi59gAFczlmKv0BnT PnvVzguLK8Dx4syw8/gLiu0DN6GaD5SEusT3E4OxbgNoUrCJqAV7mRqzNLkz2Jsxr3G1 yeNdae4AuybEER+NZ4M2OTd0neztekon0Fr65BpINaRyoVH/EgY6dN8uSMfEPIzW1CeZ aHzyIzp8VquHl/K5fiog9iNbUCXz3LwXEilwZSuwtGgquAU+RqgmWd8wBhavqxrAUwyG 32xA== X-Gm-Message-State: AOJu0Yxydk8A1LbSvzM1tJx6m1L/uO8p4otmLwrlt50//M4XE9kXq5xv BYaDOXKZXWp/NNUTXyupdvZJvIOJNzr1CH7rtV+lRxnMoLZm+UIiBaEZDKnCkYTca7MBa/PPZsW 8FL1g+cCCgWfBiEI5+CO9MKxFYNDDDHpTVLb/sHnAp4nCCeRj2VSnUsiEKn5JuXX7dfpGFYdogJ kcDzgY4M9E5FO3IZ5HTrQPnpMOdlwZ7coIck1wCHMBbdqq 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807113 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84CA31AC790 for ; Mon, 24 Jun 2024 23:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271772; cv=none; b=Kap1rweU/J3d16oVCB2FR04BQF+li5gcZqGRDuxJshm9rWflZJuchb2jmAyBNyXKowIVKaCtsDORQPK9ZAY1Ucaf4iKSmFp5LAprRn8fdKPo0W+iteB5TzecbEMGv2Tjy/3srS6s0fHvS04mBcYxEwxa3e22WpoXzw9+bUF971g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271772; c=relaxed/simple; bh=X0lnJ8lH8/hxDl4Hg4Bojyv5HWdI5Bnk/QcwrFlBWSY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Gsyf0BnNL9LWN7T584RcDmO/3wNr0Eb9qTmGO7TZUd4Mc+XF6ecqEuha5+qIcBMZC+K8bv1CAjT7XVI6V5jcx17KKobSxQcfTuLchJQByMPGibMNOFIOATpbgm3CL2Wf6hFTFJOY+VAIl3TsJMicCLKaR/VjITmzhc7LhB/yyao= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gVEsOTrA; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gVEsOTrA" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-706819a8390so1202024b3a.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=1719271770; x=1719876570; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=0Ifr8Ya8A/Lifd4HdrItZMFbfd7FCXsltsIVIxxyLaY=; b=gVEsOTrAOHTrdqZlWQp2WkUT2d7NhPD6lyhMpWNNkUEYpyuuAKqtVII8DQzYWh68Bb SxowWlKGeiLLLYlsdYooxHnvQA/0F21N17+q7/HlKBn1CCLzWKdsHUhKSIebs1n9g/ry OfXsYVBst8CfnoLgPF76b27aGwN8gP9xghIVY2jVp/ZGM++wQKlauwiUlZU0sH+xWOB2 CvVVAA7Av3o03LoUobyEvhsfpLxYGbwms5aT7X+W+mgWFUCDsxvGLeGGOyH3VB2EB4Ul 5pmFimG0izMNIOC5psMY9TTf44fis4F/+fKkTOo60zCGxAou+OMrWYFRRmcz2oOiFkU+ /Ibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271770; x=1719876570; 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=Kbplzo3BhulRHRPe1WQ408T/2paJtiVWE033XuJ0XpXyZvS8bOUDjqaEFgTP0hLuMf 6JxOjbklwpEa+2pkegmIuomjfdxJ0Vp3MGMCqFKRwnpSIltS1EVHgPmbxssLWfQ27ltd jO1OaziXaaK9/qShu9oLplmTzRlIT+ls+GP8ppIYglXlCV3tiEjdUU2HHFERcweScwmp U5JmbmG/JVcVT/V5Kah+/BHwHzY1HZm7sYeTPSEyooCF2UtXChaWGxDL2HzvsfLgviqy dt3jSNzc4uus/M14kFgJ3BtmiKrkrTf+qrMCtcBiKEgzQCfL0ZWC9dc/WgL/9xzbr6z4 ohNA== X-Gm-Message-State: AOJu0Yw9Y/F+PV4FugaJXGv7niebetZbLqP6Hw+U/JL2g06knX0sGbiw xFwz4xDzOAaleXoDgA8FlWrMkkqBHr1cvL6Z9EvKAAEwhTxuSaCWzuoenzraSeApWQWVlVCPLzy BbP6Z4n6KBKm8XChWm9DluAbpREthsxwdqciLWAj1tACYZJ1I+oUidUxnHIboQacqNCgumAGT54 BuiEejNbaITvBA6HiWM80Or9NEO0RqYnA0JQA1jruKfBHJ 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807411 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D21581A2FCF for ; Mon, 24 Jun 2024 23:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271778; cv=none; b=X5r8EErtDHp9Vv9/KzrvVda8Xu9Ks4dyy2GuhAZ5vpOWYv1fLGnvpmln3VYa2wK5Qbdavg2cGAs+QaD0rVI+k5AJms5Ch5BA3cA5cDhUaiFuWWpDf/9gzYz3UO1T3Intme6foWOnelpSF4sNL5Q7fTqFiJhy8Z4mpDYDezpd2lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271778; c=relaxed/simple; bh=CSHVkY0x8U1pXoBBLz646/d7/XSIXGdSs1WvRtCcMQw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GGTSyMCQEcJrb/jQRR3JwYYDV6g7NDws+7wVYbcCN+w0lrmCnxw1+APp58IJGVkaoM7D8dVm4dW8/9/XzK9M89wcvT44t1+uGenxr1b69F+AGPrWmqtz2JIsB+ZMbGYmj4tbLnQXKelYVdN3r4pOTObK9pTLEtTM/8CMfgizeCM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=RG9WOW92; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RG9WOW92" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-6e3341c8865so6341078a12.1 for ; Mon, 24 Jun 2024 16:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271776; x=1719876576; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=eCJX8+VvSnRphReKqOD6AqEhzLc1OgPwFHKFgJpo/3s=; b=RG9WOW92CuOu08kdU6IQmRn3UJQkiUWW/qy4NqcjdCAGTb2rNVNJBKX326BsRwC+lF iqyLghdY7NQVuI8aILR4YwBy696LQ/LOU5FUOIG08BKwz0delqqX5CBvyJx4npq6+ImO O7YW98/VDg2iwZhhcuIYB0UQP7MBsad/TlHLnbd9tStqMUBZh23So7udddzcGpdAvFPo MLL7Nx95I+0rkQhzGsVqDlgQ0qBHfMZJByOgHed2f43fEOhyH+/v6d6wVyYZsqUFQqzg pSHw3pxQNnUfV0mch1/1Sz5pFycYewxQMVPEgYMqFgNXeLcO5cp76OqEvY5HHA4bjwds wfXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271776; x=1719876576; 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=WJo38iOEbQs6HifToX3hi0lEblFS9uKG/hF6PWlOvAYfZcCLV+l0/BCtIr1WBAagJA c+Y8EZD2wwi9bqyvoQzsawbpyEYJDAp5l4n0FPv18EECxNLSSNHLBH7o8OONaxBWOOqp lvDcK9QIKtX1BTtqLlKS8nO0eQay7dlw0umlOm0hAD+9gg6XZGHUocOQcZCviGL71OmF KZoyaY5xMlacQBLfpit4q/ghuqhdvuHWmMB+7TsmPmH8LqGj7ynFQabpqjhhHDJPKSWh eWZjznh809pSrNni0w6mSEX3oURGJDZNQvdJ4f87FwVYdTmAZiQIp8DPmx3UwJJAa58q nKJA== X-Gm-Message-State: AOJu0YyUbKAWucMFV+/tW7xxrGanQSEUADYzezEK9sZowYJ/Bnb2zu7W T5ztAX0YQSlEsuRe1VtxSq9agp+a7XkJN6OB8dEmQVdXciXok04ucxqoAxopM6Fn2TGyPDLTzJC CqOJ+G4Tc7SKVfF1u4UnS5K7T/ntnEqYfx+QFg/5uPadcBxexBEyyLM+tcf763pUFKw5NjeCbWQ g37X7rb/wBTmvM/Yspt03dDBEMKonADbFsLTTRH8qKRVTs 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807112 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B59A21A2FDB for ; Mon, 24 Jun 2024 23:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271783; cv=none; b=b6mhYzcL/4Gk/DkuZ8aoygh4idNdiy48xH2rQAazLIHfRorjil3piQNXFlzkQp7gR9O34kIBRcITkXv6YVhdPz+j9L0szlmkBENDIFF3Vl2eTja1vl70URGet9Ss0d/006jZBP8MGOQ3Ggodd8ApyBZRFM+9GNnTtZHZvUtBKS8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271783; c=relaxed/simple; bh=Vn2wAzsGFTLvBvD15AbUZj/MnMw/n9DKUySpFM3EEW0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=CsJHowuSgoBj9WQTZmcJ8La0ihaFKZ1tQE8ZGKA9tDfYyDTzf9vd9yYE30+zPIPjUBRU3EGt6dbvbpqpTHozYq4gaN7xDT8zc+A9aF2VUoBOHOHPWQYFtRlqwigehiMzvk7JiNjJdgCDdD0roYXVEZndqKWwtEg2YgIQujdyfnA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=O4dsoSOj; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="O4dsoSOj" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-706694428e3so1770641b3a.1 for ; Mon, 24 Jun 2024 16:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271782; x=1719876582; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=QrZ+5Kk2oEbgMtgXaDgXkxLOd4phuQ+pRNBukp2bFkg=; b=O4dsoSOjpyiHFcciSmYjD8wUNpeXnEs8YzqzrRhRTW9+hxzktaHrxPNp2H2kPj3+Jp s7n1lOZ10pfSgkaaCzxbd8oos7b4piw6DQJPMeNa19FPQnfRK9rL36H3tFS8ON7WJd4O eUeD2EYGGgbywgpWrKa0369WylRPMX/pzPwY52ehzPFXSt/wWe2ug0U43Dw4PfMb/6Fi 5r3WZ36igtDS8+AM8/dQkHUXtuo3pcrpf2iwbnCc/rmHaaRNK+R/Sfhqqibx1KHbeP4M FFJl3R1NxTGD+Iy2l1SWPczd0Rx3Z0+jy+D2cqUAdbFRl/KRC1ppp6nlBJgdyd/ryNO9 jv4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271782; x=1719876582; 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=imKiJOMY+wOpZAf8oQX4SBRswxZlNJ3Jb2lCyw7zOXLENE4xfPkjjWr0XO3I54e3vi LdZLMKXhrCKaHUlij9BSFc/qJUH+4XZP5TEzXP7Am55HNNvFBe6Mc/LDue2z4+tuHqjy D7/KPLX7Xzdlbu+UWsinmooGf5ncb+0+f6iTDbTMNKgQBx4HVxHlYahuHrn2wE6deoHE RWF2gWr1YmNuXluzFfdjn0s/Rjg2ZODb6UeFwUegsfaRlJ/So202BSy1Qt6hnRlOLo/C 0FX3mV3QJZ1cBpMbHUzw1WfmzKBNq3YCoaGbz3LaI727XvdjBoAZobwTB1TAqemtVrS7 hSkg== X-Gm-Message-State: AOJu0YzcVMGenxfezufJTDLmduXM7A3dQ7uTXmnSilXko0ogHdWjrq0z w+3wznB7bT45DHSMdyCVTSF4Wyd4KWuQPKCUJmbmz4WsYkrEvl3FOOe3pEZJyKVWbVjnBzDtLB5 Zi35VQsinh6B3qqEEegx4YbYIzEYIxhMMPoHVklbzP415xUoPexdAYjAkrQKZClzdFz2H3dGqE3 U2J6iiXD340hecv93zODVz2t+umV7UKbYYiG8Q4jIGa+Sf 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807410 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85D301B47B8 for ; Mon, 24 Jun 2024 23:29:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271788; cv=none; b=DeGiXLDX6ibxN86NV6HcMQs5XBBmckVAGjSC8Wetfv45PbTpDOB7C5yRY1kRoLTNFiqfL9aXSjE6Z0jCc5YKAA/IH19aUukmbgqi02m0MTnXIcDQF5LcfdR8BJTrA9B+INKmGRmMOGnOHjvbNoypocQsNuhhen9sLOJwpdH/RSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271788; c=relaxed/simple; bh=7x4LoDZgR5E/QVoS9cmfJRmJxj+4a44E8Ep8Vb6AuSU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JCtjwvYCjadLhkr+U9lBnjAc2Wzlxfy39McBkSqSgrIln5gjLXQmiKw52wtI5UEt3dHo4pctI5VfuCFA0ZIpuyArjF+QXyo4KlxBGfL9YqeNqLchSdNlomRKKuw47MBAoaxIMALgp+NPLyQvRZChUSqJXJOsSuVzr0jLdbREc5s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=fglUzOGv; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="fglUzOGv" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-71b1231febdso3695434a12.1 for ; Mon, 24 Jun 2024 16:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271787; x=1719876587; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=rJFiGCZar+q63pIILXV1m5S/VTx8srfmbdTO812oVXc=; b=fglUzOGvNYajlX9qo4AgCZRI7/8nLv6yxfWNlaJ+GFds7jF8D9y3xTpRUY3h/5r1I/ u3Y/vVf8usrSAYfLVY/yXVmk11/b8rXVx61NLQf2T26mztRFAauLjbQJBQ0rx9nsHuZQ LiK8gwtpCNObGJ/xvsj4U7uQNrzvaDTu4qg7T2hg1Doq07aflcbcPcSGVnfCFLqPQDqd UxxxX5L5oZ88EJlV73RtGdbXH8/VAIq0A+Fhs8YQIfOHs7gpJzI3O0iUaK0tEYonzTdO ijutgw5cEp1O1Ezp812J7FnAc0p8cCVvPqIeBzChqG6ukRfCHEzlzWVdMNnpeoPN7Paz EAQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271787; x=1719876587; 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=jUtx5AP+lV2fV7PXMriou5wo5eWlhWQyf+ZFmmo3qlXNQidAiQrqNvfUly70/unOR4 puPXYBt9c1d8k79Adbo1I9d/cO2v+OyP0xom4HA7NT2+pinBtggPMB4xVOczCCysrage Ztp7l/19PkLqPzMgaPI68yCczy0i4YFdQ+4SWEFNiCHzqhjh42ZuwxUi5drEMUXl6c/l Enb6Ckgo5x18iJtAjju4Nsh9ATHE41oNPZeKWWOXDG5d6Img6g/V/pJEaoS9EBz1Qwr/ 6CtIlvwKCC0dCgK7n4GpEXnEXRi/BAMm7SXOQMA9IaKlHJa5cylzEsvMaGmi4lU43vAP gYdw== X-Gm-Message-State: AOJu0Yz4bwwLUNGYAeK4aYdGsr6GHyalNPezQHOJkFS4bJhEamUrA8KU BufHD+IwCatOqTKfrRj+a4sQL8ppPB2+ggz+hiCOAFP/zI38zPZaVSOZi5HT1jp96alys7nJCDe PokWHxAXh7WkHXnVJAk9v62WPFZtCkdDYAh3syhWg+IKue69ZtGstYBn/Q/bwV1hkp2ExQmC34t 7cfzh91sAGLVo48/PdRW8vQym/gYrWDN3EYZFydQztqdkP 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807111 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC5E31B9AD5 for ; Mon, 24 Jun 2024 23:29:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271794; cv=none; b=IJZgiMLpkovzRzh/2Zh/g2X2aI7HVxdFoDEM0SX07d+sQyYgjZ2EIAPe4vPxhXXueSAOA1eA1p8qfKJVjVf6WIabA0wDuuCwdep/45/Em7YXCbvp7+e+MiekjE8lg3U2eF+NrBpOON061C+RM5dWFNsmvqfDfPq0LV55OXsUxHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271794; c=relaxed/simple; bh=zjwLmup1M2qfYddBQWwqHOLkKVhU9xZCCBONsOyNtQo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YjKHHsmmDZTfyk3Q2D2dAoxF/nGCMSaaDn38wrq0UP9Vvf5k56Ul15Hb/6o3pmrLhV8bXss1VPqnRUQB5urAx1d0dCYi0KrdPPJE3mIWNyfvjcRJw3mv4iDjehr7t+C6MzLf1OKWTJ1+xUuvQe3eSLPRzftrulaYxWOo/TWUTQY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=WcazQxU0; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WcazQxU0" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-704d99cb97aso5870402a12.0 for ; Mon, 24 Jun 2024 16:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271792; x=1719876592; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=diaj5tFwwNQVaMCQX5T2JTz4mfzyRWuO7s480xW0M7E=; b=WcazQxU04XQfOtJQUiCxu4cjEtNueaIZyEVV0zgReea7GvZv6iR7oSBKjpMcagoYUy oatWcjj8GL8Ybm6pflFjQGrvoLDC4710bXh0YRvg5sa86NoZ/H/YE0EVutyz1bcMftMk YoCZQUKG+7CdwMoC5i+83sSqecYXaHUUjuF+g8lVOLH6faq+fW+9ejqIP5t9az4hOdQA REPYGokWUvzELv30l9cJJzYUvbennfdCuQ+5n2kzp+TnrNzGhA+2pQqtGNx3WPXLsldh 9Zau5hPS69enRL0fL43aEkuohXFGQCOr2eyFGvGzU71eGTRyGW4ARClYS10QK3oUPWGO 9xDg== 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=tXQX6hrQkBRfA5T4F6oDgYo4p0Opn0hW7E3cPY8cYEc30wiAnRCBs8hcFBdvwqVA5C 0JgRTRVXqsh153cwkguda/4+x48r4JHSxF+0HZGdO0YdcFIsozi0OxX+cVneHytJchRk XALybRMigz7Lj3F9Bp5Y+2FZXeKuOfAJGg5nIeqYXyziqF9WhgBKcaO82oAbUpEj6c25 eM5T2Jr3SJ9ZbIUEPAhTlS8J1WnBZR+v2hfn/gzyQq8RmUa+4KZUVGOdpxjAK/ncpqfI CfwLj3wm7jW/IBUEZWvHwhRlEiFiGjRryZCpPmZkZkoJC+ZtLE1Be6fSHD1AK6D49ytu HEwQ== X-Gm-Message-State: AOJu0YxD4DYFBTMlEderwjLeuq4w/3QdBVPhfkvH4CvynsOTxm12vD1v hKdNJObXOCi19VTlpsHr/a0V/Xwr71BAA5t2Fqckrin3enC314Q2obzxpNQayYLx5Y0cWg/xQPR f978WL87TWEybY/KEKVBwZs3rjHydSyVA7ZdOOTkJFp2AMgM2w3gkWQHX7FBGwnxWwXkVnPf1Mh K7W3VJ2xpUHipZ6pHjE7mJoZcHN5jPRrplJOyxDZ4etxP3 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807409 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B447A1A38DE for ; Mon, 24 Jun 2024 23:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271800; cv=none; b=VtpMFPjDScLc6Rt86oXvgtZEiqMng/dQqJZH9wpU5ZU4GrediuKWCuI66fuOlbq7hD4otg8IJdXQk8xweLNOYdWd/jGT1Mr/qN4qWVEkaj9Sa3wqOTtN1EKDw8MohoW70JObZNjJxv6BgeBEFUHKGhgw1996f9/eDUU7/tHYsAk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271800; c=relaxed/simple; bh=VPZXh7x1OhxAHC0bXKoLWNX1SyyNKVGyVHKLwXltTVk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NVTAla6zM+TnOl/5m6zTlY8ORdC2LV4JKeuwFt182X9SUSGNIXXtPBhX1/uZnTAPWNm4PFOAVUGjbcfANr15NkGzN0bqmtGWKF0TXywk3xFgzUzxtqROldPfqpG/VeTJQcEeV7em8W5abkgdn+XyWANp3FRQHRDD6If3xUPtQqw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=sJ9WdcKE; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="sJ9WdcKE" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-718c62ad099so3885277a12.3 for ; Mon, 24 Jun 2024 16:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271798; x=1719876598; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=q/nRYsPHuTaGMizrWA3B3ZZLI9bMolsQdLa0Lqckx8I=; b=sJ9WdcKErgLlS9olxT0s1k6S16PJd9szBIdNYdjRaOC/GOT62iayZaBYpluTrPksy+ NA7ahDqbJ22MIeo4CR51suNWlSzuw5hock10/A1q9+Pjz4gxXDxicvbQChhVY53RbP2m F4xD1JRznMZMPMrgxtAfU8/SysuMLXXAepytvf8bPE3O05jzbsfC1hJjRZ+L8lvqJr8v R/rru25Eh1TcBDR5CuafHBz8WaidZr2mJSUlzuMfr//aZiKzC4a9QR1lCQ9f2iQsx46b H/PukaRsqKMyQngxEp5iYmy+nDwGO3G1TLV8hcuiWxfZCLKZJp0AYF8otga+cNm/wjX+ 3z9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271798; x=1719876598; 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=sh+X6Ej+6BcQFtSQvUhh89vOO8O8TRw3Pe16RjvHCJgWUpquwpvXPGxu17dmnoUDXQ EfRdm+GOnK9KFHZAmXj1CHr2HLXH+qjGZxYcGJw1KCAeuuCmLNTRWptYofvCxGrAPdYi M/plWn2dFBmWd3Ku4Q0576lBaTFDBs+VqYI5W2vv0314Q1HgkQhNglZr8x2NmkuHBKEs GxG1RZd9p2xPnuCQaoXG2N7xfbtBWceM1/3ctYCGgsMdDSG2txmCwnFzZC0Xa9dO79a7 5dF0xYLSklUkzu5Bex1f0SvRNBwZRlQYD7wjQLMY6+zgOZjUQyYYsNJv8+d7tLX8S6ir 17/g== X-Gm-Message-State: AOJu0YyaYqbayLaGp1Zsamqn/RbZB6RcRQ4gpRV9t1JGhp29JnywMghu dAqsgz8CrUGytorwcFe7ikQ029N1V6iNynSgnipgJuFfAKDSl7tEgV5LxJmlTJOjM1F1jpKu3IQ IDHkd2ceLe0pDF70HruwziYh5j3lTNx3mpUbfq8iu/W/fbhDf4j60hvP5Cc4zKxLbndz/5WAkxW VYhWw/mizQbo5x8GuWUXEPNuZtMIDO5bBssWyzJKSOp6XD 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807110 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CAD11A2C01 for ; Mon, 24 Jun 2024 23:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271805; cv=none; b=T5itRO289Njd0ZlyQU4cIT25KVov/ufP6ryaTMQXMwztGXTFx3E9b5bwU6utj+3C1t9sv6Kt1y3xHEIye7Chbw2XcZOUngCFFjzmbdOTL/4ISnqSv3HY6R3+jBTDLMtEu7w5XSUrjZSsARlx5mp+FQCCSaicZjIrSqRwN7dNx9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271805; c=relaxed/simple; bh=HKl8DYXudRkj2nEiXmQj8vs+8XvlCafs7fYfuFr5khk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=DeJyRPigBFRrN9+Ru6BuRGb8nYUGAvp/9qjpv0eNrmFR6Dy9LdlsSBAG2tmCCYemKVvMyobecc/nQ8BqWjHzIyu1xVdRlP67RD0zq/c8NxEX8AfkzFzbUDup+05WBoIjuvu0b6b/NuSvEDmi/zE0muhmWON+1rg5Ym/JilQpi5E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=xL6REk6U; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="xL6REk6U" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-6fd42bf4316so3896025a12.2 for ; Mon, 24 Jun 2024 16:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271804; x=1719876604; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=/ZG4i3dx3G3awn1LpAYu9cuCTYByH4EPhFHcmFTw+5I=; b=xL6REk6UqBcxaXZ7cFQ3ehfDVC9+jhA/Fym84uuhJw05TLR0P6Q/Ba+pDfVZpWvq5j nKpgi3uUEZC5XQJY7M0TIsOPxZDlgR/z0pr4eFLaGvwZOcrKy3H9QoHb92m1t+EJhplM qXlIU1ISOvjfglD3m5q9RvaodeFquBhHl5bOZ6NImUvw4edbBFFDL6vYMhciXPhwBA8p w0aSFU0lXYihMIMQgNBDGjGXxUfRCquLc1UCHdXezvi7xiixaME5zBs0fwk6EF/wGmCe AW76rSmriG0Md4zvuuFfi9Ri0Qpq4wC7vDA6iBAWj7rzCoTeR43aWMvNxOi0Blbh1E3y 0fDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271804; x=1719876604; 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=YpafKd58Qyq5UTxYWogNU7VqGbstSORdEXRuFAQ3T/HQprM7jInerknPa7EdoU9BNe 6hnBOyorDy1CllVQUFiNqWG+fs264g6kYwoHOWCVpEsn+fyMvmh8UHe0jkH1Sl5dAM3K 5RIdcBHy14vTktM+6PIKFoX2s10N6dawpeaQ171Axn8zervKQT55bI/Tz6co0ryvHXbj 512K87ZuzpAIOQNH7Zw3To2E/+YTYRyxBLPClA4qHf4Le+A5Qp0qyzH9ozgOorRtUCXF TyzZqQ0keEY6eygEROMeaqi5/j1HySmaAyp/V5nyDJsYjCfWBGfd6CdmiRAFdrt48RQn DwsQ== X-Gm-Message-State: AOJu0Yz0SAXKa7h8IlT9ASQTxOHdNy7RWBlFWoSMtHw+Y8pYY72dsfyF E26+8YK9XncFGE7eMs6BVyqgKld5MlPYtOC3afmjxf8aeI4+1Hic5pXV/1Y+ZU0i5TCZ6HUshHX kAKdovLT2yUMbsQwML4Al7N8LIcbEB4CPBoP9F3mHcnloeR7OOpYdVHLTRJ1LLyffIL7WG1yeNG yPc0M8LKmTR0B1PJw35wAhXo81RjR/5StW4GQNZE3+/cCL 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 -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: 807408 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FACF1BC099 for ; Mon, 24 Jun 2024 23:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271812; cv=none; b=RE93WXq1NTIDo2FtvjqCwi6bWk+N6A474Kpamv4l7Qp3kPzFISpQb8bUKyMrmGBRV8GRv2+rloTKo00c5/UbQnPJHyWOL6Je0e/rowRe1eJ2b/K96lpvTSxODQNWjMPOYl+rAsrQRwpEej2HidavnTSs+pBrIsmkWJ1tXYF4Wh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719271812; c=relaxed/simple; bh=yboJ131KH75Qql/fVo88i+jFE+X+ykOpyD/H9YpbbNU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=gWmuvxwvEEkbVusKurKQpzFcL07EImuNIc4YTLc/JyzyY62fPy8S1N5/m1fOov4liNcXkJCWYCzzJArhjq+5C6s1IhHCAk4IPcBmbGPErhj9899qnRl9MD+1+j+opQy6vM9hhJCTqlqnPqDohLIWYby8d+wN1gTVPckfLMG1DBU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=RxcHu7J8; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RxcHu7J8" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-6716094a865so5941669a12.0 for ; Mon, 24 Jun 2024 16:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719271809; x=1719876609; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=HmF+q3rwrhR8UU+6OXTpwv5GaDaD/Y47DiJtkxDn41A=; b=RxcHu7J8GG9ooEU1mQavdUQ16Ty88aMw8u8vyst3/5Wy6bFDzVZIw3BqXMHyX7LcG5 EOZ5LQ81/SWPzmyMwy6F9VDV90ckNKZ0G1219wQO+zFwrY5lZ9KVp4uUmTSVshD8AwAW 6ELNXt2a+LzWSMCxKNhozkLCtR4AxkUH25E7Kzf516SBnZ9hXlTbXDklqBpryC/Tj622 K51KcdxL9heYhSkNi/sHnkmei1K36Y/nds6JXSRJj7oUfPucRTuov/HFzJ+F0AdMU8Vc Sc7acM8oiTugct7mA0KbbLWBWBW7Z2VfQ0auNSlS3AJjdhd1SNs6KnSdnEST0XP0ADlB r0LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719271809; x=1719876609; 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=CmIryN0UwWAnPogymIio0Vphif7BuYoLIDbkkRCCjxCJ7hRf1jS8YZ8R6R8k46eR/S cbeJEQzbiZLvTySQmpR9U1Q4/VG3I7J944WP6O7IBIAkkZ0HOcm9YKePDTwXudUKeKtP EvoFCD4fSUsXTlOmRPbut4hrIBxuwGtEO2ay0K5RiY8jMVmnZvWpHAAV8Am21CXBb6hW F19kYJgfxCjJJw/holz5H4P6OUb1rn0YI9aq9OiaY2EqAkUyb+/HNJwBCHaHCu4nms9k Tav/1PWUDSd88+nWkOscxxD0S1jqzp1FKg5LXbXHS+MXQ/Xa+vWlAOnnn65sA/ADS0wV dJNw== X-Gm-Message-State: AOJu0Yz6Yvf4jwbb25pOYY1kYMSM1U/U3lF/u+o9gfvbML7WjjiZdYGF tqbKcQZ/ROdcRa2C9K962XDE8I0yQOE5RLVtJlIlv8TZaIOwpDniV0TNJXM4dz7NVpBdWnjC1+H tJxeGJ+WUoYqy8LouxpYMT7nxThImKzCqJG9ocxNI8HfizK/H9TqCBcmYJZLN2zDYlY39Uqg8FI Dx8ZnWKkD8C1RAyc/2z6q4nDCnaELcDGLqA57Xyo9p6QDo 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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)