From patchwork Thu May 9 19:58:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13660159 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 1B059145FE9 for ; Thu, 9 May 2024 20:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285021; cv=none; b=isvEUyd1PC0UdiotGhbXLkSuCtXuAyey40kc4BYDrnj0agc0eu3CKzti14OLibl18b1DHqSVU91R/02VX6hJd9dk/l9sEFsccCZICzZPvkIRH2SuYPmvtehcz+AZ79Rg63IvA6Bsz2CTC3dyNnpnQLdX7w6xy8yah67/Tp2qeU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285021; c=relaxed/simple; bh=dV1o9stC96OSdaZmBc01Y9weXsxVFPyOQWHKjWEiAeU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KXi8chyKKrQU2teyksbVGv6jKjtMj1HnWl4VToVYHcymuN+WUX2mF4xOBDqAwA0zjh0QuwT94fjqNerd5+6Atap6u3pbVraKnIrupFFBijssXNoWhOR2YNtruLlCTy95CFv2bIDNbehHrcbhBqIvLA9zFt64ecq+eo+igRlFZBo= 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=3zFawOBx; arc=none smtp.client-ip=209.85.214.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="3zFawOBx" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1ec3e871624so11798775ad.2 for ; Thu, 09 May 2024 13:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715285018; x=1715889818; 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=CVdUVqzWYmb3RWbqhYAX2sm5BvszkqdFATAvwhSxfi0=; b=3zFawOBxTotd4Jd7OPCvrqlkgD1t5aw8/tg8wsHqSbIdpCHIWizdPN3yQacIiotoE/ oE4QH1lT6ovkp356Z5+8dF1Xgj4xFGP2R68nW1zDv2hFcL7JDbyK00TQumwD6tX0LP6n m/OzvsW4wa/lGIxkpIWMAw4LgmvOrSig87+nJg+U9rKvnvvGHgKqE96DIRsSRCTW8Grv Sbfwc8vVGBmbnYpgcQzU1VtikW93UYTC+QiL67yr5gDg264HZSw3LKygUPaEyEZWbVNI YpzViJosGGvGQDYRxIzDo0P1sPOBvxr6lIKadOYmSAbVWtX8n3GwBadB7TAGcTZkYuKs Utwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715285018; x=1715889818; 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=CVdUVqzWYmb3RWbqhYAX2sm5BvszkqdFATAvwhSxfi0=; b=nn5VO0I3oCBfbdnRZNlUfz+8zKVBhaBLTGluFUqBntTMb1ql4tchE0mG5zrPqU4bSU /9dZAhhrTRasxmknTxXWl/UZAAHziEqhumfSUP+teXB7fGvqOhuIzGQnsriU5SYtxw2n SN6Cz/9UIGOJSjb6ORpzajc6Aj+xpcR9asV7VZLMvVsg57+rHnSo1upl5IKtcY2KPTZk d7m5n5vlCOaPp4Hu2uibNR1oBGXCa2PlO0QpUqTf0fK4sbkqNVG//ou6tUJ9JneANuha nRW1hnIpvC1fMbrCPcyRLEU8g83Khto6grfJosmwUMK6nxXIETvjGHa2gi4NGZr+tTpH YuAQ== X-Forwarded-Encrypted: i=1; AJvYcCXmwv9ZoRFW04P9DbgY911aliKR4K7uEOr67m1utNToctiqlhuaesJzIFieBfIv7afHkZnkuaqW5zdYD3qz7pDVNGCao90nK6pPgCR85doz X-Gm-Message-State: AOJu0YwOFVS7SgLAu/8XvoXaXVDE76MXo5sM4mWv6fFAy4IDIykeWuWS 1lIp8szokaWFKuqjusAA0DvVMfOMhQDN9uVo1JwexWSbZBKk1hyI+fDDoVsH39RECGfdW7Ys0zU /sQ== X-Google-Smtp-Source: AGHT+IHg5VgFl0oWnKy9QZrL+pJvNw77NDmjf2svPyBwnniX7haHt8pz7giq5R8s6VnTC5gIYeXcCZMMI1M= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a17:902:ec84:b0:1e4:3299:519f with SMTP id d9443c01a7336-1ef433db6a2mr390305ad.0.1715285018542; Thu, 09 May 2024 13:03:38 -0700 (PDT) Date: Thu, 9 May 2024 19:58:51 +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-60-edliaw@google.com> Subject: [PATCH v3 59/68] selftests/splice: 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 , 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/splice/default_file_splice_read.c | 1 - tools/testing/selftests/splice/splice_read.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/testing/selftests/splice/default_file_splice_read.c b/tools/testing/selftests/splice/default_file_splice_read.c index a3c6e5672e09..a46c5ffb573d 100644 --- a/tools/testing/selftests/splice/default_file_splice_read.c +++ b/tools/testing/selftests/splice/default_file_splice_read.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include int main(int argc, char **argv) diff --git a/tools/testing/selftests/splice/splice_read.c b/tools/testing/selftests/splice/splice_read.c index 46dae6a25cfb..418a03837938 100644 --- a/tools/testing/selftests/splice/splice_read.c +++ b/tools/testing/selftests/splice/splice_read.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include