Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp82320lqo; Thu, 9 May 2024 13:19:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkpTiI2Q18gWd3SYKI3sj4KQ1rB2d1BKVgNlrO8ry8yKB23CyDNQ735SiC2XyYTEKaq7GcUFcgJwWOPMdGia5t/xAX5tl7fHdgOkQGig== X-Google-Smtp-Source: AGHT+IGWQ5QzicWssaHAsX1i4Mj1iO+KITVyRYALtwFF+SJm2vlctPC8O00loXwQegpWcZff0ayz X-Received: by 2002:a05:6a00:1149:b0:6ed:ca65:68b with SMTP id d2e1a72fcca58-6f4c908ae25mr5289725b3a.4.1715285973360; Thu, 09 May 2024 13:19:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715285973; cv=pass; d=google.com; s=arc-20160816; b=aLokTRWQ0X8U2uuFnKSJFH2rKNNPyHf83Lr3rPcYUzPwRGSvLzN33GF3r24X4kBz/k e/gF1q0VMSFxXotarhQGvHgRxUpIMXb9LuQVi7/Lc3p8zUvEAqUuc0VxFFsGrgPDSGbX DcM8GFQHgqbLde4hvLE/QCsmXM52FC5gUtZpQF+C9llJq1KPI3P7NF2QrSgCBehhP57V irWLm5pXL0ve0RJ768yBhN4MYI4xCliJDXMe0XqPK7ofe92mH1UA2P58pM5UdWZxE3FO 63rSiFzam4Y0afLlRepxWLxmD0XGbDDa5mRWjhrfzFhQTf/D3BOoOiLbtPvz18P3TmeK vXAg== 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=/29eLalWXltsNx6hndyMfgq88NOnPPHN/xxraS+3xSI=; fh=w3vYtwpnPFnY2MkehDt3TIp0QeStJJbLKuArU5C6rtI=; b=rgTUny7+serlJi7tfpWueqA5pGSx4nQGzdFGBSRh5+sz/Hx+fBuz2rrBRCbLZH4GGx 4j7h26+mWoaTMOcZRR6viShFWsvRX3PrOhvGO7au9bf7VpBQIRIk81U6OHCL8ZsnUuBO Sa9tPE6QQu4siOBJsBPJdG77BhTXWB7vewkIiHWCNaNkGWV9yKhNUrj8GFB/M44PIneU nyZyL3b/99DpAyJtpNkmNFJsH1ahv4hr/pRr1VMUFTLmqIyr/Ec7HH/m99+C+xsjEAw+ AlQNpRzGXKnAc562OfBznWR5i3zTJg4ZeMi7Dl01VU25K7a/DNLuIYp9FcPfXcQ0YswJ RNMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qklWiiEC; 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-174875-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174875-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 d2e1a72fcca58-6f4d2a72739si2058812b3a.2.2024.05.09.13.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174875-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=qklWiiEC; 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-174875-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174875-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 7C9B328711C for ; Thu, 9 May 2024 20:11:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E37C13AD20; Thu, 9 May 2024 20:02:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="qklWiiEC" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 738D613AD04 for ; Thu, 9 May 2024 20:02:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284929; cv=none; b=NkrDQgJCsueeRodRZkaLPVLrfDURRmacGq3TrHBXi89B8SnaNvSoHwUWGH054LEGDZd4Om2Xw13MZ10BpMam+KkabPBRvkZFu+15Fe1htmBLduAfl3vYHfqsv8+7CyHw77FonZl2EKrN3m+M3ZR2Oy3svW9q17hnBgx/tMMRUnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284929; c=relaxed/simple; bh=MBnUBnXl3zEAj3vZOiUxTPCFOo3TWUaU8CdIxhIziDE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=pCP0lRgkbZBxruixeY9z1jQj/Eir+i46jfmsC4QZmDRaJ1bWQp1HgG1geXimpSCjs7+iZ2KbA+YYhesAon/FJrSCPRZaejyZNpYaQkl3t2FODSGf+o2ioo+b3LdhiuA9bej1VZpudRw2Xozu5zZohqgictnL48DkMqEwpWJTNp8= 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=qklWiiEC; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-de604d35ec0so2137245276.3 for ; Thu, 09 May 2024 13:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284925; x=1715889725; 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=/29eLalWXltsNx6hndyMfgq88NOnPPHN/xxraS+3xSI=; b=qklWiiEC0naT5JPU8cieXF0v0icyvd7q9dSVjoLZsm5oirBaJCP7H7m07D0/Ryxv/D xIhNFtPNZ6pno9aM6gnjA7XPrv3NZXLpWa4fMN5gEMDarj4CxvW0FcDsH9/EWQg+IWSg UI9Ibcn8UHXlbrk/diL0m6aes+ynSssmncOOuZFdu6VUstYGQoeBVUbdpbFgmsMCd40h Q/eaFl/U9FKrvP37CBPPvcqZmJZxweArSD0pJqFH234P28buvFst3nROme39ak6y58H1 2N9XhnAPp9bhR9SMAKgEMcsNjGnlQTHWk8DVlyuMYsWlTyIFxcr/IwOVRk/iydd0KXRy qVnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284925; x=1715889725; 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=/29eLalWXltsNx6hndyMfgq88NOnPPHN/xxraS+3xSI=; b=Mi+xvVU18igmx4FUMBORAfZ4No0DzPLOLNjrBt/CISLuJdGV4B6rxwdEMz0HFFzW30 Pt9y5mm1yYbH+jnf2+SJd7Cbusjn4ynV+p+NhBaNTa8+iy/TsLIeIyBPQ9rGXAMNJwg0 klOV/ha4uS0Dcy1ZgMEyaTRRcORMRTiL2cubl4OhzgaU8Yc+ZxU+Ulwn1b9UpT1LpMXs 7VIRFwkAzTbTni8CUXpQey0I5LR/q/pwVc74EDupNNij7a/v4iTqN0vdVWLXnjau/+ZE 9j3mUs5y1tmNpr1veD3m16RxbQznz7NINvBkO/HFLVlWqTcZ5cETTCHVyTTE5n1r3WsE GMlg== X-Gm-Message-State: AOJu0YwfgtY0W9KKu4TTjK2zmThXibo4KxjyBvhywfSDPIpb5YR9FMif 7/rG4rWXubtY+rBcE0AS2DS20SeA7AmNbtzCriF+Qbu6ppTa12csW5uRlj7PwSDa29bxFOer11o b+Q== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:1027:b0:dcc:c57c:8873 with SMTP id 3f1490d57ef6-dee4f3659c5mr141916276.9.1715284925582; Thu, 09 May 2024 13:02:05 -0700 (PDT) Date: Thu, 9 May 2024 19:58:20 +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-29-edliaw@google.com> Subject: [PATCH v3 28/68] selftests/lsm: 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 , Paul Moore , James Morris , "Serge E. Hallyn" , Muhammad Usama Anjum , Edward Liaw , 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/lsm/common.c | 2 -- tools/testing/selftests/lsm/lsm_get_self_attr_test.c | 2 -- tools/testing/selftests/lsm/lsm_list_modules_test.c | 2 -- tools/testing/selftests/lsm/lsm_set_self_attr_test.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/tools/testing/selftests/lsm/common.c b/tools/testing/selftests= /lsm/common.c index 9ad258912646..1b18aac570f1 100644 --- a/tools/testing/selftests/lsm/common.c +++ b/tools/testing/selftests/lsm/common.c @@ -4,8 +4,6 @@ * * Copyright =C2=A9 2023 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_get_self_attr_test.c b/tools/t= esting/selftests/lsm/lsm_get_self_attr_test.c index df215e4aa63f..7465bde3f922 100644 --- a/tools/testing/selftests/lsm/lsm_get_self_attr_test.c +++ b/tools/testing/selftests/lsm/lsm_get_self_attr_test.c @@ -5,8 +5,6 @@ * * Copyright =C2=A9 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_list_modules_test.c b/tools/te= sting/selftests/lsm/lsm_list_modules_test.c index 06d24d4679a6..a6b44e25c21f 100644 --- a/tools/testing/selftests/lsm/lsm_list_modules_test.c +++ b/tools/testing/selftests/lsm/lsm_list_modules_test.c @@ -5,8 +5,6 @@ * * Copyright =C2=A9 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_set_self_attr_test.c b/tools/t= esting/selftests/lsm/lsm_set_self_attr_test.c index 66dec47e3ca3..110c6a07e74c 100644 --- a/tools/testing/selftests/lsm/lsm_set_self_attr_test.c +++ b/tools/testing/selftests/lsm/lsm_set_self_attr_test.c @@ -5,8 +5,6 @@ * * Copyright =C2=A9 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include --=20 2.45.0.118.g7fe29c98d7-goog