Message ID | 20240522005913.3540131-50-edliaw@google.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show
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 7FDE915533E for <linux-security-module@vger.kernel.org>; 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=1716339718; cv=none; b=Z+/cjbcuUCgLuCEIShT2C9JoeC4oSg9wqhBJB0NNGFj4qY9OZbJxg1YRY9ZEbaIZEWIYZ/Y90krn03+0p9kbpztOHHyqLzWgYTeQSRK1FFfFiw2lfi+wh0XIem1cY2f32VVRohVDuVH/0G6PQFJ7s3WQLQk2ThxbqzT48SKQcFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339718; c=relaxed/simple; bh=GPntLq7+5p05K4Kj80a1ofx+IxdVyo2sAkOefotHnTM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RQbm2mq8PshcGQ4SIdvgQDjG6yGyISOETyP/kWBEUL9MDerkHFl//CQWPYSs5wR+L/Bu7ctRLVSLp21EoSdRaGQqonQCO7Ic75Ad72z/BDw4QYv8tOuMi9aNeORomPQJH65mD0CE0UXVthcYIIBshyU29aSQnzifsFlL2X3LBQU= 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-1ee3b4f8165so130166395ad.3 for <linux-security-module@vger.kernel.org>; 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=rvyCU+3hNHqY51sPga0MyyT+PlIk6lNPhq+mXFX2ncVBWxdV9VdYEdXDvaesDn2PiN 6Bb87znRSILrppa+CD2M6wnIzxVaOBSaKoj/DROZNY44KgXChOamk8Sn2qhPfe1EF85s +eEnKy0JzY678dNH0DB79O95vdXBIUgL5WHu6qs4bfy0zM3jBgfpwu7379zNQ/d+JAsj DXFE2labvgM7yl3o+uIjEpzeSOZa1Wv4QUG/Xkkzkwfp2ZwK78AnPH96Hq6PI7yplfT/ c3JxE5p2rRUd9lnISJzZlA9gMmje55faysMFPJu12AOGV6D3zFK7ZNRGrCCDTM3WULkS v/Ag== X-Forwarded-Encrypted: i=1; AJvYcCW2/MBfpnkI8VE/WpOGZoEygFFaI6eXEPpAa+CAlajWPaogVU/ATerVpVqbvpPE4zUDruGWhFbzAZxkmq/guu3/Pa9kbhVzkXQzkZc++nnqXuw53ZXp X-Gm-Message-State: AOJu0YxmjIfhzEdAZxbwK9FRg4Z1Tlv3moKJbnwCgFys6nqhtTUG0RyG +tEAunuvxRfS4Bx+AFWYBy+/GNwoKP4/6VureqQv9DfH3ZA2m43s3viF8qcmdt1ibgY/ZR1IJWB YYQ== 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: linux-security-module@vger.kernel.org List-Id: <linux-security-module.vger.kernel.org> List-Subscribe: <mailto:linux-security-module+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-security-module+unsubscribe@vger.kernel.org> 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 <edliaw@google.com> To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " <mic@digikod.net>, " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " <gnoack@google.com>, Christian Brauner <brauner@kernel.org>, Richard Cochran <richardcochran@gmail.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Jesper Dangaard Brouer <hawk@kernel.org>, John Fastabend <john.fastabend@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw <edliaw@google.com>, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" |
Series |
Define _GNU_SOURCE for sources using
|
expand
|
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 <cpu-list> cbo' to only execute hwprobe on a * subset of cpus, as well as only executing the tests on those cpus. */ -#define _GNU_SOURCE #include <stdbool.h> #include <stdint.h> #include <string.h> 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 <stdio.h> #include <stdlib.h> #include <string.h>
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw <edliaw@google.com> --- tools/testing/selftests/riscv/hwprobe/cbo.c | 1 - tools/testing/selftests/riscv/hwprobe/which-cpus.c | 1 - 2 files changed, 2 deletions(-)