Message ID | 20240510000842.410729-59-edliaw@google.com |
---|---|
State | Superseded |
Headers | show
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 AB9B013E05F for <linux-kselftest@vger.kernel.org>; Fri, 10 May 2024 00:11:51 +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=1715299914; cv=none; b=bl1lK8FMl1nZoFfohGVHm7PB7QxvO99d3lPJq3q2fuwhbldZccR7vqYTFgEu4n0FGwVr0agnvmp3mM+kMdbj/rONemTKc+ZsTxjN/JTJj/CMSW7IBTcjbAkyBD7MkTA+FGnNdpqOQpeBg6o41DjZRxFvwyD8N3Kc38wmJGJa5kQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299914; c=relaxed/simple; bh=wdMuWYdMwrgMerE8WeS63hJz18n5JDaZO1VLefXTz14=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=XH2wBfoDGGb5g6BFcJXAA5WpJ6Wl0049MoY+rd4r83lATD9dhmOJB+3Ar5Atf5urV+U2w9sITw4b85Fg17dttrUp4Nn6JAobIf/CmMkY4Xp0ahOqxzfMukDBUtcSbC9gtz1GbfwwtbxuGDk4cY1a4NPmtDpJVxx+OOAlpNWRpGA= 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=WntSC0/A; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WntSC0/A" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-6ee128aa957so1490332b3a.2 for <linux-kselftest@vger.kernel.org>; Thu, 09 May 2024 17:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299911; x=1715904711; 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=lfjY9RujMMfudpJuG3AQZBDh8vReKDVIi2txg8s68yI=; b=WntSC0/AJawdU1hccYk/aSmL9ab4AHfclF+40PNoJ4ylJqg+FxEJX5R4F/EZzO5WR4 jXhqyIQ6FrpmQkHhiMeMsOKRPetkLPnnZb4S79PqSYFOM37lV93GT2kFTNeE6exCsOhf iFB3F3ZTB6bngDKby6PLhK9OP3y+gS+ZlEiAE61wWI4YfmNZIHmhaBUFaVHswaUVsu2x gNH0qr56GRkVicMbuIvHRTbWPLO5aVbvYjZwBfAAdRwrEC5H9nzSxvoKh5GL8JN9qX5A bnVFqHWBwUS/SaP+00dtLZ614BEC830hXLLrEOJdVdVZDWl1E5cOA1ovVHoJ+KiX6bkN p8Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299911; x=1715904711; 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=lfjY9RujMMfudpJuG3AQZBDh8vReKDVIi2txg8s68yI=; b=AR686POdo8W8KgCv20iQs4kOOmEHbG4uNWRVEX/5XJgQQ1vv17sDOWfcsdtxHEG/aT ceUjWsHpde/86TTrejFlBu43ri7AP7Z/ZnvK4wyx14B3hpXk8iZzfwLQpowEcc9iOk5e toNQHtk94AuqyEUb4qMpGC33kOV1MrxX+9Yg0MQSxSzPF3WvYtkdvQWjBirI90bfa9Ca wXOOhOlktfD0OSVZu1JQ8t5wtrrB5NDCiwrP5fJqOTy9eoXO/BL+L0lwo6hyBRrS5bca f1FjWU9NM8iVfnk7PXZXgYsxK3mF+c66Kk/oVsTnDAuhHUnquhKk9cJqXkbIJzgOzvVE jHsQ== X-Forwarded-Encrypted: i=1; AJvYcCXW7+kYT90kt5L8sxJNnbjrSzQN/e6BCgKR3d1SOC5IKg4xnLT8j/a9vNb/hKJjVdA2ejokZNuOzhamN6nyFvR5ssTaDmC2Qi6nrhbbg6l2 X-Gm-Message-State: AOJu0YxCE40+9/eRhi65qjV52RsLyq8Lr3Ngo/sBqZk2wpULqR/cGQzU 4ubADcW27ZDXI8JeugP7RU/hZUQ3qbOsZqJ6nsS8V2UNteGI5uiHhfZBraH4oq8M17mLtoq1DB8 r0w== X-Google-Smtp-Source: AGHT+IGMEDSh6n8JDhyUnrx8edlpa1/0ciKq5L6J3NGl7hDudyZ1Z9szb8Ek4WrJWFhP303EsBUN1+aLv5o= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:2da8:b0:6f3:ea4b:d232 with SMTP id d2e1a72fcca58-6f4e01b953cmr21227b3a.0.1715299910911; Thu, 09 May 2024 17:11:50 -0700 (PDT) Date: Fri, 10 May 2024 00:07:15 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240510000842.410729-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510000842.410729-59-edliaw@google.com> Subject: [PATCH v4 58/66] selftests/syscall_user_dispatch: 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/syscall_user_dispatch/sud_benchmark.c b/tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c index 073a03702ff5..758fa910e510 100644 --- a/tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c +++ b/tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c @@ -4,8 +4,6 @@ * * Benchmark and test syscall user dispatch */ - -#define _GNU_SOURCE #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/tools/testing/selftests/syscall_user_dispatch/sud_test.c b/tools/testing/selftests/syscall_user_dispatch/sud_test.c index d975a6767329..76e8f3d91537 100644 --- a/tools/testing/selftests/syscall_user_dispatch/sud_test.c +++ b/tools/testing/selftests/syscall_user_dispatch/sud_test.c @@ -4,8 +4,6 @@ * * Test code for syscall user dispatch */ - -#define _GNU_SOURCE #include <sys/prctl.h> #include <sys/sysinfo.h> #include <sys/syscall.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/syscall_user_dispatch/sud_benchmark.c | 2 -- tools/testing/selftests/syscall_user_dispatch/sud_test.c | 2 -- 2 files changed, 4 deletions(-)