Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp83929lqo; Thu, 9 May 2024 13:23:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYRSz3sGJdwNsnS0G4aKlbQHsuXbV4CLyKUByzUFUdWRRG4Kp7mDbzQKV7/RAKUxJObiAWGqn0wbR+kDDDEKf5abgJHUkLMlnRIONcUw== X-Google-Smtp-Source: AGHT+IEa2KjRAk4P7RjsyahgKvmU7F2vG/QrNj507zNlcw2rpsTxHBACu/rQk6hpUPm3hEGjxE+f X-Received: by 2002:a05:6a00:1397:b0:6e6:89ad:1233 with SMTP id d2e1a72fcca58-6f4e02a6150mr622674b3a.2.1715286185185; Thu, 09 May 2024 13:23:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715286185; cv=pass; d=google.com; s=arc-20160816; b=mTErRPccYcR0QVek1OwPn0b8KHd4Ty49eAQnWwWbqR2AVzT2ModVgODPV4K8VF3uTw R2QpIy83AtDq5QKLboopY2CPSeyKmtUmPZYlhSKooiqc4wKr99y13GV/8K7TV/WXsgU2 MWzfBc1Zo2VH2bU8ByMqntj7in8gPk1skeksQEXvOnTNQAyyNIrkhn/1iR2n09xhsh1Q +B/7iUdtOT75f6AsWp0nHLeW6cuvj48gSg1QDdcgyM46xrCFNwPnI+S6Dw42ziOvHOSx +9r4MHL5OI9qL4KWaaZNlAt5vNwrN80QXjuPP0aigwu9SNCREAACGVV/2eJxep0lz4Js TmBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=F47u4j3b3GFOE9nBbPizFblW4KN5wlKfs78lSrCeF6g=; fh=pt1fNaKDwxUMVCbrv+WfkjzbfOCTytBxwkIzKprbA4c=; b=lBZcQSezDQ0rjiu4vPL+jjEliQS4l3OQcBIQvIEAdUntMogDegggF9/u9PuSyLJwRA ZCGwaQqtbb1/FWABw83EJriH8uoL43124FORam+GGoMOVYPBFbKRM1pjDbokTuHOKqKL 6M5viuWsJa1bDxXshMygxnKCErLgYojv052YSsv+3tw2GBPi2ScgyvoLJn31tVCYp1pE 27l+bMhdproHdpa8EQ92ZVgUa0QtbBNVpBq+oTSSZIOhIRv8KbsRW0NgtocZ8osYerI1 eJwIxwCij5bOovHa/ZvY5ioUcDPKNsQ9VrQZI+DOwnYdNHmae5U0u+PpzAdPXtU7xb5J EnUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="q/JDoVCa"; 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-174874-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174874-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 41be03b00d2f7-6341171912dsi2145610a12.511.2024.05.09.13.23.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:23:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174874-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="q/JDoVCa"; 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-174874-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174874-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 451D728682A for ; Thu, 9 May 2024 20:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF88E85C43; Thu, 9 May 2024 20:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="q/JDoVCa" Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 503E313A878 for ; Thu, 9 May 2024 20:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284924; cv=none; b=cvbdEfUc0CmCtX6r8YJhjZkLy+dOM831j75rJQpqNP71u36iN/ub2pVmZFf6HLJrDV9AmOdKZI2+pnBlOgCrah1z1xaoHGCoNQo4CVAZuhATL9rGtfVW/YSyD8mZbDFWSS4h3t7c0I/EXQqKnjD4YMQJvlUU4wn+u21ty7y1XRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284924; c=relaxed/simple; bh=MSaNSVn2H2fXKJMZvElS2FKazJ5y9Ory35O+Q9b33LE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nYtJnUJ8ONGo5TTBXD/HQ9g4dzlkxX+R+HvWNsb23MQ9rPzc68KOT1b/XyNDMaTqc1w3GmGNZeeURgTQ/eQyHB9QbxhzBtKc4LwuWzNB11vfX3WX9uSBWNi8LvjQAONXFWqDiG8vbfm+RVEohpVG8hkF0qwCpegrIpVBCd2UdGs= 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=q/JDoVCa; arc=none smtp.client-ip=209.85.210.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 Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f4739ba7dcso875097b3a.0 for ; Thu, 09 May 2024 13:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284923; x=1715889723; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=F47u4j3b3GFOE9nBbPizFblW4KN5wlKfs78lSrCeF6g=; b=q/JDoVCaEHYxDmkbNkVV0LUBx+gBUxuHuFwTIIwVrqf84C1I85Re7wu/t8O5NcvRzY 1VkRWpYKFBqGS4k1BfBGu7KNPigGBA/g/a4NoFLno8WPhqlgpXIYgoxNkp1VTMuT/4bI 7EhWwtXK0BaoJ30rhjYZw2qHRpZspjF/CUKB+rY4ENb/3v2iO4WXIiGvdh+/zs8TdLAG eu0diIjuNofk1A31CzfCxs6KhcXpSytH+G85X5piCDqXL8rbtSjSfRi0kf+pT9h7mbnG hqD17vigiH7hjQLs/t9Ic9k+KgK3FbB8qkPTK9FnUFbhzHZHgJDhBN4XVFQODBue8dwO KikQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284923; x=1715889723; h=content-transfer-encoding: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=F47u4j3b3GFOE9nBbPizFblW4KN5wlKfs78lSrCeF6g=; b=hkPwex+p2/t0DaY6IaDQfPShmZS9o0nd15qKjieXUtModrHttdOirlS7drtabpNzz7 5hpELqAaMWgRgddsTMuqF91+lHTetdTOdx6ZVZpjDDCbkM9zAIvUM4dKWD9VSj3O8CMN wZFyF9c557H+q1JEHHOCg551+eD2k5Z6JHRuZJXo0xk2FSL6hhm6+PRlk5mE7NwZrQcj eLgrSF0vIyxrQ8PoqJB61ULae8xI0y5hiVpJkvuLaBjOzue9Qw1z47FlheN6qW85VafK w1oFUibVU3wIrYsbRJwq8qEKZVVGrKR0WulRiuL8GgVHW74p2OiqTSMzo6/elsD6zxqT fy4Q== X-Gm-Message-State: AOJu0YxRZ2rA7JP/ynK3jfKDi121YAO66LiLRV++5UTj9Hn4vnkR7QMi K1X8QDMohbiQwc86RcJ4wulyDzbEIVbU+OWZeTvpY2s1FwPS9StgRwQS8C+nZz77PAijtgdrd2c Z/w== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:4b03:b0:6f3:84f4:78e4 with SMTP id d2e1a72fcca58-6f4e03a9522mr1248b3a.4.1715284922572; Thu, 09 May 2024 13:02:02 -0700 (PDT) Date: Thu, 9 May 2024 19:58:19 +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-28-edliaw@google.com> Subject: [PATCH v3 27/68] selftests/landlock: 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 , Edward Liaw , Muhammad Usama Anjum , Andrew Morton 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" Content-Transfer-Encoding: quoted-printable _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/landlock/base_test.c | 2 -- tools/testing/selftests/landlock/fs_test.c | 2 -- tools/testing/selftests/landlock/net_test.c | 2 -- tools/testing/selftests/landlock/ptrace_test.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/tools/testing/selftests/landlock/base_test.c b/tools/testing/s= elftests/landlock/base_test.c index 3c1e9f35b531..c86e6f87b398 100644 --- a/tools/testing/selftests/landlock/base_test.c +++ b/tools/testing/selftests/landlock/base_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2017-2020 Micka=C3=ABl Sala=C3=BCn * Copyright =C2=A9 2019-2020 ANSSI */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/fs_test.c b/tools/testing/sel= ftests/landlock/fs_test.c index 6b5a9ff88c3d..eec0d9a44d50 100644 --- a/tools/testing/selftests/landlock/fs_test.c +++ b/tools/testing/selftests/landlock/fs_test.c @@ -6,8 +6,6 @@ * Copyright =C2=A9 2020 ANSSI * Copyright =C2=A9 2020-2022 Microsoft Corporation */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/net_test.c b/tools/testing/se= lftests/landlock/net_test.c index f21cfbbc3638..eed040adcbac 100644 --- a/tools/testing/selftests/landlock/net_test.c +++ b/tools/testing/selftests/landlock/net_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2022-2023 Huawei Tech. Co., Ltd. * Copyright =C2=A9 2023 Microsoft Corporation */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/landlock/ptrace_test.c b/tools/testing= /selftests/landlock/ptrace_test.c index a19db4d0b3bd..c831e6d03b02 100644 --- a/tools/testing/selftests/landlock/ptrace_test.c +++ b/tools/testing/selftests/landlock/ptrace_test.c @@ -5,8 +5,6 @@ * Copyright =C2=A9 2017-2020 Micka=C3=ABl Sala=C3=BCn * Copyright =C2=A9 2019-2020 ANSSI */ - -#define _GNU_SOURCE #include #include #include --=20 2.45.0.118.g7fe29c98d7-goog