From patchwork Wed May 22 00:57:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13669958 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 99DF0155346 for ; Wed, 22 May 2024 01:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339719; cv=none; b=aqwxDaItIAHwt5Rjpn+PR8sjSIFbj7pZwhYxHaH1k7N2WA+NuyGHbNmStKsjn5XVrF7+9nngI6hHmtOKlKpcLZucDSeXu5U876NY3U9oZ6A9VcmairBaJRZO4/e8ozIxicR8WcRykV78S5esJ3vno88L05lUh6rM2vp+eiYYYGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339719; c=relaxed/simple; bh=GPntLq7+5p05K4Kj80a1ofx+IxdVyo2sAkOefotHnTM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Uo8pU9BGrlXx6YEymFNa/5ESP1B4QwFGZt/06b0c1JEQ+lYUMMH1Z/FuQm+FdvhKQGJvxTVWyg1lfwR8Y9T6NNpXpu6n7r6zM+EDOw5QvDCQoBip/sp8G53Nu+5nGx1je6ci2FhEShQchd9GgGlWJ/LLwmrCThlrdxdlRPDJnKM= 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=kFl9/zMw; arc=none smtp.client-ip=209.85.214.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="kFl9/zMw" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ee13ebef37so135804425ad.2 for ; Tue, 21 May 2024 18:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339717; x=1716944517; 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=CdhZH2VylrS+6EeGuf6ae6S+DzMPS8o3sFjSdgWRyqU=; b=kFl9/zMwn5EI7b/RVWPpEtdc+LAfDjM+BKyAI0BIOqU+xCr6lCAjQQtryha6e+jKpU 5XGSpoaegMaFwNMVdY7PKKkRh+DOC26jvMqNZNLJS/pl0oPvVG35UOvkCzv7tFnJEvEc tacqLzavXTVhhFRu/IRbEl5QsE/qTm7GMpM+BFxtViA6S2qmIcTQPDIITDnC4+Hsnb+P jPWkSar0nVDKVGEAoKcLURcAIqqDqDOovZfoEFDcPXlvrNBLDHDCMKiJQYskh4L0MNea nCy1plRH7hpADoDx00SqcroPueS32Os7SbxgElU4IhKKoYfD0+pYdXmHz/kHiRyLuKqJ 2N3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339717; x=1716944517; 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=CdhZH2VylrS+6EeGuf6ae6S+DzMPS8o3sFjSdgWRyqU=; b=qkDYle96cAtpGWQeYmMSYogyVzgJlu8/psMct22DV9PCp/P+bQvt9ZSnRrRUjSOX5w mTx85LT5J0dsVSBtVmHGJ8CfvFlMfCD5/drj8ZsYMkmHaj2jgPg1eXJj9mv526u+quXs 1ydMJOLrDFJ7VMj6tP1J7NOzktN8VcQE0dXj+kcin3AEo6cEF2EnNlrcKbELLLbIZAL7 lcnZs4PgagWBQm0XCgQ0CXjtZHtFotvgQU6d1858z06US4SFQyWlGcWhvkxb4osITLYL 1uSO1qXZlqr2YETlx+oYJOEJVj4BtvZutbigmLpK/LKOAFecs+M53NzwKM+cE/R7vK4A KvTg== X-Forwarded-Encrypted: i=1; AJvYcCXmMx8tln4kZ/8qmy5/QKlRIFIWMQlSlNJ9XyxhF3YPfagqg5/UMfOI0RSu/IyBzKTv+B+x98nDq+vgOSuKnCQUcEoiOaWA X-Gm-Message-State: AOJu0YxVTOcbvnYfCI4Qa7KMWELrBoqV3+PfK9UBvWCW6tTVFfs9eTbZ 7RG6i5DjXBM5LZ6B4KKhn+DGtw/z1GvG72zU43zfYryZaDrTJ94XlhHsFTc0zzOQXbRwfce9mKM xqw== X-Google-Smtp-Source: AGHT+IFXkW29jWSmXKYdgVJioCSYV7fU9D+QDgsIm3BIsuSFmV/S8sHX1eOFRDsg9MXg5XjDONxLYS9KAdU= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:ea0b:b0:1f2:fb7a:19ac with SMTP id d9443c01a7336-1f31c9e7df6mr65215ad.12.1716339716964; Tue, 21 May 2024 18:01:56 -0700 (PDT) Date: Wed, 22 May 2024 00:57:35 +0000 In-Reply-To: <20240522005913.3540131-1-edliaw@google.com> Precedence: bulk X-Mailing-List: netdev@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-50-edliaw@google.com> Subject: [PATCH v5 49/68] selftests/riscv: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " , " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend 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 _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/riscv/hwprobe/cbo.c | 1 - tools/testing/selftests/riscv/hwprobe/which-cpus.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/testing/selftests/riscv/hwprobe/cbo.c b/tools/testing/selftests/riscv/hwprobe/cbo.c index a40541bb7c7d..4de6f63fc537 100644 --- a/tools/testing/selftests/riscv/hwprobe/cbo.c +++ b/tools/testing/selftests/riscv/hwprobe/cbo.c @@ -5,7 +5,6 @@ * Run with 'taskset -c cbo' to only execute hwprobe on a * subset of cpus, as well as only executing the tests on those cpus. */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/riscv/hwprobe/which-cpus.c b/tools/testing/selftests/riscv/hwprobe/which-cpus.c index 82c121412dfc..c3f080861c06 100644 --- a/tools/testing/selftests/riscv/hwprobe/which-cpus.c +++ b/tools/testing/selftests/riscv/hwprobe/which-cpus.c @@ -5,7 +5,6 @@ * Test the RISCV_HWPROBE_WHICH_CPUS flag of hwprobe. Also provides a command * line interface to get the cpu list for arbitrary hwprobe pairs. */ -#define _GNU_SOURCE #include #include #include