Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp184224lqo; Thu, 9 May 2024 17:20:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQoZZSsP1FcCr/8lZAUU5WOyLQaS9lB/cDcIJiYvM6ON8jJLy4g2hFqvv/9mvvhZSHcS/mpOLhbIDudU1Y3qtmbb2nY8xCbFkSCqf9MA== X-Google-Smtp-Source: AGHT+IHIa3737rOEW52E7FwPdCeVxORPD4ke7+J4mL3QMnQKooMWyUFMO12MczAiZ+SGqUFfOVkX X-Received: by 2002:a50:d7c2:0:b0:572:7bda:1709 with SMTP id 4fb4d7f45d1cf-5734d5904b4mr810911a12.9.1715300401178; Thu, 09 May 2024 17:20:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715300401; cv=pass; d=google.com; s=arc-20160816; b=SON91yoH7JFE2vaKrKtsEG/fXPhTGZmO+eaIBFVB4jECDnrE6sB8/Pakxu5onwQy5y 8xeGups7CDPCU5c7IsEr81EIxF9tI9OV9zzpR+rMJMQMQaSHBIn7OKQBN7lsyzmG2hLW E0NpVJsUjeeu3R7LLs25QyG9UySB27uREgFpl1anfaF2UcfrL5yCUPKW1SjhufmWzagZ y+l6fRLHMcOlJQM4pkbZ0Au+j4mlfGrDPugBRXtblwEkqooG/G+vHm6cBVCVl0SpqmH4 RHgNlXirTp+Uc2/Q3uFTD6Do+mlbS3ZmYwMpGqtDQNrnUX+g7g+qq5g6sxlPde4Ez2++ FgvQ== 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=tCYOcoi79dGlWA0zgP2ejSPuqCPcThdX6+6Ym86nj5Q=; fh=gvSP6W1RvFVDG8/qYpsBuVh/CERrvbGF1e1LqaE8P6Y=; b=tj31kk2jDwGL6eds5ErmZHbV6AogoowHPxjcr0FlVuOnlWcmUE+7QmiSp204cwBsPs BDXLwW9iXU5ipR4GUMYJiL6uvHXxqamMpFRs/cGyu63I+DmSTj+48RVjMKYCo9J1bxP+ YoWfAfthHDZdIrZd/OSUnAqJt6RYP2Pg/Z+Ayrjt+hNgGEyvzHobvP3upPxCV67mkRGJ eSzt/UcqYYAQIINRoq0x/KMSSt10U2Z1TPXroZlEDx8Cwt3IrMHvDETCF3gfKn2PeHbd XisvhtfgtvRqMFVrnChJT7b6injCKP15SpimOJvz5G9olrDPzbb6SGEJbEmF9ugjAL6h y81w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ECzZeLfH; 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-175122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d56d6si1234803a12.301.2024.05.09.17.20.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 17:20:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ECzZeLfH; 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-175122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175122-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BE7ED1F21CFB for ; Fri, 10 May 2024 00:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65BD812FF72; Fri, 10 May 2024 00:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ECzZeLfH" 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 C078C12FB04 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=1715299818; cv=none; b=mBpNKhxaoA7FEsscrw3AbI2OzKhj/tQ3vidzi7CSNmh8g8RYtCbi4jlpa7CTGuC80Jsm72qURWT77uOAN1MGzR/VR3RVeSufl/fSfpMU0F7ge8iKnvzsNXs8Gbf4GX/FoSNZUy4BoW9txXhP/3vkFOy9Te4bEAcreBizwnSF37o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715299818; c=relaxed/simple; bh=krFmheiwe+bhOpalC+42tJGQSEuBBbvPVyXoXXo7LPI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=D1Fqdgic7prPIYXBA0l1OPrKeVliYWWoBAGKFVlnIlRVNqbHOsI1pnXe3MMikYXBF5XUxE2T0nLJWCrnl/7aiFVZ41zd1vrCKonaCAXVWbUuIye+QArVO/x45f/K25ByByLPRR05jdY1gBo6QINp2ZkwfSRjT6n+v3FFV0+Eoyo= 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 Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2b3773153feso1250511a91.0 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=nst71wP2Eeab5g3aiHLyJv3xEr0RPEBe+uU+xSRn5d0jqxDCu4vbQJau3cEr+hUSOw /XVsXbSys2ncG6FEMQVWpb6IU8rCbNN/54tbaqJQzNG9DySNa1rahnCxK/sSjhRCooOH bvF8R5LBgUNZuCA60YY118tOoAb72iOBY5PKEXOqjC8CCgbAa3F3ch9//+LuqHkvxE60 u9U+bq5px2aIlcl8M6QV8zNH6GJkBgTMbkDrdWywXgQhNCr7ib0Q3I0t+gTfHfh/yY26 3n0i1XuVXY4aimRCLvDxOnr8EmANsCykw67jSxbpasGyXBv3y2omg+PmuudoA5uHJ205 ngNw== X-Gm-Message-State: AOJu0YwKADVG5dOLnIFqjQJ7yZonQ2CoCC852HhjNkRsYPdMFG66aV34 +E4dhoOTwjfNkvP7vmLMStM6SZ6RnmCePXeMRgVlb7Q+dlFqbWjrBkoI1Zo4rL7ZU6iB77v9pxD Nqw== 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-kernel@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=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" 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 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. 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