From patchwork Thu May 9 19:58:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660154 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 248BE144D07 for ; Thu, 9 May 2024 20:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285008; cv=none; b=sNb2uHTNm0IL5kcf1xhN76umem7dmSOWhegX5aHj4Jpv4oMUEPuQQVq/KT6QmvG6duhmEoqmTp8hzDrD/NzzSl/IGEboTpQ8v/rrtb9jiALRu8cCabYhkbjIuXH1uvaXeAJDgCs6EWypYxr+lwkzW1u5cPL62hnNfql+szN2eLM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285008; c=relaxed/simple; bh=pheNRGIZ7Jb9gDEOFkz02vcCvP3I894WauR7YBXEH2U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=EnwwPj04RzRwqWJiGsnoaOPe2TuiWzaxyDSHH5ohJ8fkrj1ubQKna+nK1MRmyMjSeWfGnS0QSOijzq73KHmUSfl6jo4VDIhabgdgti7h/4bdoibEh5t0A6+KWD/y+Bwg0J3AXI7W+mb94q6VLe/Iohl/fkzlAB3MYHlVPoZTeFs= 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=U5FhxovH; arc=none smtp.client-ip=209.85.214.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="U5FhxovH" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ec3e871624so11796755ad.2 for ; Thu, 09 May 2024 13:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715285007; x=1715889807; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=+ccXjE517WZwlLlM0behvDO/LOfu8pdZVCqhExHkVOs=; b=U5FhxovHOrHSLMzwzl8e+C34z4khiHNqugLm4BuTUbp/vdfySq6qz3gyyc0pPgl+hO F9KdflLxmh/c5vHwfiAb/vTsdnP9lqebY836D7ynyqiqeDGqblGiMl68KrP6dgakUOrr dto5HMwXxU36qe1zQpxGiQ2yKmvzPeNWnGhu3jbL56nhQ0UOazI69gJb/F7gO/d8YDOo YvI1mXwnc7g32oieXO+MYErkomGufdr1bezfGrLGgae2i4nqxLEdwBaOeEzcU5FvDjTc Oztc6o4Z/yEGJ9RcMchzOlyUCTB8eZR5Yprtny872l9HIqfc5mLxaX5DaTSN90HxYfh/ zHKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715285007; x=1715889807; h=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=+ccXjE517WZwlLlM0behvDO/LOfu8pdZVCqhExHkVOs=; b=HruwuVpsgB1FS5uqshuf0R80k4Mr943CMp2LE6+Pm23s7tK0HRrd04q02aOGCDam+m YdfIoQx5zAqYy9ENngn9B1iuNNu09M2Wm7qiujXLcNMDso3pIT1XEhnOjDr3cAWnOftv S9h1TYH+1nGCdPgg3C+YR5iWmvh8H7oMnMpc2ebckelEILluI4J/11mwx69+VjYNLyuE K+ZS+2Sso3XP8x+dGA1uX7bbVGmPoJCuHc8NqEgEDIF8OxUzfiQdGk4CQAml9dzlLDlE Fd9UG0Ug0Git/X/jP8BcnD0ieJ6THRcpSZK56dlh59sn7ZYsAakwrpHrSWh+Wy0/+uRV me+w== X-Forwarded-Encrypted: i=1; AJvYcCWS6Bav+iUPAiKfDEOP4LWSEK0jBfJmZZ3S1Oe8gzL12BXPK9E0ngmRolhkN8CeN4s7JWUPDTb62o53uSveF+H5DNX8Yn6j9kcyVGwG86fl X-Gm-Message-State: AOJu0YzX2OSkR9a+96rJMpFbrzStkWYo/gf4GQWn1L8c+HS6Eyf/yDwk XqRPJDI4EON/1CQize0aPMSHd3jwmWjMW9puJRRqB9RwSy7GQ2ZKOIWU4VkavwjmqF0h8EVdSUL Z2w== X-Google-Smtp-Source: AGHT+IEmYCo2fAVcVFzbT06uCl1b7km+bYO6VkBBGQbcdnBxjbxybQ275C+Yl6mrmjNooG8Mn284PxdVRnw= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:d482:b0:1ea:b100:df14 with SMTP id d9443c01a7336-1ef43f4ca81mr428645ad.8.1715285006518; Thu, 09 May 2024 13:03:26 -0700 (PDT) Date: Thu, 9 May 2024 19:58:46 +0000 In-Reply-To: <20240509200022.253089-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: <20240509200022.253089-1-edliaw@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240509200022.253089-55-edliaw@google.com> Subject: [PATCH v3 54/68] selftests/rseq: 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 , Mathieu Desnoyers , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , 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/rseq/basic_percpu_ops_test.c | 1 - tools/testing/selftests/rseq/basic_test.c | 2 -- tools/testing/selftests/rseq/param_test.c | 1 - tools/testing/selftests/rseq/rseq.c | 2 -- 4 files changed, 6 deletions(-) diff --git a/tools/testing/selftests/rseq/basic_percpu_ops_test.c b/tools/testing/selftests/rseq/basic_percpu_ops_test.c index 2348d2c20d0a..5961c24ee1ae 100644 --- a/tools/testing/selftests/rseq/basic_percpu_ops_test.c +++ b/tools/testing/selftests/rseq/basic_percpu_ops_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: LGPL-2.1 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/basic_test.c b/tools/testing/selftests/rseq/basic_test.c index 295eea16466f..1fed749b4bd7 100644 --- a/tools/testing/selftests/rseq/basic_test.c +++ b/tools/testing/selftests/rseq/basic_test.c @@ -2,8 +2,6 @@ /* * Basic test coverage for critical regions and rseq_current_cpu(). */ - -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/param_test.c b/tools/testing/selftests/rseq/param_test.c index 2f37961240ca..48a55d94eb72 100644 --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: LGPL-2.1 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/rseq/rseq.c b/tools/testing/selftests/rseq/rseq.c index 96e812bdf8a4..88602889414c 100644 --- a/tools/testing/selftests/rseq/rseq.c +++ b/tools/testing/selftests/rseq/rseq.c @@ -14,8 +14,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ - -#define _GNU_SOURCE #include #include #include