Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp90031lqo; Thu, 9 May 2024 13:35:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnnpTTWnSgJovfJZVQjrFAPLI+zeivnYCfYMp8VQyhbpZ4fw6grimSgeDzsCHKWDcanouJ6ebZHGJamXCsPWz3SfUVN75zfGu1bncBpg== X-Google-Smtp-Source: AGHT+IEEa4JD2hkn2bpblQ8zXRiyyjV4vIvPmkaTVI7Ais3eTCH1gwp9nZvSTV+TEAuRogkAbRDf X-Received: by 2002:a17:90a:d348:b0:2b2:c85f:a835 with SMTP id 98e67ed59e1d1-2b65fe21483mr5635412a91.15.1715286947629; Thu, 09 May 2024 13:35:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715286947; cv=pass; d=google.com; s=arc-20160816; b=pJuMkHjhtKh195aKYjAGBUFQAgxWyIK5GuQNlLEjjNljoSSaVbPxKHGo+JLvjNh07m nEIVYQomDtSJJpW3eBWE3EyxH7XcHJpj0gKRrG8QBmp1r0+71czsDTWqVFTSpOL2vwLq rgD2F6onnWy/katANX282L94jXtoYcpK4QJy3gcQ+ly4GbFL7qK2rnGhKV4o69q4jkKE WNrcbpq1WmxV6kCqWC+wE4jMNjso2tCBUJ5FG6XsFUFLTQPXORzsKE/T/AE/woVi2aJh 4pSfkmpQ3IroDsvS33hwbJprh6DQCsAOkeBAorNP/NA55cDSzx4MiKAL5EhlICDPSHtP WbmA== 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=Bbb2U4Zk3Yr6WN7VZqepw83lSldjIXt27jnu3vVFb54=; fh=5cf/CWqCVxv5w6JJdctMJVg427yW3kgvnH+2O3UsmuE=; b=E6gFyfNUJEE9Xivpb6EstN0HVhN2W5+jOLBFymDyb5dkJB5ksOTopLraiYPO7rzZkC 15cAYKQQ2CD59dgUDRUKfgp6tMZuHrCohoH/t8zwQJIG9y29mQ7UC6IWL+i4XRGJ1FDE mg+isXh2MogH0s7r43Dw7xaB7ZMvbeSlzlxNqXiEHuI3mXUDNCHsxznIDGJGyAaeOSf5 43qvD0jwlh7RM0lN3J22JoZYsI9A2FT6cADKfabciFBYRQQrQCGQest6bBe6Jc2sC9Qg DBIAfBHV+NRDPWC6WoRM4Pf0yjrmbcCGoZ0Dvs/yzQ5/R64g4JxMjYEkpPSG7lQ+ar1m lFnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=j5wq2bX+; 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-174904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628eac8easi4248726a91.91.2024.05.09.13.35.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:35:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=j5wq2bX+; 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-174904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 11A31B2600C for ; Thu, 9 May 2024 20:22:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 319ED145B1A; Thu, 9 May 2024 20:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="j5wq2bX+" 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 398EF1459F8 for ; Thu, 9 May 2024 20:03:34 +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=1715285016; cv=none; b=K9BKhyuF3sKTrEAgU5/AeDE56cACopFpNqS6TaICYCq7lAvFmHW7RylOZbGMZhQfmrVZt7ie+YZv+bjIc1vTKlZgUtr/POa+gAz1XUs4z9d/n1X+TJfhP2tZb+NfyzZjw/xO5EFeGvizbXIp+pQWUq6iGDzCAAJbqJ0yEGml+nU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285016; c=relaxed/simple; bh=/khkP8W7dsNEuasGGV6J5yljpMQh0ZwmIXillppvC7U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Qe7uoDkIuMijH5bhUqKMZxJbgvQITSQKIsgNPjzOOWJXteUrPQHLJADHzZIBo5U1QIDbR72SOL3eENfPTjxmOjRZ2tP8+7SEICwRommEsMXrXmBrGi0riRYM2k/NSHdTsoxQbQGZM0cZ9pJ+t5zdNl0wbdlsjjrSCe0trk/OkyM= 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=j5wq2bX+; 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 Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1ec3c838579so11778965ad.1 for ; Thu, 09 May 2024 13:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715285014; x=1715889814; 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=Bbb2U4Zk3Yr6WN7VZqepw83lSldjIXt27jnu3vVFb54=; b=j5wq2bX+KXkA9TDwBdQoSVuHx5AppMahH1S4aMQNVrG4EjMFfjGJVRuBpYmlG8wqMn EYMdL9lOKcFcFGURggvCojUJPwasU+X+iszsw2aLi0AgicDCU7ghPZjhlKmlDaGVYbP6 jZ9nG4zrbpaN5IKF5VKh6r0/t5aAshVeY+aoUg/iH3qVEtuIclnVD0TvXrJnSt+DOzRv 2pP7DfaOBOq28Xr1UqTck4tubiBhK2L4HOLjWzH6wk1VWgC82LHlNk5uPtuVYAM+leeM UDzA/gVgSgU5l4QAqupdKhWvunrpF3wIl7tC5ykLUXs8k/FSDDaoGoVFY6ZD5eGEk+93 84aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715285014; x=1715889814; 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=Bbb2U4Zk3Yr6WN7VZqepw83lSldjIXt27jnu3vVFb54=; b=V53XoEihUeQy1DX8tO/xDhnBZMLkRKVzfbhL2oSzwwW8cAjvD6AiuQFy6yMEHORbsx m12rXaUKdViyztj38NtEJPbfR60dng8LfJQFq7xeeTgUb0XLEu0KQre2DVtIHX+VPjki zaZl1yY0ywEh4NeepsEXs4f1X0rr3DeXAygDWcqRkq+63euWZ8d0dgvu8IP3OwDrUXk3 Fwv0/EZA1x/+qOWpaObDXgyvJ/R6ddekN944BprcdC0I6Xnv0WweTKkdN6p7wJTETbTd Q2Yir9j12gJutj1/sANpIht+Mj80RHTjObVRvr9eebQ3Fr6oLfuLZB/qoiBp7zLvwqmJ iXNg== X-Gm-Message-State: AOJu0Yy0qN438+/HW/JeF+gqCp/BulDbwSH5VoboClADPQ+3OIgjTjhx qVGZXpGWi7876YlIUzdefyT55+HRq34ZG7xnOtH+dlztYpa7eCZb3d8vdE3R2260th1kSlUoi2z YwA== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:da8e:b0:1eb:d72d:55c5 with SMTP id d9443c01a7336-1ef43c0c9aamr312765ad.1.1715285013596; Thu, 09 May 2024 13:03:33 -0700 (PDT) Date: Thu, 9 May 2024 19:58:49 +0000 In-Reply-To: <20240509200022.253089-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: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-58-edliaw@google.com> Subject: [PATCH v3 57/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 , Muhammad Usama Anjum , Andrew Morton , Edward Liaw Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, John Hubbard Content-Type: text/plain; charset="UTF-8" _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Fixes: 809216233555 ("selftests/harness: remove use of LINE_MAX") Reviewed-by: John Hubbard Reviewed-by: Muhammad Usama Anjum 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.0.118.g7fe29c98d7-goog