From patchwork Fri May 10 00:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660526 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 984ED12F590 for ; Fri, 10 May 2024 00:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299819; cv=none; b=nILanNeDvgNMWiQj1AQy98PcEBuZtQbDgbo9F7/gICY3LGdkkeXPnmH4c9qSTINIqX1e5m3gC0+Vo694o59iptxjiHAUUJTncLfQitxG21oLyK8lxJvER7jArtWmFAqzDYksUlVC2hR87gMmoXM08+wb9g2Ug/ngPt3YHTtjd0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299819; c=relaxed/simple; bh=krFmheiwe+bhOpalC+42tJGQSEuBBbvPVyXoXXo7LPI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=N1MIyMf9jPGVihyyLcX6E9xweF7ETAQFqi9FjaglHplnmhk18t5Cq7/7Ky9qRweB/w6jtUg8Ic1OfWb0sd3Crbn3tpg7eXvsMCkN3Sat0mqm1QLKQgT0YEjmvc6zHpNbZI23rbPb+J2z8C0yQ8iMI3bOPLKJ67s1lDRL2t0A5Is= 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=ECzZeLfH; arc=none smtp.client-ip=209.85.216.74 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="ECzZeLfH" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2b58c1d014bso1242262a91.1 for ; Thu, 09 May 2024 17:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715299816; x=1715904616; 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=tCYOcoi79dGlWA0zgP2ejSPuqCPcThdX6+6Ym86nj5Q=; b=ECzZeLfH6bdfyaVt7HV23vNvjRtthWaR5rDSkD3q1suoOqMzuTM1FueqdSA+Xgp0/s rO02TowQpqWRjgyB1N7T/ICLXzlRjN0By/hpqcSf6QuUQzoZevmjwcS5BndovKq0cYxu 8shDH7iadoXHmsBdaO7JbU4ssdlt4wgLHvnsuMxMNWo/a13hxX1ZxaDYazkfT/Xe13N3 bAPfHtrGMwrizC43hc5xTtB0POOdbS2Jam2PF+BnAbR2BJNhoMnrL6cWiyBdrf2DhDmK 5unsR/qJVuHB92PsHHgxfTGpKYmoQwfKNF2qCtrwtv9klvusduBRvkbZw8OZO8ukUOiB oVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715299816; x=1715904616; 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=tCYOcoi79dGlWA0zgP2ejSPuqCPcThdX6+6Ym86nj5Q=; b=gOIgcIPpgfD6qH4JEDh0bArTZJjI0D4iTvVwiBFO8AJJE8xqzcYLkp6bvuVYgKojRU Nn7DuaYYv/g4r0gJ9fA0J4rbsz3/aBV+0mulvWy6gUFo3pZVLSy92EcLTgXJcvIBhmyF F7cCjvB+wttpq/2V4KUf6a+J1rvN8L2nfu4krDjyKFXmZKNScBMzxphuTAsW7y/nK/WJ TkcnpKRdtEcL2XbepcVlGbFpnSQ2kvh1EBv79aOFFbC0bMjnZzEdw0lkm3msZ0lYjV3b 7ahi1IZ9rUIbLDlv0ubiGnQbw25pUs14FWBjo3yJguNLGOapJBlJlAHj57mnqegjfb07 8XxA== X-Forwarded-Encrypted: i=1; AJvYcCXz5kZRIbUUkHG2YIeEvxYV/cF9URQTP/0rGfTIEavLT2QNNKrHCiNhy7R3LkrCUji8YKnUeqyaIS5RUtbWVVeMmMqu+S7F/gwt2p9PpvBM X-Gm-Message-State: AOJu0YyfO/1ES1RZjUTh54KD3ju64cOcjMpENNbSncm2TlV4HTad7Fkk kG8oK5UIsI2eR66WL+VGn2f270ZpuyhPF1zVjGrt+Q2L4tsA3rFNxpPIoww1LlAFW/6K0X9o2MI a6Q== X-Google-Smtp-Source: AGHT+IF9aZrvH9iVwela8h8gnuxSKtgNwX9HeGP3w0cBXhyQMMnBKIlrQWbDb+A4TrctySesXZTy2+mRcOk= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:90b:1850:b0:2b6:208f:a441 with SMTP id 98e67ed59e1d1-2b6ccd85d53mr3578a91.7.1715299816087; Thu, 09 May 2024 17:10:16 -0700 (PDT) Date: Fri, 10 May 2024 00:06:43 +0000 In-Reply-To: <20240510000842.410729-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-27-edliaw@google.com> Subject: [PATCH v4 26/66] 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" Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, John Hubbard , Muhammad Usama Anjum _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. 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