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: 13660228 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.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 2D2F0145FEB for ; Thu, 9 May 2024 20:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285020; cv=none; b=ba/lnOUbEJAls8+TQVc0EKZm+6rgj+USWGGUn/zlW0V/4AWZl8TW+ILJjHD+izKvIFg6/zHWMeDCKI57PlmV9ezs5taMvP9PAjCDZVM2jpCuOxQY9MoP3TkwPR6L9+SCxpzRGZ2AJTG3z5/v9TF8ZWQmCO5tX3bzbaPRE+eYP4U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715285020; c=relaxed/simple; bh=dV1o9stC96OSdaZmBc01Y9weXsxVFPyOQWHKjWEiAeU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=EmpjfPtwZ0FQCAcdEXVNCyiSsMIxk1rnmMuvxaZOSBsQz9Q7cNYxev51lJknNS0mTczmFzdoWNtFS4+vBGYip5y98tYDFos/x1T7H5PWViXhw32Om8QeU3Ed33hh8bQtBtwQ25coWbbRut00juaUTG63bC8+Bff5bx/QB2obQ94= 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.215.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-pg1-f201.google.com with SMTP id 41be03b00d2f7-61b7d7c293cso1070331a12.0 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=MF7Fo4MaOOlb2KGG9kCs0RTonJ+Y6eEkv74KOgDt+dDWNIbar7VlDIMq2MTxS760G8 07fs6cMrryaI5KfPyJLtMLDKHodxeoYaGNVQxCcPK2z51t65DcIpPtCiS0sxi4+6Y90J QO/5IskEjA3RJ1LEzAwVvZNk/Lr1buwogvVL9r8Qnn4rptJbmQZWicP9cJ8Wx91Z+Zak 3a5FWGXEDTF3PUfses3zoWgeV0jZJ773NJkvU682mqJUDYdufQFnoieDVeqdeAOBVawj 1WRjfyDSHTiNyhGqxkNA18kChitYSMFx7yLkgJR+CVf/RZt/w5XW1I/KW4jbIP3LsNOJ xLgQ== X-Forwarded-Encrypted: i=1; AJvYcCXA+UofHbTukUGnVS6h6Q+yHixF/Q8VP2dAscseHYFYQD8zw46IhGYjXFhi/LF2YD7lb+Fw/Sgj4bU003oIQecuLq+b X-Gm-Message-State: AOJu0YzLUFvEi4z/GK4jUlKRATo/QWq/Z7EhNTcJo26TCfHe98DlyQv9 7YHKivVbmkMtGZQfVO/vrBSgD37Lg2D2QMM2uI5M8kxKMJylA0FKCkee1GqlxCJXHObhqIzWQCu 3vQ== 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: bpf@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