Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp52444lqp; Tue, 21 May 2024 18:11:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWI5GDW0tmWeAsiUav/IoXAE0JsgMT0j1eLTfwDc/tJl5fbsJcrjoazxDydxMx9PqCO2xCMt12gduv2ovDSi+EsEblhU3iQOA10TR0i+Q== X-Google-Smtp-Source: AGHT+IG+jQS8K5NaHPI0zp8VYSffb95uyrgOFGQdOQfJEsoCWjIQspen3+/yNipoQu6N6Y75/hiy X-Received: by 2002:a50:9f45:0:b0:56b:d013:a67e with SMTP id 4fb4d7f45d1cf-5783117a404mr504476a12.18.1716340262451; Tue, 21 May 2024 18:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716340262; cv=pass; d=google.com; s=arc-20160816; b=HYMxl1gBkA+fWhXFe3hY4fzYyiVwjVvp2fgJ4NGOWfVrbof7Z6tAq4N02bnXI7KHew k1kGEDf7gQVV5xwkjqgQNjPClbS0hhty6aKK0RVWedy+hXKEQwTy31WL8sJY3MDXPRZN juwXJyFCuOQ0ksoInBwvO4c0/32GW8BPj3/3T/+6g2dzY2q58Cu8VV/f9OwFwcN1HgaI r4J2NKoG4UBjHO/PSONU0RhUBI+lOZG+FlsHRxrwxo9VH5q6QAHFpzfDNMpSo+M4FTuk WP24OshMl1t8UOqoakx5/eXSBKPkf6In7BXynKFWjymLQQb9oaR3KonA8AFQUWJ4KD/L JYYA== 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=KXwO0L9UP+8QZMVBOIJm+VyqQgH3dRfMq6r9an6EFTA=; fh=gvSP6W1RvFVDG8/qYpsBuVh/CERrvbGF1e1LqaE8P6Y=; b=rmsyg2R0S5r0tbxnOe+eYqCwRxWLRukOgBTq34+mslr7nQ3pQkesTIL11ccFe9gkLX HYJPXOiTiNPOIkMtrzw8sGl3xb1+LibztJF8Ij7N2uOaOdhPzyTMFqG5MevFv2uYG6Vt xALOTKlhA4c7APva57oRV/0Xl0PWoSj9scxbwH2lf2WYazejbd6k6Z6b8uwJvRZD9e/q I+OU8HtSC8ObdK8oQ2f17ExmtUoAbY0muqxMUnRCYHIxX/MErm607n+3e0NLU/6SajRx 0AvH28FQUVwzNTyhSAbDrU0eOg5Rqce+S+cpN/pw0L2vaS3pVYO+uZx+6SYOhLYliJ0Z W54g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hQ0ZI31+; 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-185603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185603-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beacaf4si14533133a12.128.2024.05.21.18.11.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 18:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hQ0ZI31+; 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-185603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185603-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 0EC381F21474 for ; Wed, 22 May 2024 01:11:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F03714A4EC; Wed, 22 May 2024 01:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hQ0ZI31+" 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 12A8714AD02 for ; Wed, 22 May 2024 01:00:46 +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=1716339647; cv=none; b=X3cvnsgMbbvF9yMovzG+Jb1ZvwZBcO9JlLZ1TMNlEnFjmc/ldGgmRXHMSzwhYTwK4AqrnwMc/lU9QDkrNSNRKNA5VNud1DuQgsdHKJo6Qtr3StBX22Te7kSb2vt8IL8kPf4af4ciXg3FBA8XN6sVJLRC87mlu0RjWOT3if799bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339647; c=relaxed/simple; bh=oZHnJqF/9E2YIXhg1q+wA7AGZkR9jjztSz586c2e7v8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NW7P37caAlPwgU9n2R6l8gSMXClhG11zCG3bTRDYOXvXIXBS+nhyv7CfWGPqjlcPLHQvWJRX8hwHsUaeiIMXwbMNEye9s40456TNb0cOGZnH46yEb9zoz+hkHmvgIteDZBNIZTQbDvHjfF3vijRHoPI0C40Q/M9HJvIduchFGkE= 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=hQ0ZI31+; 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-df4e54990fbso57374276.0 for ; Tue, 21 May 2024 18:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339645; x=1716944445; 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=KXwO0L9UP+8QZMVBOIJm+VyqQgH3dRfMq6r9an6EFTA=; b=hQ0ZI31+PI92Wa16vTGi4Z6AmTRZGh22mi3WSbUCq/zybAnHu+iZ7VaKwAufsHWghw bb46FOzo2TGGucsuxtAljSeGj0/GCmu9vnOlW7+FHAL6Epw4vx3UN+uh8DcUCYvkCxMs fcyqk/r951weiedysZUn0GeXkphXWJFri773ocZL2cBrsmpSGLeh6JfbgvxomqHFxTbK vfGGhRPt4klpAigLPUnzyC7ePmJE8FjmGKYqBMvotsP3+ReEkgNXAqL4i46ePBSq+sf0 9mUM50fDQhW5qg9g7iWFzdF1rrP/iWsw6E//SPuHsCbRBwrDLTIY7E+KnEmJRjlt/big cJCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339645; x=1716944445; 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=KXwO0L9UP+8QZMVBOIJm+VyqQgH3dRfMq6r9an6EFTA=; b=mVxCC+yQ2TZCDZLlmHCZ/I+yHWpdsSwccZdwukrjjMM8fFo8aerfNqYtl4xBT9d3sc NEua7gsSjFtaPEXOl0UhszIGYzgfZSu3wf+RfqOmvFewr1pycyDhwhXBBa6lUHc3wEDX VG4tqnbeE+bypMVSCYfsOMak4cuGSNxs6o1LAD6nHoK/Wo1+QSe6Jm17QtpjND/LMAvK rp9Gkpmm/bLDzjBELn8WKGDUjnIUp7lntsQNTWmRO5jzFA41rch6WvIDwHi1d7bvfLaM 8pMBNsTBt2Zzwpgk1H6Ka/uOExKtt/yt1mJPJ//1sMpSHBa+l2JMkLMEn/IbabCddfUt QsKg== X-Gm-Message-State: AOJu0YzD8PHOqTg4DrK4zOSQsjgAtW/AfCQcCZzAlBX4lVSef2jJK5Xg 0JM9CJxn8tQ0FqSGtEqfrwIJPADDFO6X75D2NycMKWdntlMuOVpqlsV+CCz6E5KrpBqoMiU4j8t 1BQ== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:1143:b0:dc6:e5d3:5f03 with SMTP id 3f1490d57ef6-df4e0ab187fmr228918276.4.1716339645152; Tue, 21 May 2024 18:00:45 -0700 (PDT) Date: Wed, 22 May 2024 00:57:13 +0000 In-Reply-To: <20240522005913.3540131-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: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-28-edliaw@google.com> Subject: [PATCH v5 27/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" 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.1.288.g0e0cd299f1-goog