Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp56884lqp; Tue, 21 May 2024 18:22:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHuXLes218/OXq0qSQuwtIENy8Wy4MOrrbVNpTE5kslGEJUQdrReiez043Eoo8NneX2+tPofTYiJ2E+tCx0LKRy4Fo6UpiNy6ikSTmWg== X-Google-Smtp-Source: AGHT+IGOW5zoK0/Q98OeapPuqsTGNu7D+QJMO5QFePHI+fQnvvGlXcX1gPI8uH7kr1PvBRHJYd2v X-Received: by 2002:a17:90a:e10c:b0:2ae:c590:b06f with SMTP id 98e67ed59e1d1-2bd9f465363mr811837a91.18.1716340961309; Tue, 21 May 2024 18:22:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716340961; cv=pass; d=google.com; s=arc-20160816; b=B8HYuYEIGMl2kIslJDVDna7qMfuSRo4J0OPXawgzqjGS7TeVk2mVSJd9E8m0AnyAvq 1DACKpLUxEjwMzPDMHgMiqq2vToHi9s8B+rQalW/BSOsRTmxMUpjSmOCwruqdrdEfd2a czWe8jDfSkPRWer8VUDvDc7tTmB9G1gtImzi3DCrP3TsWtpMSkKBU3XcLQLxDLuGeKEX wNRQ7wgKoiVPVNhB1vaWTk/IT9opd+5x/5w8lbTUrES/6BtCTzzw1N7TuVEAJtqUN6RY GO62FV4XZv1RpZhqwinq4ZoZxWoJLDxOdMrxHUSn4uryUB6Eve91uGpAzCoocEoMAeJE 5UTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=NAsd/Ppca2ejRhM9/9MWOjE3ktFAjB1L9G3cs3vun20=; fh=lLRrEqdsYeAaFadPJLdOa4GpCFWfS8Vo0MUGmFhIzEc=; b=bgnnvnyvro//p3eQ/Y4QTnErRA09akXdPkwXnxYWiS6B48k+2aLMOjco5+Ihb8uRBf /3iDhuwPpTn0VdO951LSDdds+KbKBEj7Z4gEGRcgOtLx204v//p3u+zUHxOTF5oICe5P rCPFsPAbfdyT13V+nn8JUWIdPKd7KRLzIkYf0MO6tfJt0pRLQFFcCRY8+80AA6tLPgX3 fWCbllvEKmzhJL34W1ytSSBIqNAfxmOghhfJOhLtJIXoEYT9+l1zSS8DjGHD3TNU3ohM PB/mla6DPNDoC054uPZmpocm1JSjLWQiVe+2Q7yEVoNvu3x3V5wFI+MMW8PxFMJfFkgM GTWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=huLa982i; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-185631-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bc9bce1bd2si4956534a91.122.2024.05.21.18.22.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:22:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185631-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=huLa982i; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-185631-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9F8E6281118 for ; Wed, 22 May 2024 01:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 601B615749F; Wed, 22 May 2024 01:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="huLa982i" Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.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 3588F1581FD for ; Wed, 22 May 2024 01:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339734; cv=none; b=YOWtwOSq+lqr9ZNZpL56bTVIWeN0xWYbBIZDvMA0YAlWS5lQx3cVXlvrCI7TUcCMPHkm/R99+6SywcSgfwDms/jOnEsqxnjSUE/8xzTnazXODIVlYPSCIsymnQgx6y+/yLNGFq0cNd6llSplewtXFKcK8L7hR11RnIxXwq0ggwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339734; c=relaxed/simple; bh=cNihbrzeHXKylEz/SCN9dJ+kYGl2jhozgZowklGSBnU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=IS1IjUqzN8jtT5kv9u3nsJVutK/1/yBRsqnWudexHVj8Tds2vCsU3xOihhXuuwT2e2SxXWDGjlPHL5kmpMns1qnrxCh8sKTn/rlZiHPHyGazD9YK/oOXd4bmWIwAHGTN771aUpPYDcJm4aw7Jezo7u5awEEmUenjfy9eSed834g= 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=huLa982i; arc=none smtp.client-ip=209.85.210.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 Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-6f6d7f0b304so31952b3a.0 for ; Tue, 21 May 2024 18:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339733; x=1716944533; 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=NAsd/Ppca2ejRhM9/9MWOjE3ktFAjB1L9G3cs3vun20=; b=huLa982ip39nhYcAJ+yjNXdol3toF+VODR4r88JoAy3HWw8LngTRTJYRVjiMvFraBx 684LfoMT38IpJgArwassPpy3tQYzS0k7xDRR2HVtM9tvs5ywB1Mm7TG+DXKbVec9pf7J vjGjRtxs7UpdCh/r+rAqIHjNtp/v96nphwVRYiz6wuwDOv+jd5D0rdr2dsS+aTvNm+EG VFGqHFYitUmPQjMqhIW0zNCvpPhBdUEAPY4Vj06xA1CObBPWwDc3a1K2RUI9VtL6Gic5 kfnJsw/BDFvmJuAq2bAhomirpC8Ao/hbEff86KrUbO7pWaMREBoAshq1A99ZHiAPwknT 5OBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339733; x=1716944533; 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=NAsd/Ppca2ejRhM9/9MWOjE3ktFAjB1L9G3cs3vun20=; b=X3eZiFIaU8K3qHCTkLYjSxHm1Mqd1C0uTfhv0HIk5hEQ6jxis8zeBBx0rwg1zg/J/v DBPE8Nrd4nLoqUl2XM3vNcUB0XDBJEgpttQNlARt2ZVWZESEcnLsnu6sLqH/bPpJUVf0 XtkmtfHjMeL/iG5UthMMqWY354pGczDVXoRWSDbPOUynso/NkrBg5FqTARuK2fkNWprt gsa7GCwx2RDsDIpu9GK8SvbPzjBQ/+xe38ID2PbF8fDqqfDb2Smw7e9H0RX6JvYGLPn2 U17LSTzjCeWqx2tAqy6xYVWhtNnXRbX9mxT7nz2lkW6hZaZP2Duh5HqWrbSRR2d8lCxL Yuqg== X-Gm-Message-State: AOJu0Yy0Z9p/BA3IVnBd2cJq60beZrpIJ5qkCW9m8jdGYyFgeiXRho3O Kk/XCI7285rdWZ2tyu2lnQZSBrPD24Ql+OMJ6F4Hjb7bvwGfiqmSBokYPGjx0CDfZ6q4sjY+bgv J5Q== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:aa7:8888:0:b0:6f4:9fc7:d21e with SMTP id d2e1a72fcca58-6f6d643e499mr24375b3a.5.1716339732719; Tue, 21 May 2024 18:02:12 -0700 (PDT) Date: Wed, 22 May 2024 00:57:41 +0000 In-Reply-To: <20240522005913.3540131-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-56-edliaw@google.com> Subject: [PATCH v5 55/68] selftests/seccomp: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Kees Cook , Andy Lutomirski , Will Drewry Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, John Hubbard , Muhammad Usama Anjum Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum Acked-by: Kees Cook Signed-off-by: Edward Liaw --- tools/testing/selftests/seccomp/seccomp_benchmark.c | 1 - tools/testing/selftests/seccomp/seccomp_bpf.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/tools/testing/selftests/seccomp/seccomp_benchmark.c b/tools/testing/selftests/seccomp/seccomp_benchmark.c index b83099160fbc..3632a4890da9 100644 --- a/tools/testing/selftests/seccomp/seccomp_benchmark.c +++ b/tools/testing/selftests/seccomp/seccomp_benchmark.c @@ -2,7 +2,6 @@ * Strictly speaking, this is not a test. But it can report during test * runs so relative performace can be measured. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 783ebce8c4de..972ccc12553e 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -4,8 +4,6 @@ * * Test code for seccomp bpf. */ - -#define _GNU_SOURCE #include /* -- 2.45.1.288.g0e0cd299f1-goog