From patchwork Thu May 9 19:58:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 796683 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 F1A5113D615 for ; Thu, 9 May 2024 20:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284964; cv=none; b=lh/POM9UEwKTM96VN8RCKBcqazyTTd/m68EQglJFttrormcmERwI6A9Lz1nIPfh/4Ee7fRd3e24onVkDzc5pOeXPfeh3Bb79l9ZxsZY7cyREkJ6zDb3PkvUpu/WI6B+wNvLw51pCjzJ0TWJJ4Uu+Qj100LSl5vd3DjLkdC6aLVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284964; c=relaxed/simple; bh=DaG/27qWh2/JZ9Z87R2vLxvxszcgvyNhPpNxQzRNES0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Bxugbmpv4LsO5+NaCC6Up2alRHN6zjm6ZOqy5WEXTeKofxYR+vx0CyEH1jt8N34mTpHp91Ikrn5fvLVEeGYllfO5VwGLz6jyijmHdMMoP0p2xceVVNuRTbjNJ+0y1D49vjoKpLJYiopKgMDO3BiKkb6Btr8KCwD/GnIu2Smg+88= 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=gRxG1DeM; arc=none smtp.client-ip=209.85.210.201 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="gRxG1DeM" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-6ece5eeb7c0so1082798b3a.2 for ; Thu, 09 May 2024 13:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284962; x=1715889762; 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=m279s+e6M30hZxl/PZzqmSNhzRgg4yVrloVP9fngHJo=; b=gRxG1DeMUp8MWa0CV/ABlrv1NaJpJWM8QNLH0u1SYQcBEzZAeB9HurZVJwxcvmVBgA aLYX9G/JKMVGwGT8mxD4d/XOMON9M98ZL9LiH+oppQ/AX48EuCUYcvlmx24ulNKeFLP5 6TTHz5D0P6ItdykHyqqfpGWQssUBTWypUqtsbF8QtWDI3eN/i99l3bMKRCHI672xl+G+ sEVM+ekmhFbnX+T88nT57hMlj7NiRYkiKRxr3ceyVh7CgmCl0PMTIENtbjrP2zRwda5c 3X97rgOWbE9aVqR22aLfu+wH8Jt22/HHbHi4mmOZeUuJTjxykUu6u4PM1Ajh7pI8B+nR oUkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284962; x=1715889762; 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=m279s+e6M30hZxl/PZzqmSNhzRgg4yVrloVP9fngHJo=; b=R1iuZgia7jhZ43Jap/hRD8opfB1u2ZgT5eGHdMzziH9GH/nILuAEcNdvuQ7/EoI1ev a2WbUQ/t98LMvhVqRVtdkSL1cs0fUfkkvO4GNl8/5AHcJWN+EZUzvdmGJPLnJtFwl3BT 8UULlan5osU+QZztCCM6IDwTATE5bqydB61AqWyC//ETaozZkFt4hs8nk39mHS6uR6dl HqL4TlPZ1RV4T/Ic8zitUnmkhEhOCWxF7yHHcjMFAWbWdo6MLPX7fKlQV066HgvB4ONe LTo7C+RJsZdkm1Jbe8Lxo/hmGuodip/LPnsvlkZA5UrV+/uw+QirqFUKmqURQ5m3FAP4 ds5g== X-Forwarded-Encrypted: i=1; AJvYcCU1Vo0qhmLq41V8P9+wSvcldmgUH5o41mYxIz5zRDx3TRRy4qETlEi0CPXqyAbnptWKm+aUOcH82QZfotJjU0ZgU8leSixnyn/0HvtvmSnO X-Gm-Message-State: AOJu0Yyl9rLD4obdZt97/k1x86r8ScHk4eRHBm9NKvt5jHiBVFJjHaTi ITl9n5/n6luvU+uwO126jclFXMGJ/QkfqNEd4r9JSOPgVoR4Oqe8ITIjZU4mIvbD7vSfRD3WnMS 7pA== X-Google-Smtp-Source: AGHT+IGCr5mZelKS9iX9bRXqnB7kjyhmCMgwx5eyUHoa4Y3/aN3G/xPHARYQx5VNmnnQO5Sez15H5lzxkdg= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:3a0f:b0:6f3:8468:432f with SMTP id d2e1a72fcca58-6f4e0373b47mr9098b3a.3.1715284962387; Thu, 09 May 2024 13:02:42 -0700 (PDT) Date: Thu, 9 May 2024 19:58:31 +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-40-edliaw@google.com> Subject: [PATCH v3 39/68] selftests/nolibc: 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 , Willy Tarreau , " =?utf-8?q?Thomas_Wei=C3=9Fschuh?= " , Andrew Morton , Edward Liaw , Muhammad Usama Anjum 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 _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") Signed-off-by: Edward Liaw --- tools/testing/selftests/nolibc/nolibc-test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 94bb6e11c16f..a28813f4367f 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -1,6 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ - -#define _GNU_SOURCE #define _LARGEFILE64_SOURCE /* libc-specific include files