From patchwork Thu May 9 19:58:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660197 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 7391613AD05 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=1715284928; cv=none; b=EnnUfkuDOcDtkHPemyU552WGzjXt6qKn91l2QCaKZs6WrdK6HjnnUrwE1csCfvFiexXWoKDoXBAHt9XZxOrVdK2gJydfKv8tnGH/F/E+J4ObDl15Xhg2Yk4Zi103/J1Cs67a89cBIclBSHXRTqWMaU1BoZzO/Wu/O0ZnWkFEaik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284928; c=relaxed/simple; bh=MBnUBnXl3zEAj3vZOiUxTPCFOo3TWUaU8CdIxhIziDE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=aGVRuscrhykYwOynqRCfy0attV7u+LUP1zfW9CfStnbSuSqn1HJ/jjK8SUhpEW4K3+y9/t2E+Cth5vE5uw8yRJpRtZ0L7rIRbPVfq7q+kPFGbRR10zRKuc8QqpImKc2yslyJ8KdCvQ0A1TqVdO6M9fugeaYQPJGzYoJQas1CzsE= 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="qklWiiEC" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-de604d35ec0so2137247276.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=RNoiO/tIUvOqGSYrX3bfn1S5q8l7d25BXKoyG+A4qaEG4MmhOLP5d6tF1xhMtGy+1o yNLrywDYvwxvlHHn1TbHkv5SY9jl0qYP1uAalq8cBoLUASkLZO81hTfDBEaDq3tvN2I5 QvjNbVyvxFJk0SWtuQ04FXryuj/HW2y+7TT6XwfTnETwiwM+3QTwPVn7Rwq/p0s2q+vG Ken/VyP2M2dnY7ZVxIKCZksIPMcqqOGoLLYdW/RgjP8KsBfSLmjI67ZP6oWIK6PmHTwp tzBzLIIVTFtm1nkYwvjcgcT2pPL8S9gFN+Z6+t+dQlfd6vAsQPv0KSTScXqnrHyQef7E Aeyg== X-Forwarded-Encrypted: i=1; AJvYcCUyI/AxVktEzGfW8b4QhCPFi6NJ4bMs+M359Wxco/vRdZ6Ng6mDC1gsrfMvGphpfVRe3smKCgyzOXN7jSMIeCJgqhIp X-Gm-Message-State: AOJu0Yw/aKaWCLIwJkjAqOKHnoE9pGJB/72XLQ+y26IIlXfcKbMVDSwA J9fTPE1d7CFWnvS/AJXEil7sP6lHWeCgLWkhUaFS3WNLCkBOpEI+wQDRCIJcRz0tBhk9H4gpeTR mjQ== X-Google-Smtp-Source: AGHT+IHvqhsF1a5vqVTCdhk4BVGmr9KgJSWsLeuEaufB/KOZhiCXbICCSASR6EHuCwVmjU5b5BugSo/1wyE= 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: bpf@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_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 , 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 _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 © 2023 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_get_self_attr_test.c b/tools/testing/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 © 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_list_modules_test.c b/tools/testing/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 © 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/lsm/lsm_set_self_attr_test.c b/tools/testing/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 © 2022 Casey Schaufler */ - -#define _GNU_SOURCE #include #include #include