Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp78524lqo; Thu, 9 May 2024 13:11:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4fRWMGynjR9FnpVFzQs6xAg+EHtez3vxWIJfSjz/gI0ohsWQKdWCvJ8qXltNpf4Ru+g3ZG27H7A+Yf+5XRuF7d5bXUtYKzuYqkLJN+A== X-Google-Smtp-Source: AGHT+IENI7Bk/Sg0GPaN+CRFfNAaqinxbQYuF+OF1eS23Ze9EjeRC+KPay5cimjKaW9qCM4lexLy X-Received: by 2002:a05:622a:5a0b:b0:43a:f4ce:dbf0 with SMTP id d75a77b69052e-43dfdb694abmr6616171cf.50.1715285495925; Thu, 09 May 2024 13:11:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715285495; cv=pass; d=google.com; s=arc-20160816; b=wPWORaMF+Utk+Unl2KWsO9gkcfcVjb+QTWekfGm3bX2EA9QC8D4ZkCwAIbWRrmBLFY YjmS8w/j7kDirJPgmvlUMWCC0CeNSRNlofJZJYdMZTDmI24Rs+4FJW4rEGcne2zgC2Cv emMt14GJPKNw5FLziH1fBTO3b55W/eJzTtHCzXEZW88+mYbXhY8Fq0XP+PvFfRrvb6c8 vu/s7IgU9sHTPg6fXd+w/tQDibU31WKB2PS6WH96D9ORF3harl0L+bPhUI1iIfSX5pEp hLruGmsQ0xmwloI1oJvUPedb70eWbhjyCYgiu1AHXuv/udOmw9vw1uyhb2mAtpUdL6gr 4+xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=ld4la0VxD3l5sUUAGJ4Eky+q6o3Kf635llpLjU0Q2ns=; fh=M/dK18G4hKEWgH9BWsDgjpPRHJugCdTNF08+L8x5UJs=; b=VGFyJpVqHH7E5+IQ8VYrY5nrfOpYPWPobXHYZrFZxaeyV7FnyWTzA+ycjhDIfNIJXP NnUCfbm5H908Zfp9UBGVX+L0QWwEAUvJ68pCTFl01wSHjOkDxCmLYFjt9cCtcu3r31lg os6um9tCwzDstY+wpiBlple5oGMiXL1YkqJCat0m9cj/GJzb6j86vfJBHsq46H5mYfRq iYb0MtbXpT8cksGgV+hxdj7BJjVqJ2pE6pBwL3fy5dcN0CPRoGAvERzogzfSC9DQQrQP wh+zx8Xu6VVclRYKj5hhgAWRooILY6QVZ82NU379KQQ0P0crUH9cwA5qJhgEyHSr5an9 vrYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XBVVxbVp; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-174876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d49f5si20083731cf.673.2024.05.09.13.11.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:11:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XBVVxbVp; arc=pass (i=1 spf=pass spfdomain=flex--edliaw.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-174876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 812D21C20C61 for ; Thu, 9 May 2024 20:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC92613B587; Thu, 9 May 2024 20:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="XBVVxbVp" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 4C98D13AD18 for ; Thu, 9 May 2024 20:02:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284930; cv=none; b=qxv1fAJZy3cwXK+qmWLa3NuUMX0pKmrq/01kazF4rAf97demBC9St0x537p0xdYZpM2KeLlyd/QLpaJcaL0I4otS1gIrk6HEyPsFq33YfLAlPy6O/dEOGVFLeY+IsGYdWlRz8RdzPD45qfCeJ5fS4Bkt58MqJsKvRokdO5sLegE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715284930; c=relaxed/simple; bh=16xQFZUemPEW+OmTRE/3AJIID4VuLDiTh8Uti+95Avc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=pSoCoMUkwjvATake1DZ4IKNP/c4BhpY3MB/3qn6EsFYtJYKxm8LwiSgydMJnPoXHKmFukiDFA/AaHwoDwfggcXguGBjzhuyaV7lHhhBZNfbyd/FQWJij2luuvU8e0qXL9zGR8u8kne72u+Hsr3NoW8wsEfzfO76oo6/Smfhkn94= 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=XBVVxbVp; arc=none smtp.client-ip=209.85.128.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 Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-61e0c296333so28065147b3.1 for ; Thu, 09 May 2024 13:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715284928; x=1715889728; 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=ld4la0VxD3l5sUUAGJ4Eky+q6o3Kf635llpLjU0Q2ns=; b=XBVVxbVp0tDi1eejJVKANr+8xaxS/RZuT7cPK9azYrwtike+1VH1jwViW/jBCCJLsZ hupPKaiadKuVDG9F61e2VC7dz2WWlo1OJ0xyC3AZv/ehIs9gj7HSyrsnO+AKhQDAq8FI +0zVDs+SkVvFSnP86mwJg2loLZnsQjj6DrXYNwjXw5zCPhGFjOSbMKNxvI8QqP8c0oaH p5EQxr+oR2Qcz16c1EdviPH3wsgHREVRBM4YMZRAgpS8P0Squ52ocsQQeVXgt3ozvZtd LON1xSoAlM3uF+AtUiqyCkFCkd8BIZOP4/5H/FBtStBt6D8UzjR/IebYtdq88C0B3BqC QYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715284928; x=1715889728; 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=ld4la0VxD3l5sUUAGJ4Eky+q6o3Kf635llpLjU0Q2ns=; b=Hl+xmxXnK6h5+3kKqx8iVpuJJ+EERsglr58LguOomOPFJoRd07qGrJtW2RfifdvQqu XKP6Um6bNLgCUB4Bsn2+D4rkuViLshAQ0PdA2R8E1PYaui+HezaDHra8oC2J+2E7yPoO Jh4blKpD8ztALkDcVFdenP+oC2QEvHIF43QgBP56ZAra95bp/pIlsoyfuNnohvC5/WkP fnIIveN8zOoPD4OHl8/wRyFm1RlDxEcSjqdFQ15nRnEnDs/brgXkBxonQ93T7sUgNYN+ mjPmY3aZIWxIV5qMeoi2DtjWMZVz/j61TjXAKZL6Eu3j2Mid1iiWHvFl+i+eQXB6pBlo NjZA== X-Gm-Message-State: AOJu0YyT2/+QUOQz3RBQ2eIhcUupRZ5dRantEpoQsuCV5xqIV70WyW7x h+NeY5Eyge8GDCr5/KSMoBBm6EMYFmR+zOPp0pq7I3yOe9fyZMa8qiBp6NW9YsElHA2XR+5qJOF ZIQ== X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6902:2b03:b0:dd9:20c1:85b6 with SMTP id 3f1490d57ef6-dee4e48f302mr225691276.2.1715284928394; Thu, 09 May 2024 13:02:08 -0700 (PDT) Date: Thu, 9 May 2024 19:58:21 +0000 In-Reply-To: <20240509200022.253089-1-edliaw@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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-30-edliaw@google.com> Subject: [PATCH v3 29/68] selftests/membarrier: Drop define _GNU_SOURCE From: Edward Liaw To: shuah@kernel.org, "=?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?=" , "=?UTF-8?q?G=C3=BCnther=20Noack?=" , 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, John Hubbard Content-Type: text/plain; charset="UTF-8" _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/membarrier/membarrier_test_impl.h | 1 - .../testing/selftests/membarrier/membarrier_test_multi_thread.c | 1 - .../testing/selftests/membarrier/membarrier_test_single_thread.c | 1 - 3 files changed, 3 deletions(-) diff --git a/tools/testing/selftests/membarrier/membarrier_test_impl.h b/tools/testing/selftests/membarrier/membarrier_test_impl.h index af89855adb7b..a8a60b6271a5 100644 --- a/tools/testing/selftests/membarrier/membarrier_test_impl.h +++ b/tools/testing/selftests/membarrier/membarrier_test_impl.h @@ -1,5 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 */ -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/membarrier/membarrier_test_multi_thread.c b/tools/testing/selftests/membarrier/membarrier_test_multi_thread.c index 4e14dba81234..c00f380b2757 100644 --- a/tools/testing/selftests/membarrier/membarrier_test_multi_thread.c +++ b/tools/testing/selftests/membarrier/membarrier_test_multi_thread.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include diff --git a/tools/testing/selftests/membarrier/membarrier_test_single_thread.c b/tools/testing/selftests/membarrier/membarrier_test_single_thread.c index fa3f1d6c37a0..c399fbad8efd 100644 --- a/tools/testing/selftests/membarrier/membarrier_test_single_thread.c +++ b/tools/testing/selftests/membarrier/membarrier_test_single_thread.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#define _GNU_SOURCE #include #include #include -- 2.45.0.118.g7fe29c98d7-goog