Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp82109lqp; Tue, 21 May 2024 19:41:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUg7xhawSMtIj6L+WM80b4IR34QL5wJS499a26z7hittby/+3mi8o4mVIdOVI48S+TP9i2qET7QenzCr+teYc2z7ru4VH1B/5wXzedO4A== X-Google-Smtp-Source: AGHT+IGNKM70nXDA/jy5i1WvZa0PycSN0Uw8CPoY5drmwhv84556EojEkkwoe6dYXQK67Er4TzuO X-Received: by 2002:a17:90b:891:b0:2b6:24cf:5962 with SMTP id 98e67ed59e1d1-2bd9f5edb8dmr819708a91.48.1716345690780; Tue, 21 May 2024 19:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716345690; cv=pass; d=google.com; s=arc-20160816; b=TgOqvOAvUV6D3btgjguCB7Df8Zy+EOo8LN2IE3s/Twao4xeZCph1GXgPhJRB1wKDF7 IBCZ/ISSwmixdqLPyIjMZrZ/FMZLeXAMPv0ogpv5zcVLhsGTFzc5de+HmheOkao8ZFG1 H8x694flEoMV1GLjd3CelDpJiGpJeRXpH5UyeNidb4ptYcE1qIr9wkVUTX0TKcCzEUR9 Vfp/UjKulQxVM+9dKPf7exb4diwXAk3Y+NrjBtxMgUD2ifE+Sq8ujHdAcEZGopUZRL7C wr1ukTGb9xLhfeDk4ShG0YPbnAIeUGMK6u82u8dyMgt5Pq5JKWmRitpKjNX1o3raZuiw Ff4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=K4ceCAMUd3OOguRCiqyTBlmv17C7zQy/D1e8nEr4anQ=; fh=qNiaLTazu/jDKnyuOm2sxO0w0LzqB4tgVXhHu1FHDJE=; b=Y2UIRT88f/rkuj+/86C9Pbj1N391tXEQOuNd5Hcv8EnscDruAiTz5vwZuZOYwaFTAR 7WcL4L24Raq/svMqUdw7w3jbk0XQQn1cyywv4TEwpeqy47dAu5hTOZ67ZFAYH7QIA4Pt s/seFfYY2OlUI4hBXkNbzCi78suyA/HinC0+cDVkVTP0US0zg1vb9EYRDAw+ExK5PKuK H33IH+raf57QHBpWI7VUFlV9cRx06sYaRAZafLFogGVWDxPdalLtH5+/wRa9e/g/ofbZ mFe2kuMVV8E00pOyG4EdnO23Y1TTwJZldTQ53qZkmFJixsIl8cBcHSCf8JrrjvE9B1Ek Hapg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=ehtuahhv; arc=pass (i=1 dkim=pass dkdomain=yahoo.com); spf=pass (google.com: domain of linux-kernel+bounces-185673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185673-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f57185si25300678a91.63.2024.05.21.19.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 19:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=ehtuahhv; arc=pass (i=1 dkim=pass dkdomain=yahoo.com); spf=pass (google.com: domain of linux-kernel+bounces-185673-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185673-linux.lists.archive=gmail.com@vger.kernel.org" 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 C3C63283EC3 for ; Wed, 22 May 2024 01:58:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F288919470; Wed, 22 May 2024 01:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="ehtuahhv" Received: from sonic317-39.consmr.mail.ne1.yahoo.com (sonic317-39.consmr.mail.ne1.yahoo.com [66.163.184.50]) (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 86A75175A6 for ; Wed, 22 May 2024 01:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.163.184.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716343088; cv=none; b=J8oKI4/sor4KdzeTLGYslDOrgCfRudBjtmmf9Zt+UAjkEVH/tQD1kaDUYPLs76m7STC60HRN/1kQtRa+7Hz6elPduHnRXxnYny0jO7kVO56FERSiexGHi+KJju5msPXFIs1ughZlwgi4SKWjJFmRJyfpe5JlD6GsKocM7I8g2RM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716343088; c=relaxed/simple; bh=MZVe26BMPdvP8BLcp/KzGhheqUTEjkEcZE0Q5/XFoOo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TEK6eOSwDU2yxjoaPnRu1pKkIvPLGOPX1iT3S/fK7vzxFKjZlEWERqzQGlTn3vRWPy2sS26tfAm5+y0Bdty3FcboXUFhm/IKf2iK3ryzG1J3zyE7QKfJPLOVMXaIT7Gj/4Gk7th3U/7o1dvonCWkignfIAwxBB1pYY/UUcRmflY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=schaufler-ca.com; spf=none smtp.mailfrom=schaufler-ca.com; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b=ehtuahhv; arc=none smtp.client-ip=66.163.184.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=schaufler-ca.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=schaufler-ca.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716343085; bh=K4ceCAMUd3OOguRCiqyTBlmv17C7zQy/D1e8nEr4anQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=ehtuahhv7Gn4i84xK2JWfFkiHLHKZeZnUDC3/nrPQOoEffrbZXJ/6qXS4bXataj6MrybpsjL52kJ2Vnr7rtPD3u0vUHUkWVvi9szuA/3TXnYBoNZTWBXq4ee93BIrzsy2QDfXuo6QSrnEdWxe1HjLzu7H8Fr45kSJ6yY82rXgCgYk0N3UkyE1aIrmcUYBBOVMjrnpeks6yDNEOKontob49N3t7hyIsUiG/zW4fwqmlyKUMjJ7zea++/xv1yucXxwNkbGHod7NvQH+p+ighM2pgEbm0wFk2+CdXVPIm0kKEb+ThkD6ytMYIFWuOmwXFV2+/4Xj05G5KuH05KuxX7Fvw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1716343085; bh=8xEsIleLcz9Nq7T00HYBqMxe9bmp2v/Wc1uU+PnRiXW=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=UMJ4SQtjP2+p6n4jzws7g3QmrVmBqETo4Ju2IT5a/RP+qs7mgY0sO/jCOZpO5JnBoqRg4D7eutRImSTClHxXlIypU5bHWPPTSaHlCqQvFs0T8qNgyXNpC8BcNhMIf5nUCMQwW93d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rd8hAJvNDxx3diEXVzUny1FpmJL rqLLJYx5vUdHrlk_j2aw_5LW8xM2Zwta29e0ilFkmZETh6un35X_ZaJD3cMNZZzaKCGGS1xrtdu. RDwOU8FqtbX9PNBSTHux7VPqC7w5cQRzJPnS9cvpMH8w0tMaNWLIxG5rtB1MFaU8rbeD50RtnATp 4WJRrFDWcU0dBPRAUhBT4HmuK54i0CHcFBEdzRaqhlothLGEh_8GIPWP9k8jKz7tABormleib9Py Eeq6myb.haTs3APIir3NRVM1Vmnnh8aNvOq1pVq.tv.qWdUmreoDdRduI6ITot6zI3JfN.6w.g1G DMgP4TTiohcV8.SfNoFmh7yhU8MNRLlb4bYX9Z5GVYxQGZt9JIwCb..y.bdJ5Z8ZM X-Sonic-MF: X-Sonic-ID: 47ee3241-7a52-4eda-bec9-01823c7c6fd7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Wed, 22 May 2024 01:58:05 +0000 Received: by hermes--production-gq1-59c575df44-8sqjb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 95637bea4982e23cda54aebcf40e6a2a; Wed, 22 May 2024 01:37:49 +0000 (UTC) Message-ID: Date: Tue, 21 May 2024 18:37:46 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 27/68] selftests/lsm: Drop define _GNU_SOURCE To: Edward Liaw , shuah@kernel.org, =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , =?UTF-8?Q?G=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, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, John Hubbard , Muhammad Usama Anjum References: <20240522005913.3540131-1-edliaw@google.com> <20240522005913.3540131-28-edliaw@google.com> Content-Language: en-US From: Casey Schaufler In-Reply-To: <20240522005913.3540131-28-edliaw@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.22356 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo On 5/21/2024 5:57 PM, Edward Liaw wrote: > _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 Acked-by: Casey Schaufler > --- > 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